public abstract static class BasePythonFeaturesExtractor.Builder<B extends BasePythonFeaturesExtractor.Builder<B,T>,T extends BasePythonFeaturesExtractor> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
depsResources
The list of python dependencies paths in resources directory to unpack on initialization stage.
|
protected String |
modelName
The Model name.
|
protected List<String> |
pkgResources
The list of python packages paths in resources directory to unpack on initialization stage.
|
protected Path |
workingDir
The working directory of the classifier.
|
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
T |
build()
Check bridge and build classifier.
|
protected abstract T |
buildModel()
Build classifier.
|
protected abstract com.workfusion.automl.ml.bridge.python.fe.PythonFeaturesExtractorBridge |
createDefaultClassifierBridge()
Create default python features extractor bridge.
|
B |
depsResources(List<String> paths)
Set paths to python dependencies in resources.
|
B |
modelName(String name)
Set a model name.
|
B |
pkgResources(List<String> paths)
Set paths to python packages in resources.
|
B |
workingDir(Path path)
Set a working directory.
|
protected Path workingDir
protected String modelName
protected List<String> pkgResources
protected abstract com.workfusion.automl.ml.bridge.python.fe.PythonFeaturesExtractorBridge createDefaultClassifierBridge()
public B workingDir(Path path)
path - the path(Path) to the working directorypublic B modelName(String name)
name - the model name (String)public B pkgResources(List<String> paths)
paths - the list of paths to python packages in resourcespublic B depsResources(List<String> paths)
paths - the list of paths to python dependencies in resourcesprotected abstract T buildModel()
public final T build()
Copyright © 2020. All rights reserved.