public abstract class Learning<O extends org.deeplearning4j.rl4j.space.Encodable,A,AS extends org.deeplearning4j.rl4j.space.ActionSpace<A>,NN extends NeuralNet> extends Object implements ILearning<O,A,AS>, NeuralNetFetchable<NN>
Modifier and Type | Class and Description |
---|---|
static class |
Learning.InitMdp<O> |
ILearning.LConfiguration
Constructor and Description |
---|
Learning(ILearning.LConfiguration conf) |
Modifier and Type | Method and Description |
---|---|
protected abstract DataManager |
getDataManager() |
static <O extends org.deeplearning4j.rl4j.space.Encodable,A,AS extends org.deeplearning4j.rl4j.space.ActionSpace<A>> |
getInput(MDP<O,A,AS> mdp,
O obs) |
org.nd4j.linalg.api.ndarray.INDArray |
getInput(O obs) |
static Integer |
getMaxAction(org.nd4j.linalg.api.ndarray.INDArray vector) |
abstract NN |
getNeuralNet() |
int |
incrementEpoch() |
int |
incrementStep() |
Learning.InitMdp<O> |
initMdp() |
static <O extends org.deeplearning4j.rl4j.space.Encodable,A,AS extends org.deeplearning4j.rl4j.space.ActionSpace<A>> |
initMdp(MDP<O,A,AS> mdp,
IHistoryProcessor hp) |
static int[] |
makeShape(int size,
int[] shape) |
static int[] |
makeShape(int batch,
int[] shape,
int length) |
protected void |
setHistoryProcessor(IHistoryProcessor.Configuration conf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration, getMdp, getPolicy, getStepCounter, train
public Learning(ILearning.LConfiguration conf)
public static Integer getMaxAction(org.nd4j.linalg.api.ndarray.INDArray vector)
public static <O extends org.deeplearning4j.rl4j.space.Encodable,A,AS extends org.deeplearning4j.rl4j.space.ActionSpace<A>> org.nd4j.linalg.api.ndarray.INDArray getInput(MDP<O,A,AS> mdp, O obs)
public static <O extends org.deeplearning4j.rl4j.space.Encodable,A,AS extends org.deeplearning4j.rl4j.space.ActionSpace<A>> Learning.InitMdp<O> initMdp(MDP<O,A,AS> mdp, IHistoryProcessor hp)
public static int[] makeShape(int size, int[] shape)
public static int[] makeShape(int batch, int[] shape, int length)
protected abstract DataManager getDataManager()
public abstract NN getNeuralNet()
getNeuralNet
in interface NeuralNetFetchable<NN extends NeuralNet>
public int incrementStep()
public int incrementEpoch()
protected void setHistoryProcessor(IHistoryProcessor.Configuration conf)
public org.nd4j.linalg.api.ndarray.INDArray getInput(O obs)
public Learning.InitMdp<O> initMdp()
Copyright © 2017. All rights reserved.