Package moa.tasks
Class WriteConfigurationToJupyterNotebook
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.tasks.AbstractTask
-
- moa.tasks.MainTask
-
- moa.tasks.AuxiliarMainTask
-
- moa.tasks.WriteConfigurationToJupyterNotebook
-
- All Implemented Interfaces:
Configurable
,Serializable
,MOAObject
,OptionHandler
,Task
public class WriteConfigurationToJupyterNotebook extends AuxiliarMainTask
Export the configuration of an training method form MOA to a IPYNB file- Author:
- Truong To (todinhtruong at gmail dot com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description FlagOption
exportAdvancedNotebook
FileOption
notebookOutputFile
FlagOption
runConfig
protected Task
task
ClassOption
taskOption
-
Fields inherited from class moa.tasks.AuxiliarMainTask
events
-
Fields inherited from class moa.tasks.MainTask
INSTANCES_BETWEEN_MONITOR_UPDATES, outputFileOption
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description WriteConfigurationToJupyterNotebook()
Initialises the first state of flags
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
doMainTask(TaskMonitor monitor, ObjectRepository repository)
This method performs this task.String
getPurposeString()
Gets the purpose of this objectClass<?>
getTaskResultType()
Gets the result type of this task.-
Methods inherited from class moa.tasks.AuxiliarMainTask
getEventsList, setEventsList
-
Methods inherited from class moa.tasks.MainTask
doTaskImpl
-
Methods inherited from class moa.tasks.AbstractTask
doTask, doTask, getDescription, getTaskName, prepareForUseImpl
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.MOAObject
measureByteSize
-
-
-
-
Field Detail
-
taskOption
public ClassOption taskOption
-
notebookOutputFile
public FileOption notebookOutputFile
-
runConfig
public FlagOption runConfig
-
exportAdvancedNotebook
public FlagOption exportAdvancedNotebook
-
task
protected Task task
-
-
Method Detail
-
getPurposeString
public String getPurposeString()
Gets the purpose of this object- Specified by:
getPurposeString
in interfaceOptionHandler
- Overrides:
getPurposeString
in classAbstractOptionHandler
- Returns:
- the string with the purpose of this object
-
doMainTask
protected Object doMainTask(TaskMonitor monitor, ObjectRepository repository)
Description copied from class:MainTask
This method performs this task.AbstractTask
implementsdoTask
, that usesdoTaskImpl
.MainTask
implementsdoTaskImpl
usingdoMainTask
so its extensions only need to implementdoMainTask
.- Specified by:
doMainTask
in classMainTask
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use- Returns:
- an object with the result of this task
-
-