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

Method _predict

mla/rbm.py:100–101  ·  view source on GitHub ↗
(self, X=None)

Source from the content-addressed store, hash-verified

98 return X > np.random.random_sample(size=X.shape)
99
100 def _predict(self, X=None):
101 return sigmoid(np.dot(X, self.W) + self.bias_h)

Callers

nothing calls this directly

Calls 1

sigmoidFunction · 0.85

Tested by

no test coverage detected