C# Class MyMediaLite.IO.RelationData

Class that offers static methods to read (binary) relation over entities into SparseBooleanMatrix objects
显示文件 Open project: zenogantner/MML-KDD

Public Methods

Method Description
Read ( IDataReader reader, IEntityMapping mapping ) : SparseBooleanMatrix

Read binary relation data from an IDataReader, e.g. a database via DbDataReader

Read ( StreamReader reader, IEntityMapping mapping ) : SparseBooleanMatrix

Read binary relation data from file

The expected (sparse) line format is: ENTITY_ID whitespace ENTITY_ID for the relations that hold.

Read ( string filename, IEntityMapping mapping ) : SparseBooleanMatrix

Read binary attribute data from file

The expected (sparse) line format is: ENTITY_ID whitespace ENTITY_ID for the relations that hold.

Method Details

Read() public static method

Read binary relation data from an IDataReader, e.g. a database via DbDataReader
public static Read ( IDataReader reader, IEntityMapping mapping ) : SparseBooleanMatrix
reader IDataReader an IDataReader to be read from
mapping IEntityMapping the mapping object for the given entity type
return MyMediaLite.DataType.SparseBooleanMatrix

Read() public static method

Read binary relation data from file
The expected (sparse) line format is: ENTITY_ID whitespace ENTITY_ID for the relations that hold.
public static Read ( StreamReader reader, IEntityMapping mapping ) : SparseBooleanMatrix
reader System.IO.StreamReader a StreamReader to be read from
mapping IEntityMapping the mapping object for the given entity type
return MyMediaLite.DataType.SparseBooleanMatrix

Read() public static method

Read binary attribute data from file
The expected (sparse) line format is: ENTITY_ID whitespace ENTITY_ID for the relations that hold.
public static Read ( string filename, IEntityMapping mapping ) : SparseBooleanMatrix
filename string the name of the file to be read from
mapping IEntityMapping the mapping object for the given entity type
return MyMediaLite.DataType.SparseBooleanMatrix