dotnet / infer

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

Remove BinaryFormatter and replace with DataContract serialization #448

Closed jonathantims closed 1 year ago

jonathantims commented 1 year 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.