public class TrainModelTask<T> extends AbstractTask<T>
| Constructor and Description |
|---|
TrainModelTask() |
TrainModelTask(String name) |
| Modifier and Type | Method and Description |
|---|---|
Function<LenskitRecommender,T> |
getAction() |
AlgorithmInstance |
getAlgorithm() |
DataSource |
getInputData() |
File |
getWriteFile() |
T |
perform() |
TrainModelTask<T> |
setAction(Function<LenskitRecommender,T> act)
Set the action to invoke.
|
TrainModelTask<T> |
setAlgorithm(AlgorithmInstance algo)
Configure the algorithmInfo.
|
TrainModelTask<T> |
setInput(DataSource data)
Specify the data source to train on.
|
TrainModelTask<T> |
setWriteFile(File file)
Specify a file to write.
|
execute, getName, getProject, setName, setProjectaddListener, cancel, get, get, interruptTask, isCancelled, isDone, set, setException, wasInterruptedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListenerpublic TrainModelTask()
public TrainModelTask(String name)
public AlgorithmInstance getAlgorithm()
public File getWriteFile()
public DataSource getInputData()
public Function<LenskitRecommender,T> getAction()
public TrainModelTask<T> setAlgorithm(AlgorithmInstance algo)
algo - The algorithmInfo to configure.public TrainModelTask<T> setWriteFile(File file)
file - The file name.public TrainModelTask<T> setInput(DataSource data)
data - The input data source.public TrainModelTask<T> setAction(Function<LenskitRecommender,T> act)
perform().act - The action to invoke.public T perform() throws TaskExecutionException
perform in class AbstractTask<T>TaskExecutionException