Overview
pai4sk ML APIs
snapML APIs
pai4sk Loaders APIs
pai4sk Metrics APIs
Similarity Search
snapML Loaders APIs
snapML Spark Estimators
snapML Spark APIs
pai4sk.sml_io.
load_from_svmlight_format
Data loading from svmlight format file. It supports both local and distributed(MPI) method of loading data. For MPI execution this can be used for distributed SnapML training and inference.
filename (str) – The file where the data resides.
num_ft (int) – Expected number of features
data partition – Returns a data partition in sparse format which will be used for distributed _snap_ml training and inference.
_snap_ml.Partition.SparsePartition