mirror of
https://github.com/hanzoai/ml.git
synced 2026-11-20 23:08:29 +00:00
The core library is named hanzo-ml-core but exports as hanzo_ml. Fix all references throughout the codebase.
10 lines
193 B
Python
10 lines
193 B
Python
import numpy as np
|
|
x = np.arange(10)
|
|
|
|
# Write a npy file.
|
|
np.save("test.npy", x)
|
|
|
|
# Write multiple values to a npz file.
|
|
values = { "x": x, "x_plus_one": x + 1 }
|
|
np.savez("test.npz", **values)
|