public class DataManager extends Object implements IDataManager
Modifier and Type | Class and Description |
---|---|
static class |
DataManager.Info |
IDataManager.StatEntry
Constructor and Description |
---|
DataManager() |
DataManager(boolean saveData) |
DataManager(String dataRoot,
boolean saveData) |
Modifier and Type | Method and Description |
---|---|
void |
appendStat(IDataManager.StatEntry statEntry) |
String |
createSubdir() |
String |
getInfo() |
String |
getModelDir() |
String |
getStat() |
String |
getVideoDir() |
static <C> org.nd4j.linalg.primitives.Pair<IDQN,C> |
load(File file,
Class<C> cClass) |
static <C> org.nd4j.linalg.primitives.Pair<IDQN,C> |
load(InputStream is,
Class<C> cClass) |
static <C> org.nd4j.linalg.primitives.Pair<IDQN,C> |
load(String path,
Class<C> cClass) |
void |
save(ILearning learning) |
static void |
save(OutputStream os,
ILearning learning) |
static void |
save(String path,
ILearning learning) |
void |
writeInfo(ILearning iLearning) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSaveData
public DataManager() throws IOException
IOException
public DataManager(boolean saveData) throws IOException
IOException
public DataManager(String dataRoot, boolean saveData) throws IOException
IOException
public static void save(String path, ILearning learning) throws IOException
IOException
public static void save(OutputStream os, ILearning learning) throws IOException
IOException
public static <C> org.nd4j.linalg.primitives.Pair<IDQN,C> load(File file, Class<C> cClass) throws IOException
IOException
public static <C> org.nd4j.linalg.primitives.Pair<IDQN,C> load(String path, Class<C> cClass) throws IOException
IOException
public static <C> org.nd4j.linalg.primitives.Pair<IDQN,C> load(InputStream is, Class<C> cClass) throws IOException
IOException
public String createSubdir() throws IOException
IOException
public String getVideoDir()
getVideoDir
in interface IDataManager
public String getModelDir()
public String getInfo()
public String getStat()
public void appendStat(IDataManager.StatEntry statEntry) throws IOException
appendStat
in interface IDataManager
IOException
public void writeInfo(ILearning iLearning) throws IOException
writeInfo
in interface IDataManager
IOException
public void save(ILearning learning) throws IOException
save
in interface IDataManager
IOException
Copyright © 2019. All rights reserved.