MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / fit

Method fit

mla/fm.py:76–79  ·  view source on GitHub ↗
(self, X, y=None)

Source from the content-addressed store, hash-verified

74
75class FMRegressor(BaseFM):
76 def fit(self, X, y=None):
77 super(FMRegressor, self).fit(X, y)
78 self.loss = mean_squared_error
79 self.loss_grad = elementwise_grad(mean_squared_error)
80
81
82class FMClassifier(BaseFM):

Callers

nothing calls this directly

Calls 1

fitMethod · 0.45

Tested by

no test coverage detected