C# Class AIXI.CTWContextTreeFast

Inheritance: IModel
Show file Open project: GoodAI/SummerCamp Class Usage Examples

Public Properties

Property Type Description
CacheMultipliersBellow int
Context List
Depth int
FirstFreeIndex int
FreeIndices Queue
Multipliers ].double[
Nodes AIXI.CtNode[]
RootI int
TreeSize int

Public Methods

Method Description
CTWContextTreeFast ( int depth ) : System
Clear ( ) : void
CreateNewNode ( ) : int
FreeIfUnvisited ( int index ) : bool
FreeNode ( int index ) : void
FreeSubtree ( int index ) : void
GenerateRandomSymbols ( int symbolCount ) : int[]
GenerateRandomSymbolsAndUpdate ( int symbolCount ) : int[]
GetFreeIndex ( ) : int
IsLeaf ( int index ) : bool
LogKtMultiplier ( int index, int symbol ) : double
Predict ( int symbolList ) : double
Resize ( ) : void
SameNode ( int meI, CTWContextTreeNode he ) : bool
SetSymbolCount ( int index, int symbol, int newValue ) : void
SymbolCount ( int index, int symbol ) : int
UpdateLogProbability ( int index ) : void
Visits ( int index ) : int
compare ( CTWContextTree other ) : bool
compare ( int meI, CTWContextTreeNode he ) : bool
get_model_size ( ) : int
print_node ( int nodeIndex = -1, int level ) : void
print_tree ( ) : void
revert_node ( int index, int symbol ) : void
revert_tree ( int symbolCount = 1 ) : void
revert_tree_history ( int symbolCount ) : void
subtree_size ( int index ) : int
update_context ( ) : void
update_node ( int index, int symbol ) : void
update_tree ( int symbolList ) : void
update_tree_history ( int symbol ) : void

Method Details

CTWContextTreeFast() public method

public CTWContextTreeFast ( int depth ) : System
depth int
return System

Clear() public method

public Clear ( ) : void
return void

CreateNewNode() public method

public CreateNewNode ( ) : int
return int

FreeIfUnvisited() public method

public FreeIfUnvisited ( int index ) : bool
index int
return bool

FreeNode() public method

public FreeNode ( int index ) : void
index int
return void

FreeSubtree() public method

public FreeSubtree ( int index ) : void
index int
return void

GenerateRandomSymbols() public method

public GenerateRandomSymbols ( int symbolCount ) : int[]
symbolCount int
return int[]

GenerateRandomSymbolsAndUpdate() public method

public GenerateRandomSymbolsAndUpdate ( int symbolCount ) : int[]
symbolCount int
return int[]

GetFreeIndex() public method

public GetFreeIndex ( ) : int
return int

IsLeaf() public method

public IsLeaf ( int index ) : bool
index int
return bool

LogKtMultiplier() public method

public LogKtMultiplier ( int index, int symbol ) : double
index int
symbol int
return double

Predict() public method

public Predict ( int symbolList ) : double
symbolList int
return double

Resize() public method

public Resize ( ) : void
return void

SameNode() public method

public SameNode ( int meI, CTWContextTreeNode he ) : bool
meI int
he CTWContextTreeNode
return bool

SetSymbolCount() public method

public SetSymbolCount ( int index, int symbol, int newValue ) : void
index int
symbol int
newValue int
return void

SymbolCount() public method

public SymbolCount ( int index, int symbol ) : int
index int
symbol int
return int

UpdateLogProbability() public method

public UpdateLogProbability ( int index ) : void
index int
return void

Visits() public method

public Visits ( int index ) : int
index int
return int

compare() public method

public compare ( CTWContextTree other ) : bool
other CTWContextTree
return bool

compare() public method

public compare ( int meI, CTWContextTreeNode he ) : bool
meI int
he CTWContextTreeNode
return bool

get_model_size() public method

public get_model_size ( ) : int
return int

print_node() public method

public print_node ( int nodeIndex = -1, int level ) : void
nodeIndex int
level int
return void

print_tree() public method

public print_tree ( ) : void
return void

revert_node() public method

public revert_node ( int index, int symbol ) : void
index int
symbol int
return void

revert_tree() public method

public revert_tree ( int symbolCount = 1 ) : void
symbolCount int
return void

revert_tree_history() public method

public revert_tree_history ( int symbolCount ) : void
symbolCount int
return void

subtree_size() public method

public subtree_size ( int index ) : int
index int
return int

update_context() public method

public update_context ( ) : void
return void

update_node() public method

public update_node ( int index, int symbol ) : void
index int
symbol int
return void

update_tree() public method

public update_tree ( int symbolList ) : void
symbolList int
return void

update_tree_history() public method

public update_tree_history ( int symbol ) : void
symbol int
return void

Property Details

CacheMultipliersBellow public property

public int CacheMultipliersBellow
return int

Context public property

public List Context
return List

Depth public property

public int Depth
return int

FirstFreeIndex public property

public int FirstFreeIndex
return int

FreeIndices public property

public Queue FreeIndices
return Queue

Multipliers public property

public double[,] Multipliers
return ].double[

Nodes public property

public CtNode[],AIXI Nodes
return AIXI.CtNode[]

RootI public property

public int RootI
return int

TreeSize public property

public int TreeSize
return int