1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-04-28 13:48:56 +08:00

base: fix unmarshalling attributes, add JSON

This commit is contained in:
Richard Townsend 2017-08-26 14:56:31 +01:00
parent 499ac7a493
commit 57e6054404

View File

@ -233,7 +233,7 @@ func (d *DecisionTreeNode) UnmarshalJSON(data []byte) error {
func (d *DecisionTreeNode) Save(filePath string) error {
metadata := base.ClassifierMetadataV1 {
FormatVersion: 1,
ClassifierName: "test",
ClassifierName: "DecisionTreeNode",
ClassifierVersion: "1",
ClassifierMetadata: nil,
}