MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / save

Method save

nlp_class2/glove_theano.py:175–178  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

173 plt.show()
174
175 def save(self, fn):
176 # function word_analogies expects a (V,D) matrx and a (D,V) matrix
177 arrays = [self.W, self.U.T]
178 np.savez(fn, *arrays)
179
180
181def main(we_file, w2i_file, use_brown=True, n_files=50):

Callers 2

mainFunction · 0.95
fitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected