Versions in this module Expand all Collapse all v0 v0.0.3 Mar 10, 2024 v0.0.2 May 24, 2023 Changes in this version + const ScopeIDDefault v0.0.1 Jul 7, 2022 Changes in this version + const ScopeIdDefault + const StorageDefault + func GetClass(classID uint64) any + func HashTrans(transitions ...T) (uint64, error) + func Predict(items []T) (classID uint64, err error) + func Reset() + func SetStorage(storage Storage) + func Train(items []T) error + type NodeLogger interface + ID func() uint64 + Predict func(fromNodeA, toNodeB uint64) float64 + PriorPNotFromAtoB func(fromA, toB uint64) float64 + PriorPfromAtoB func(fromA, toB uint64) float64 + PriorPtoB func(nodeB uint64) float64 + Update func(fromA, toB uint64) + func New(engine Storage, scopeID uint64) (NodeLogger, error) + type Storage int + const MemoryStorage + const SQLite3Storage + const UnknwonStorage + func (s Storage) Type() string