C# 클래스 NReco.CF.Taste.Impl.Model.GenericDataModel

상속: NReco.CF.Taste.Impl.Model.AbstractDataModel
파일 보기 프로젝트 열기: nreco/recommender 1 사용 예제들

공개 메소드들

메소드 설명
GenericDataModel ( FastByIDMap userData ) : System

Creates a new GenericDataModel from the given users (and their preferences). This IDataModel retains all this information in memory and is effectively immutable.

GenericDataModel ( FastByIDMap userData, FastByIDMap timestamps ) : System

Creates a new GenericDataModel from the given users (and their preferences). This IDataModel retains all this information in memory and is effectively immutable.

GenericDataModel ( IDataModel dataModel ) : System

Creates a new GenericDataModel containing an immutable copy of the data from another given IDataModel.

GetItemIDs ( ) : IEnumerator
GetItemIDsFromUser ( long userID ) : FastIDSet
GetNumItems ( ) : int
GetNumUsers ( ) : int
GetNumUsersWithPreferenceFor ( long itemID ) : int
GetNumUsersWithPreferenceFor ( long itemID1, long itemID2 ) : int
GetPreferenceTime ( long userID, long itemID ) : DateTime?
GetPreferenceValue ( long userID, long itemID ) : float?
GetPreferencesForItem ( long itemID ) : IPreferenceArray
GetPreferencesFromUser ( long userID ) : IPreferenceArray
GetRawItemData ( ) : FastByIDMap

This is used mostly internally to the framework, and shouldn't be relied upon otherwise.

GetRawUserData ( ) : FastByIDMap

This is used mostly internally to the framework, and shouldn't be relied upon otherwise.

GetUserIDs ( ) : IEnumerator
HasPreferenceValues ( ) : bool
Refresh ( IList alreadyRefreshed ) : void
RemovePreference ( long userID, long itemID ) : void
SetPreference ( long userID, long itemID, float value ) : void
ToDataMap ( FastByIDMap data, bool byUser ) : FastByIDMap

Swaps, in-place, ILists for arrays in map values.

ToDataMap ( IDataModel dataModel ) : FastByIDMap

Exports the simple user IDs and preferences in the data model.

ToString ( ) : string

메소드 상세

GenericDataModel() 공개 메소드

Creates a new GenericDataModel from the given users (and their preferences). This IDataModel retains all this information in memory and is effectively immutable.
public GenericDataModel ( FastByIDMap userData ) : System
userData FastByIDMap userData users to include; (see also )
리턴 System

GenericDataModel() 공개 메소드

Creates a new GenericDataModel from the given users (and their preferences). This IDataModel retains all this information in memory and is effectively immutable.
public GenericDataModel ( FastByIDMap userData, FastByIDMap timestamps ) : System
userData FastByIDMap users to include; (see also )
timestamps FastByIDMap timestamps optionally, provided timestamps of preferences as milliseconds since the epoch. User IDs are mapped to maps of item IDs to long timestamps.
리턴 System

GenericDataModel() 공개 메소드

Creates a new GenericDataModel containing an immutable copy of the data from another given IDataModel.
public GenericDataModel ( IDataModel dataModel ) : System
dataModel IDataModel dataModel to copy
리턴 System

GetItemIDs() 공개 메소드

public GetItemIDs ( ) : IEnumerator
리턴 IEnumerator

GetItemIDsFromUser() 공개 메소드

public GetItemIDsFromUser ( long userID ) : FastIDSet
userID long
리턴 FastIDSet

GetNumItems() 공개 메소드

public GetNumItems ( ) : int
리턴 int

GetNumUsers() 공개 메소드

public GetNumUsers ( ) : int
리턴 int

GetNumUsersWithPreferenceFor() 공개 메소드

public GetNumUsersWithPreferenceFor ( long itemID ) : int
itemID long
리턴 int

GetNumUsersWithPreferenceFor() 공개 메소드

public GetNumUsersWithPreferenceFor ( long itemID1, long itemID2 ) : int
itemID1 long
itemID2 long
리턴 int

GetPreferenceTime() 공개 메소드

public GetPreferenceTime ( long userID, long itemID ) : DateTime?
userID long
itemID long
리턴 DateTime?

GetPreferenceValue() 공개 메소드

public GetPreferenceValue ( long userID, long itemID ) : float?
userID long
itemID long
리턴 float?

GetPreferencesForItem() 공개 메소드

public GetPreferencesForItem ( long itemID ) : IPreferenceArray
itemID long
리턴 IPreferenceArray

GetPreferencesFromUser() 공개 메소드

public GetPreferencesFromUser ( long userID ) : IPreferenceArray
userID long
리턴 IPreferenceArray

GetRawItemData() 공개 메소드

This is used mostly internally to the framework, and shouldn't be relied upon otherwise.
public GetRawItemData ( ) : FastByIDMap
리턴 FastByIDMap

GetRawUserData() 공개 메소드

This is used mostly internally to the framework, and shouldn't be relied upon otherwise.
public GetRawUserData ( ) : FastByIDMap
리턴 FastByIDMap

GetUserIDs() 공개 메소드

public GetUserIDs ( ) : IEnumerator
리턴 IEnumerator

HasPreferenceValues() 공개 메소드

public HasPreferenceValues ( ) : bool
리턴 bool

Refresh() 공개 메소드

public Refresh ( IList alreadyRefreshed ) : void
alreadyRefreshed IList
리턴 void

RemovePreference() 공개 메소드

public RemovePreference ( long userID, long itemID ) : void
userID long
itemID long
리턴 void

SetPreference() 공개 메소드

public SetPreference ( long userID, long itemID, float value ) : void
userID long
itemID long
value float
리턴 void

ToDataMap() 공개 정적인 메소드

Swaps, in-place, ILists for arrays in map values.
public static ToDataMap ( FastByIDMap data, bool byUser ) : FastByIDMap
data FastByIDMap
byUser bool
리턴 FastByIDMap

ToDataMap() 공개 정적인 메소드

Exports the simple user IDs and preferences in the data model.
public static ToDataMap ( IDataModel dataModel ) : FastByIDMap
dataModel IDataModel
리턴 FastByIDMap

ToString() 공개 메소드

public ToString ( ) : string
리턴 string