C# Класс MyMediaLite.RatingPrediction.EntityAverage

Abstract class that uses an average (by entity) rating value for predictions
Наследование: RatingPredictor
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
entity_averages IList
global_average double

Открытые методы

Метод Описание
LoadModel ( string filename ) : void
SaveModel ( string filename ) : void
this ( int index ) : double

return the average rating for a given entity

Защищенные методы

Метод Описание
Train ( IList entity_ids, int max_entity_id ) : void

Train the recommender according to the given entity type

Описание методов

LoadModel() публичный Метод

public LoadModel ( string filename ) : void
filename string
Результат void

SaveModel() публичный Метод

public SaveModel ( string filename ) : void
filename string
Результат void

Train() защищенный Метод

Train the recommender according to the given entity type
protected Train ( IList entity_ids, int max_entity_id ) : void
entity_ids IList list of the relevant entity IDs in the training data
max_entity_id int the maximum entity ID
Результат void

this() публичный Метод

return the average rating for a given entity
public this ( int index ) : double
index int the entity index
Результат double

Описание свойств

entity_averages защищенное свойство

The average rating for each entity
protected IList entity_averages
Результат IList

global_average защищенное свойство

The global average rating (default prediction if there is no data about an entity)
protected double global_average
Результат double