-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protobuf serialization for math types #262
Conversation
…lizer, NeighboursQueryFactory. Building out the tensor protos.
…hbour query factories.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Parameters, Kernel, VectorNormalizaer, Tensor, etc. interfaces are now ProtoSerializable and a bunch of impls implement serialize and deserializeFromProto
- added a bunch of equals, hashCode, constructors, and factory methods to support this
- added Util.product method
Everything here looks straightforward and much of the code has reasonable unit tests. A few classes e.g. CRFParameter and FMParameters could use some unit testing for the proto serializable.
I plan to add serialization unit tests for CRFModel when we get to that point which will necessarily test CRFParameters rather than individually unit testing CRFParameters. Ditto for FMParameters. |
Description
Adds
ProtoSerializable
to all serializable types intribuo-math
and their subclasses. A more detailed description of the overall protobuf plan is given in #226.Motivation
We need to move off Java Serialization.