Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BorrowTransitions ¶
func BorrowTransitions(index *Index, source TransitionSource, current core.Template, route string, neighborLimit int, predictionLimit int, penalty float64) ([]core.Prediction, []core.StructuralNeighbor)
func WeightedJaccard ¶
func WeightedJaccard(left, right core.FeatureMap) (float64, []string)
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) Add ¶
func (idx *Index) Add(id core.TemplateID, features core.FeatureMap)
func (*Index) FeatureCount ¶
func (*Index) Nearest ¶
func (idx *Index) Nearest(exclude core.TemplateID, query core.FeatureMap, limit int) []core.StructuralNeighbor
type TransitionSource ¶
type TransitionSource interface {
PredictFromTemplate(templateID core.TemplateID, route string, limit int) []core.Prediction
}
Click to show internal directories.
Click to hide internal directories.