compactPredictionTree

package
v0.0.0-...-c3b48ed Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package compactPredictionTree provides a wrapper around the structure needed to build compact prediction tree

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCompactPredictionTree

func InitCompactPredictionTree(compactPredictionTree *CompactPredictionTree)

InitCompactPredictionTree init structure

func PredictionOverTestingSequence

func PredictionOverTestingSequence(compactPredictionTree *CompactPredictionTree, k int, n int) map[int][]string

PredictionOverTestingSequence init structure

func String

func String(compactPredictionTree *CompactPredictionTree) (result string)

Stringify the compactPredictionTree

Types

type CompactPredictionTree

type CompactPredictionTree struct {
	InvertedIndexTable *invertedIndexTable.InvertedIndexTable
	PredictionTree     *predictionTree.PredictionTree
	TrainingSet        map[int]*sequence.Sequence
	TestingSet         map[int]*sequence.Sequence
}

The struct CompactPredictionTree

func NewCompactPredictionTree

func NewCompactPredictionTree(
	invertedIndexTable *invertedIndexTable.InvertedIndexTable,
	predictionTree *predictionTree.PredictionTree,
	trainingSet map[int]*sequence.Sequence,
	testingSet map[int]*sequence.Sequence) (compactPredictionTree *CompactPredictionTree)

NewCompactPredictionTree create a new CompactPredictionTree

type Pair

type Pair struct {
	Key   string
	Value float64
}

type PairList

type PairList []Pair

func (PairList) Len

func (p PairList) Len() int

func (PairList) Less

func (p PairList) Less(i, j int) bool

func (PairList) Swap

func (p PairList) Swap(i, j int)

Jump to

Keyboard shortcuts

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