Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

KNearestNeighbors can not be serialized #913

@minhtdhktqs

Description

@minhtdhktqs

my code in VB.net:
Private k_n_n As KNearestNeighbors
I want to save it to a .txt file by this code:
Accord.IO.Serializer.Save(k_n_n, "KNN.txt")
but I got a error.

An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll
Additional information: Type 'Accord.Collections.BinaryNode1[[Accord.Collections.KDTreeNode1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], Accord.MachineLearning, Version=3.7.2.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7]]' in Assembly 'Accord, Version=3.7.2.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7' is not marked as serializable.

how to fix it? thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions