C# Class MyMediaLite.IO.RelationData

Class that offers static methods to read (binary) relation over entities into SparseBooleanMatrix objects
Afficher le fichier Open project: zenogantner/MML-KDD

Méthodes publiques

Méthode 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 méthode

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
Résultat MyMediaLite.DataType.SparseBooleanMatrix

Read() public static méthode

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
Résultat MyMediaLite.DataType.SparseBooleanMatrix

Read() public static méthode

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
Résultat MyMediaLite.DataType.SparseBooleanMatrix