pge

package
v0.0.0-...-3e44a7a Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

README

go-pesr

a Go library for Prioritized Enumeration based Symbolic Regression

Prioritized enumeration is a deterministic algorithm for uncovering symbolic equations from data sets. PESR is inspired by dynamic programming.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegressExpr

func RegressExpr(E expr.Expr, P *probs.ExprProblem) (R *probs.ExprReport)

Types

type IpreNode

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

func (*IpreNode) InsertSerial

func (n *IpreNode) InsertSerial(s []int) (did_ins bool)

type PgeSearch

type PgeSearch struct {

	// best exprs
	Best *probs.ReportQueue

	// equations visited
	Trie  *IpreNode
	Queue *probs.ReportQueue

	// genStuff
	GenRoots   []expr.Expr
	GenLeafs   []expr.Expr
	GenNodes   []expr.Expr
	GenNonTrig []expr.Expr
	// contains filtered or unexported fields
}

func (*PgeSearch) AddTermToExprMethod1

func (PS *PgeSearch) AddTermToExprMethod1(O, E expr.Expr, pos int) (ret []expr.Expr)

add another term to an add expr

func (*PgeSearch) Clean

func (PS *PgeSearch) Clean()

func (*PgeSearch) DeepenTermInExprMethod1

func (PS *PgeSearch) DeepenTermInExprMethod1(O, E expr.Expr, pos int) []expr.Expr

change any term to something more complex...

func (*PgeSearch) Evaluate

func (PS *PgeSearch) Evaluate()

func (*PgeSearch) Expand

func (PS *PgeSearch) Expand(O expr.Expr) (ret []expr.Expr)

func (*PgeSearch) ExpandMethod1

func (PS *PgeSearch) ExpandMethod1(O expr.Expr) (ret []expr.Expr)

func (*PgeSearch) ExpandMethod2

func (PS *PgeSearch) ExpandMethod2(O expr.Expr) (ret []expr.Expr)

func (*PgeSearch) ExpandMethod3

func (PS *PgeSearch) ExpandMethod3(O expr.Expr) (ret []expr.Expr)

func (*PgeSearch) GenInitExpr

func (PS *PgeSearch) GenInitExpr() *probs.ReportQueue

func (*PgeSearch) GenInitExprAddMethod1

func (PS *PgeSearch) GenInitExprAddMethod1() []expr.Expr

func (*PgeSearch) GenInitExprDivMethod1

func (PS *PgeSearch) GenInitExprDivMethod1() []expr.Expr

func (*PgeSearch) GenInitExprMethod1

func (PS *PgeSearch) GenInitExprMethod1() *probs.ReportQueue

func (*PgeSearch) GenInitExprMethod2

func (PS *PgeSearch) GenInitExprMethod2() *probs.ReportQueue

This is the FFXish style init function

func (*PgeSearch) GenInitExprMethod3

func (PS *PgeSearch) GenInitExprMethod3() *probs.ReportQueue

This is the FFXish style init function

func (*PgeSearch) GenInitExprMulMethod1

func (PS *PgeSearch) GenInitExprMulMethod1() []expr.Expr

func (*PgeSearch) GetMaxIter

func (PS *PgeSearch) GetMaxIter() int

func (*PgeSearch) Init

func (PS *PgeSearch) Init(done chan int, prob *probs.ExprProblem, logdir string, input interface{})

func (*PgeSearch) ParseConfig

func (PS *PgeSearch) ParseConfig(filename string)

func (*PgeSearch) Run

func (PS *PgeSearch) Run()

func (*PgeSearch) SetEvalrCount

func (PS *PgeSearch) SetEvalrCount(cnt int)

func (*PgeSearch) SetGrowMethod

func (PS *PgeSearch) SetGrowMethod(grow string)

func (*PgeSearch) SetInitMethod

func (PS *PgeSearch) SetInitMethod(init string)

func (*PgeSearch) SetMaxIter

func (PS *PgeSearch) SetMaxIter(iter int)

func (*PgeSearch) SetPeelCount

func (PS *PgeSearch) SetPeelCount(cnt int)

func (*PgeSearch) WidenTermInExprMethod1

func (PS *PgeSearch) WidenTermInExprMethod1(O, E expr.Expr, pos int) (ret []expr.Expr)

add complexity to a single multiplication term

Jump to

Keyboard shortcuts

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