dotnet / infer

Infer.NET is a framework for running Bayesian inference in graphical models
https://dotnet.github.io/infer/
MIT License
1.54k stars 229 forks source link

Remove BinaryFormatter and replace with DataContract serialization #448

Closed jonathantims closed 8 months ago

jonathantims commented 9 months ago

problem

For compliance reasons BinaryFormatter should be removed.

solution

Replace with DataContract serialization, which Runtime supports already.

The Recommender did not use the mapping for serializing Users and Items -- so the tests that serialize the recommender now use a custom IReader/IWriter pair to do this.