write_to_snap_format

pai4sk.sml_io.write_to_snap_format(filename, data, with_implicit_vals=False)

Write dataset to binary snap format. This method is implemented in a distributed manner using MPI.

Parameters
  • filename (str) – Output file

  • data (_snap_ml.Partition) – Dataset to write

  • with_implicit_vals (bool) – Write sparse data without values (assumed every row is constant and L2-normalized).