MCPcopy Index your code
hub / github.com/rushter/MLAlgorithms / fit

Method fit

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

Source from the content-addressed store, hash-verified

81
82class FMClassifier(BaseFM):
83 def fit(self, X, y=None):
84 super(FMClassifier, self).fit(X, y)
85 self.loss = binary_crossentropy
86 self.loss_grad = elementwise_grad(binary_crossentropy)
87
88 def predict(self, X=None):
89 predictions = self._predict(X)

Callers

nothing calls this directly

Calls 1

fitMethod · 0.45

Tested by

no test coverage detected