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:
parent
499ac7a493
commit
57e6054404
@ -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,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user