Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoInputData = errors.New("no personalization input data")
Functions ¶
func AddTo ¶
func AddTo(c *gin.Context, k *Personalization)
Types ¶
type Personalization ¶
func For ¶
func For(ctx context.Context) *Personalization
func NewPersonalization ¶
func (*Personalization) Loop ¶
func (k *Personalization) Loop(ctx context.Context, ticker *time.Ticker)
Loop is the main event loop that updates the personalization matrices
func (*Personalization) RelevanceTo ¶
func (p *Personalization) RelevanceTo(userID persist.DBID, e db.FeedEntityScore) float64
Click to show internal directories.
Click to hide internal directories.