C# 클래스 numl.Reinforcement.MDPConverter

Converter class for generating Markov Decision Processes.
파일 보기 프로젝트 열기: sethjuarez/numl 1 사용 예제들

공개 메소드들

메소드 설명
GetAction ( double action, int parentStateId, int childStateId ) : AI.Action

Converts a double into an IAction.

GetState ( Vector state, Summary summary, IDiscretizer discretizer ) : MDPState

Converts the state vector into an MDP state.

GetStates ( Matrix states, Math properties, IDiscretizer discretizer ) : IEnumerable

Converts a Matrix of states into an array of State objects.

GetStates ( Matrix states, Vector actions, Matrix statesP, Vector reward, Math properties, IDiscretizer discretizer ) : IEnumerable

Returns a graph of MDP States from the States matrices and Action label vector.

GetStates ( Matrix states, Vector actions, Matrix statesP, Math properties, IDiscretizer discretizer ) : Tuple,IEnumerable,IEnumerable>

Returns a flat collection of states/actions and their transition states.

ToExamples ( this state ) : Tuple

Converts an MDP State (recursively) into it's equivalent math form, including all successor states.

ToExamples ( this states ) : Tuple

Converts an enumerable of MDP States (recursively) into their equivalent math forms, including their successor states.

ToVector ( this state ) : Vector

Converts the MDP State into a vector form.

비공개 메소드들

메소드 설명
Convert ( this state, List &nodes, Matrix &states, Vector &actions, Matrix &statesP, Vector &rewards ) : void

Converts the experience pair into their equivalent math forms.

GetActionKey ( int stateId, int tStateId ) : string

메소드 상세

GetAction() 공개 정적인 메소드

Converts a double into an IAction.
public static GetAction ( double action, int parentStateId, int childStateId ) : AI.Action
action double Double.
parentStateId int Parent state identifier.
childStateId int Child state identifier.
리턴 AI.Action

GetState() 공개 정적인 메소드

Converts the state vector into an MDP state.
public static GetState ( Vector state, Summary summary, IDiscretizer discretizer ) : MDPState
state numl.Math.LinearAlgebra.Vector State vector.
summary numl.Math.Summary Feature properties from the original set.
discretizer IDiscretizer Discretization function for generating unique state identifiers.
리턴 MDPState

GetStates() 공개 정적인 메소드

Converts a Matrix of states into an array of State objects.
public static GetStates ( Matrix states, Math properties, IDiscretizer discretizer ) : IEnumerable
states Matrix State matrix.
properties System.Math (Optional) Feature summary.
discretizer IDiscretizer Disretization function to apply for reducing states.
리턴 IEnumerable

GetStates() 공개 정적인 메소드

Returns a graph of MDP States from the States matrices and Action label vector.
public static GetStates ( Matrix states, Vector actions, Matrix statesP, Vector reward, Math properties, IDiscretizer discretizer ) : IEnumerable
states Matrix State matrix.
actions numl.Math.LinearAlgebra.Vector Action label vector.
statesP Matrix Transition states matrix.
reward numl.Math.LinearAlgebra.Vector Reward value vector.
properties System.Math Feature properties from the original set.
discretizer IDiscretizer Discretization function for generating unique state identifiers.
리턴 IEnumerable

GetStates() 공개 정적인 메소드

Returns a flat collection of states/actions and their transition states.
public static GetStates ( Matrix states, Vector actions, Matrix statesP, Math properties, IDiscretizer discretizer ) : Tuple,IEnumerable,IEnumerable>
states Matrix State matrix.
actions numl.Math.LinearAlgebra.Vector Action label vector.
statesP Matrix Transition states matrix.
properties System.Math (Optional) Feature summary.
discretizer IDiscretizer Disretization function to apply for reducing states.
리턴 Tuple,IEnumerable,IEnumerable>

ToExamples() 공개 정적인 메소드

Converts an MDP State (recursively) into it's equivalent math form, including all successor states.
public static ToExamples ( this state ) : Tuple
state this The starting state.
리턴 Tuple

ToExamples() 공개 정적인 메소드

Converts an enumerable of MDP States (recursively) into their equivalent math forms, including their successor states.
public static ToExamples ( this states ) : Tuple
states this An enumerable of states.
리턴 Tuple

ToVector() 공개 정적인 메소드

Converts the MDP State into a vector form.
public static ToVector ( this state ) : Vector
state this MDP State.
리턴 numl.Math.LinearAlgebra.Vector