com.datumbox.framework.core.machinelearning.common.dataobjects
Class TrainableBundle
- java.lang.Object
-
- com.datumbox.framework.core.machinelearning.common.dataobjects.TrainableBundle
-
-
Constructor Summary
Constructors Constructor and Description TrainableBundle(java.lang.String storageNameSeparator)Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()booleancontainsKey(java.lang.String key)Returns whether the bundle contains the specified key.voiddelete()Deletes the data of the object.Trainableget(java.lang.String key)Returns the trainable with the specific key or null if the key is missing.java.util.Set<java.lang.String>keySet()Returns a set with all the keys.Trainableput(java.lang.String key, Trainable value)Puts the trainable in the bundle using a specific key and returns the previous entry or null.voidsave(java.lang.String storageName)Saves the data of the object.voidsetParallelized(boolean parallelized)Updates the parallelized flag of all wrapped algorithms.
-
-
-
Constructor Detail
-
TrainableBundle
public TrainableBundle(java.lang.String storageNameSeparator)
Public constructor.- Parameters:
storageNameSeparator-
-
-
Method Detail
-
keySet
public java.util.Set<java.lang.String> keySet()
Returns a set with all the keys.- Returns:
-
containsKey
public boolean containsKey(java.lang.String key)
Returns whether the bundle contains the specified key.- Parameters:
key-- Returns:
-
get
public Trainable get(java.lang.String key)
Returns the trainable with the specific key or null if the key is missing.- Parameters:
key-- Returns:
-
put
public Trainable put(java.lang.String key, Trainable value)
Puts the trainable in the bundle using a specific key and returns the previous entry or null.- Parameters:
key-value-- Returns:
-
setParallelized
public void setParallelized(boolean parallelized)
Updates the parallelized flag of all wrapped algorithms.- Parameters:
parallelized-
-
save
public void save(java.lang.String storageName)
Saves the data of the object.
-
delete
public void delete()
Deletes the data of the object.
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-
DataMelt 3.0 © DataMelt by jWork.ORG