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

Method save

nlp_class2/glove_svd.py:118–121  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

116 print("svd cost:", cost)
117
118 def save(self, fn):
119 # function word_analogies expects a (V,D) matrx and a (D,V) matrix
120 arrays = [self.W, self.U.T]
121 np.savez(fn, *arrays)
122
123
124def main(we_file, w2i_file, use_brown=True, n_files=100):

Callers 2

mainFunction · 0.95
fitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected