MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / save

Method save

nlp_class2/glove.py:233–236  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

231 plt.show()
232
233 def save(self, fn):
234 # function word_analogies expects a (V,D) matrx and a (D,V) matrix
235 arrays = [self.W, self.U.T]
236 np.savez(fn, *arrays)
237
238
239def main(we_file, w2i_file, use_brown=True, n_files=100):

Callers 5

mainFunction · 0.95
fitMethod · 0.45
fitMethod · 0.45
fitMethod · 0.45
wseq2seq.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected