Courtney,

 The CacheBasedDataset.close() method below only destroys the helper cache
derived from 
  the original data, and used to train the model. It does not touch the
original data set.


@Override public void close() {
    datasetCache.destroy(); // destroy the helper cache derived from the
original cache
    ComputeUtils.removeData(ignite, datasetId); // remove helper data stored
locally on a node.
    ComputeUtils.removeLearningEnv(ignite, datasetId); //remove helper
object used to make the model.
}

see:
https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/ml/dataset/CacheBasedDatasetExample.java

If you follow the above example, remove the persons.destroy() statement,
remove Ignite from the auto close block,  run it, and connect via web
console, you would see that the original persons data set remains intact.

If for some reason you do need the helper cache that was created to train
the model then do as follows: 1. create your own: MyCacheBasedDataSet
extends CacheBaseDataSet 
2. override the close() method. This is not recommended for prod, but could
be useful for debugging the models. 


Thanks, Alex



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to