Utils¶
-
snap_ml_spark.Utils.
dump_to_snap_format
(X, y, filename, transpose=False, implicit_vals=False)¶ Non-distributed data writing to snap format
Parameters:
-
snap_ml_spark.Utils.
read_from_snap_format
(filename)¶ Non-distributed data loading from snap format
Parameters: filename (str) – The file where the data resides. Returns: X, y – Returns two datasets. X : the data used for training or inference y : the labels of the samples in X. Return type: numpy array or sparse matrix, numpy array