Skip to content

Commit

Permalink
Converting close to delete() to ensure we drop the dbs when using MapDB.
Browse files Browse the repository at this point in the history
  • Loading branch information
datumbox committed Dec 22, 2016
1 parent 7b8bea5 commit 2e387cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -256,7 +256,7 @@ private void performClustering(Dataframe dataset, int numberOfClusters) {

instance.fit(dataset);
instance.predict(dataset);
instance.close();
instance.delete();
}

private List<Double> calculateTTRlist(List<String> rows) {
Expand Down
Expand Up @@ -255,7 +255,7 @@ protected void _fit(Dataframe trainingData) {

Status status = updateObservationAndClassifierWeights(trainingData, observationWeights);
if(status == Status.IGNORE) {
mlclassifier.close();
mlclassifier.delete();
}
else {
bundle.put(DB_INDICATOR + i, mlclassifier);
Expand Down
Expand Up @@ -130,7 +130,7 @@ public VM validate(Dataframe dataset, TrainingParameters trainingParameters) {
//add the validationMetrics in the list
validationMetricsList.add(entrySample);
}
modeler.close();
modeler.delete();

VM avgValidationMetrics = ValidationMetrics.newInstance(vmClass, validationMetricsList);

Expand Down
Expand Up @@ -273,7 +273,7 @@ private Map<Object, Double> runRegression(Dataframe trainingData) {

Map<Object, Double> pvalues = ((StepwiseCompatible)mlregressor).getFeaturePvalues();

mlregressor.close();
mlregressor.delete();

return pvalues;
}
Expand Down

0 comments on commit 2e387cf

Please sign in to comment.