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

RandomForest not serializable #331

@mmehrle

Description

@mmehrle

I just attempted to serialize my random forest like this:

Serializer.Save<RandomForest>(forest, fileName); // forest is the obj, fileName is the path

Throws a RT error that it is not marked as serializable. Then I tried this:

using (FileStream fs = new FileStream(fileName, FileMode.Create)) { new BinaryFormatter().Serialize(fs, forest); }

I checked the definition and apparently it is 'ParallelOptions' breaking this. Not sure how to fix this (yet).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions