nums.core.storage.storage module

class nums.core.storage.storage.BimodalGaussian(mu1, sigma1, mu2, sigma2, dim=2, seed=1337, dtype=<class 'numpy.float64'>)[source]

Bases: object

classmethod get_dataset(n, d, p=0.9, seed=1, dtype=<class 'numpy.float64'>, theta=None)[source]
sample(n, p=0.9, theta=None)[source]
to_arr(sigma, num_axes)[source]
class nums.core.storage.storage.StoredArray(filename, grid)[source]

Bases: object

del_array()[source]
Return type

Any

delete(grid_entry)[source]
Return type

Any

delete_grid()[source]
Return type

Any

get(grid_entry)[source]
Return type

ndarray

get_array()[source]
get_grid()[source]
Return type

ArrayGrid

get_key(grid_entry)[source]
get_meta_key()[source]
init_grid()[source]
put(grid_entry, block)[source]
Return type

Any

put_array(arr)[source]
put_grid(array_grid)[source]
Return type

Any

class nums.core.storage.storage.StoredArrayS3(filename, grid=None)[source]

Bases: nums.core.storage.storage.StoredArray

del_array()[source]
delete(grid_entry)[source]
Return type

Any

delete_grid()[source]
Return type

Any

get(grid_entry)[source]
Return type

ndarray

get_grid()[source]
Return type

ArrayGrid

put(grid_entry, block)[source]
Return type

Any

put_grid(array_grid)[source]
Return type

Any