C# 클래스 AIXI.CTWContextTreeFast

상속: IModel
파일 보기 프로젝트 열기: GoodAI/SummerCamp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CacheMultipliersBellow int
Context List
Depth int
FirstFreeIndex int
FreeIndices Queue
Multipliers ].double[
Nodes AIXI.CtNode[]
RootI int
TreeSize int

공개 메소드들

메소드 설명
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

메소드 상세

CTWContextTreeFast() 공개 메소드

public CTWContextTreeFast ( int depth ) : System
depth int
리턴 System

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

CreateNewNode() 공개 메소드

public CreateNewNode ( ) : int
리턴 int

FreeIfUnvisited() 공개 메소드

public FreeIfUnvisited ( int index ) : bool
index int
리턴 bool

FreeNode() 공개 메소드

public FreeNode ( int index ) : void
index int
리턴 void

FreeSubtree() 공개 메소드

public FreeSubtree ( int index ) : void
index int
리턴 void

GenerateRandomSymbols() 공개 메소드

public GenerateRandomSymbols ( int symbolCount ) : int[]
symbolCount int
리턴 int[]

GenerateRandomSymbolsAndUpdate() 공개 메소드

public GenerateRandomSymbolsAndUpdate ( int symbolCount ) : int[]
symbolCount int
리턴 int[]

GetFreeIndex() 공개 메소드

public GetFreeIndex ( ) : int
리턴 int

IsLeaf() 공개 메소드

public IsLeaf ( int index ) : bool
index int
리턴 bool

LogKtMultiplier() 공개 메소드

public LogKtMultiplier ( int index, int symbol ) : double
index int
symbol int
리턴 double

Predict() 공개 메소드

public Predict ( int symbolList ) : double
symbolList int
리턴 double

Resize() 공개 메소드

public Resize ( ) : void
리턴 void

SameNode() 공개 메소드

public SameNode ( int meI, CTWContextTreeNode he ) : bool
meI int
he CTWContextTreeNode
리턴 bool

SetSymbolCount() 공개 메소드

public SetSymbolCount ( int index, int symbol, int newValue ) : void
index int
symbol int
newValue int
리턴 void

SymbolCount() 공개 메소드

public SymbolCount ( int index, int symbol ) : int
index int
symbol int
리턴 int

UpdateLogProbability() 공개 메소드

public UpdateLogProbability ( int index ) : void
index int
리턴 void

Visits() 공개 메소드

public Visits ( int index ) : int
index int
리턴 int

compare() 공개 메소드

public compare ( CTWContextTree other ) : bool
other CTWContextTree
리턴 bool

compare() 공개 메소드

public compare ( int meI, CTWContextTreeNode he ) : bool
meI int
he CTWContextTreeNode
리턴 bool

get_model_size() 공개 메소드

public get_model_size ( ) : int
리턴 int

print_node() 공개 메소드

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

print_tree() 공개 메소드

public print_tree ( ) : void
리턴 void

revert_node() 공개 메소드

public revert_node ( int index, int symbol ) : void
index int
symbol int
리턴 void

revert_tree() 공개 메소드

public revert_tree ( int symbolCount = 1 ) : void
symbolCount int
리턴 void

revert_tree_history() 공개 메소드

public revert_tree_history ( int symbolCount ) : void
symbolCount int
리턴 void

subtree_size() 공개 메소드

public subtree_size ( int index ) : int
index int
리턴 int

update_context() 공개 메소드

public update_context ( ) : void
리턴 void

update_node() 공개 메소드

public update_node ( int index, int symbol ) : void
index int
symbol int
리턴 void

update_tree() 공개 메소드

public update_tree ( int symbolList ) : void
symbolList int
리턴 void

update_tree_history() 공개 메소드

public update_tree_history ( int symbol ) : void
symbol int
리턴 void

프로퍼티 상세

CacheMultipliersBellow 공개적으로 프로퍼티

public int CacheMultipliersBellow
리턴 int

Context 공개적으로 프로퍼티

public List Context
리턴 List

Depth 공개적으로 프로퍼티

public int Depth
리턴 int

FirstFreeIndex 공개적으로 프로퍼티

public int FirstFreeIndex
리턴 int

FreeIndices 공개적으로 프로퍼티

public Queue FreeIndices
리턴 Queue

Multipliers 공개적으로 프로퍼티

public double[,] Multipliers
리턴 ].double[

Nodes 공개적으로 프로퍼티

public CtNode[],AIXI Nodes
리턴 AIXI.CtNode[]

RootI 공개적으로 프로퍼티

public int RootI
리턴 int

TreeSize 공개적으로 프로퍼티

public int TreeSize
리턴 int