Skip to content

Commit

Permalink
fix(index): added confusionMatrix to the JSON methods (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berkmann18 authored May 31, 2019
1 parent 1fb5f33 commit 1b09acf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ class Learner {
}
if (this.macroAvg) json.macroAvg = this.macroAvg
if (this.microAvg) json.microAvg = this.microAvg
if (this.confusionMatrix) json.confusionMatrix = this.confusionMatrix
return json
}

Expand All @@ -239,6 +240,7 @@ class Learner {
static fromJSON(json) {
const ALLOWED_PROPS = [
'classifierBuilder',
'confusionMatrix',
'trainSet',
'testSet',
'macroAvg',
Expand Down

0 comments on commit 1b09acf

Please sign in to comment.