Versions in this module Expand all Collapse all v1 v1.3.0 Apr 17, 2024 Changes in this version + func Fit() + func OnInit(config map[string]interface{}, option ...Option) (err error) + func RecommendItems(uId uint32, howmany int) (itemIds []uint32) + func Wait() + type IRecom interface + Fit func() + RecommendItems func(uId uint32, howmany int) (itemIds []uint32) + Wait func() + func NewSys(option ...Option) (sys IRecom, err error) + type Option func(*Options) + func SetItemIds(v []uint32) Option + func SetItemIdsScore(v map[uint32]map[uint32]float64) Option + func SetRatings(v []float64) Option + func SetRecomModel(v RecomModel) Option + func SetUserIds(v []uint32) Option + type Options struct + ItemIds []uint32 + ItemIdsScore map[uint32]map[uint32]float64 + Ratings []float64 + RecomModel RecomModel + UserIds []uint32 + type Recom struct + func (this *Recom) Fit() + func (this *Recom) RecommendItems(uId uint32, howmany int) (itemIds []uint32) + func (this *Recom) Wait() + type RecomModel uint8 + const BPRModel + const SVD