Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEstimator ¶
type BaseEstimator interface { SetParams(params map[string]interface{}) Predict(userID, channelID string) (float64, error) Fit(activities map[string]map[string]int64) }
BaseEstimator determines interface for all estimators for user-channel suggestions
func NewSimpleKNN ¶
func NewSimpleKNN(params map[string]interface{}) BaseEstimator
NewSimpleKNN returns Simple KNN Estimator
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
An Item is something we manage in a max heap.
type MaxHeapK ¶
type MaxHeapK struct {
// contains filtered or unexported fields
}
A MaxHeapK implements heap.Interface.
func NewMaxHeapK ¶
NewMaxHeapK returns a brand new max heap with capacity k.
func (*MaxHeapK) Pop ¶
func (pq *MaxHeapK) Pop() interface{}
Pop method pops item of hightest priority from the PQ.
Click to show internal directories.
Click to hide internal directories.