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

Method init_cost

mla/linear_models.py:125–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 """Binary logistic regression with gradient descent optimizer."""
124
125 def init_cost(self):
126 self.cost_func = binary_crossentropy
127
128 def _loss(self, w):
129 loss = self.cost_func(self.y, self.sigmoid(np.dot(self.X, w)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected