Versions in this module Expand all Collapse all v0 v0.4.6 Jun 16, 2022 Changes in this version + const NeighborTypeAuto + const NeighborTypeRelated + const NeighborTypeSimilar + type CollaborativeConfig struct + EnableIndex bool + IndexFitEpoch int + IndexRecall float32 + ModelFitPeriod time.Duration + ModelSearchEpoch int + ModelSearchPeriod time.Duration + ModelSearchTrials int + type Config struct + Database DatabaseConfig + Master MasterConfig + Recommend RecommendConfig + Server ServerConfig + func GetDefaultConfig() *Config + func LoadConfig(path string, oneModel bool) (*Config, error) + func (config *Config) ItemNeighborDigest() string + func (config *Config) OfflineRecommendDigest(option ...DigestOption) string + func (config *Config) UserNeighborDigest() string + type DataSourceConfig struct + ItemTTL uint + PositiveFeedbackTTL uint + PositiveFeedbackTypes []string + ReadFeedbackTypes []string + type DatabaseConfig struct + CacheStore string + DataStore string + type DigestOption func(option *digestOptions) + func WithCollaborative(v bool) DigestOption + func WithItemNeighborDigest(digest string) DigestOption + func WithRanking(v bool) DigestOption + func WithUserNeighborDigest(digest string) DigestOption + type MasterConfig struct + DashboardPassword string + DashboardUserName string + Host string + HttpHost string + HttpPort int + MetaTimeout time.Duration + NumJobs int + Port int + type NeighborsConfig struct + EnableIndex bool + IndexFitEpoch int + IndexRecall float32 + NeighborType string + type OfflineConfig struct + CheckRecommendPeriod time.Duration + EnableClickThroughPrediction bool + EnableColRecommend bool + EnableItemBasedRecommend bool + EnableLatestRecommend bool + EnablePopularRecommend bool + EnableUserBasedRecommend bool + ExploreRecommend map[string]float64 + RefreshRecommendPeriod time.Duration + func (config *OfflineConfig) GetExploreRecommend(key string) (value float64, exist bool) + func (config *OfflineConfig) Lock() + func (config *OfflineConfig) UnLock() + type OnlineConfig struct + FallbackRecommend []string + NumFeedbackFallbackItemBased int + type PopularConfig struct + PopularWindow time.Duration + type RecommendConfig struct + CacheExpire time.Duration + CacheSize int + Collaborative CollaborativeConfig + DataSource DataSourceConfig + ItemNeighbors NeighborsConfig + Offline OfflineConfig + Online OnlineConfig + Popular PopularConfig + Replacement ReplacementConfig + UserNeighbors NeighborsConfig + type ReplacementConfig struct + EnableReplacement bool + PositiveReplacementDecay float64 + ReadReplacementDecay float64 + type ServerConfig struct + APIKey string + AutoInsertItem bool + AutoInsertUser bool + CacheExpire time.Duration + ClockError time.Duration + DefaultN int + type Settings struct + CacheClient cache.Database + ClickModel click.FactorizationMachine + ClickModelVersion int64 + Config *Config + DataClient data.Database + RankingModel ranking.MatrixFactorization + RankingModelVersion int64 + func NewSettings() *Settings