BatchBuilder

public class BatchBuilder

Collection of utility functions to create batch objects

Author

Philip Cho

Methods

CreateDenseBatch

public static DenseBatch CreateDenseBatch(List<DataPoint> dmat)

Assemble a dense batch from a list of data points

Parameters
  • dmat – List of data points

Throws
Returns

Created dense batch

CreateSparseBatch

public static SparseBatch CreateSparseBatch(List<DataPoint> dmat)

Assemble a sparse batch from a list of data points

Parameters
  • dmat – List of data points

Throws
Returns

Created sparse batch

LoadDatasetFromLibSVM

public static List<DataPoint> LoadDatasetFromLibSVM(String filename)

Load a LIBSVM data file and construct a list of data points

Parameters
  • filename – path to LIBSVM file

Throws
Returns

Created list of data points