GenericDataModel Constructor (FastByIDMap IPreferenceArray , FastByIDMap FastByIDMap Nullable DateTime   )NReco.Recommender Class Library
Creates a new GenericDataModel from the given users (and their preferences). This IDataModel retains all this information in memory and is effectively immutable.

Namespace: NReco.CF.Taste.Impl.Model
Assembly: NReco.Recommender (in NReco.Recommender.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public GenericDataModel(
	FastByIDMap<IPreferenceArray> userData,
	FastByIDMap<FastByIDMap<Nullable<DateTime>>> timestamps
)

Parameters

userData
Type: NReco.CF.Taste.Impl.Common FastByIDMap IPreferenceArray 
users to include; (see also [!:GenericDataModel.ToDataMap(FastByIDMap, bool)])
timestamps
Type: NReco.CF.Taste.Impl.Common FastByIDMap FastByIDMap Nullable DateTime   
timestamps optionally, provided timestamps of preferences as milliseconds since the epoch. User IDs are mapped to maps of item IDs to long timestamps.
See Also