public class Config
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
Config |
adaptivityControl(int d)
Activates adaptivity in the hyperparameter grid.
|
Config |
display(int d)
Sets the display level starting at 0 which means no information.
|
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> |
entries()
Creates a
List that contains all key-value pairs
in the order they were set. |
Config |
folds(int d) |
java.lang.String |
get(java.lang.String key) |
Config |
gridChoice(int d)
Sets the hyperparameter grid.
|
boolean |
has(java.lang.String key) |
boolean |
isAutoSelect() |
boolean |
isAutoTrain() |
Config |
partitionChoice(int d)
Sets the partition choice.
|
Config |
randomSeed(int d) |
java.lang.String |
remove(java.lang.Object key) |
Config |
scale(boolean d) |
Config |
scenario(java.lang.String scenario)
Sets the scenario.
|
Config |
select(boolean b)
Specifies whether selecting should start automagically at the end
of initializing the
SVM after the automatic training. |
Config |
set(java.lang.String key,
java.lang.String value)
Sets the
value for the key and remembers the order
in which it was added. |
Config |
threads(int d)
Sets the number of threads to use.
|
Config |
train(boolean b)
Specifies whether training should start automagically at the end
of initializing the
SVM . |
Config |
useCells() |
Config |
useCells(boolean b) |
Config |
voronoi(int d) |
public Config()
public Config(Config other)
public Config set(java.lang.String key, java.lang.String value)
value
for the key
and remembers the order
in which it was added. This order is used in entries()
.
It returns this Config
to enable
method chaining. Many of the other methods use this.key
- value
- config
entries()
public java.lang.String remove(java.lang.Object key)
public java.lang.String get(java.lang.String key)
public boolean has(java.lang.String key)
public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> entries()
List
that contains all key-value pairs
in the order they were set.set(String, String)
public Config scenario(java.lang.String scenario)
scenario
- can be any of "LS", "EX", "QT", "MC", "NPL", "ROC"
Config
set(String, String)
,
SVM.LS
,
SVM.MC
public Config display(int d)
d
- display info levelConfig
set(String, String)
public Config threads(int d)
d
- number of threadsConfig
set(String, String)
public Config partitionChoice(int d)
d
- display info levelConfig
set(String, String)
public Config gridChoice(int d)
d
- Config
set(String, String)
public Config adaptivityControl(int d)
d
- Config
set(String, String)
public Config randomSeed(int d)
public Config folds(int d)
public Config voronoi(int d)
public Config scale(boolean d)
public Config useCells()
public Config useCells(boolean b)
public Config train(boolean b)
SVM
.
Default is true
.b
- Config
SVM.train(String...)
public Config select(boolean b)
SVM
after the automatic training.
Default is true
.
This only has effect if #isAutoTrain()
is true.b
- Config
SVM.select(String...)
public boolean isAutoTrain()
public boolean isAutoSelect()