MCPcopy Create free account
hub / github.com/WenDesi/lihang_book_algorithm / predict

Method predict

softmax/softmax.py:84–94  ·  view source on GitHub ↗
(self,features)

Source from the content-addressed store, hash-verified

82 self.w[j] -= self.learning_step * derivatives[j]
83
84 def predict(self,features):
85 labels = []
86 for feature in features:
87 x = list(feature)
88 x.append(1)
89
90 x = np.matrix(x)
91 x = np.transpose(x)
92
93 labels.append(self.predict_(x))
94 return labels
95
96
97if __name__ == '__main__':

Callers 1

softmax.pyFile · 0.45

Calls 1

predict_Method · 0.95

Tested by

no test coverage detected