recommendation

package
v0.0.0-...-7f82438 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2015 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recommendation

type Recommendation struct {
	User  user.User
	Score float64
}

Recommendation contains a user with similiar interests

type Recommender

type Recommender interface {
	GetRecommendations(user *user.User) ([]Recommendation, error)
}

Recommender returns recommendations of users with similiar interests

type SimpleRecommender

type SimpleRecommender struct {
	// contains filtered or unexported fields
}

SimpleRecommender is a simple implementation of the Recommender using regocommend neighbours

func New

func New(userRepo user.Repository) *SimpleRecommender

New creates a new SimpleRecommender instance

func (SimpleRecommender) GetRecommendations

func (sr SimpleRecommender) GetRecommendations(usr user.User) ([]Recommendation, error)

GetRecommendations is a method for returning recommendations of users with similiar interests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL