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

Method save

nlp_class2/glove_tf.py:156–159  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

154 plt.show()
155
156 def save(self, fn):
157 # function word_analogies expects a (V,D) matrx and a (D,V) matrix
158 arrays = [self.W, self.U.T]
159 np.savez(fn, *arrays)
160
161
162def 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