tribuo icon indicating copy to clipboard operation
tribuo copied to clipboard

Question about Serialization using Kotlinx.Serialization

Open KelvinOjiako opened this issue 8 months ago • 1 comments

I am a Kotlin Developer looking into Machine learning frameworks in Java and I have not yet experimented with Tribuo but I am curious about if I can use the Kotlinx.Serialization library for serializing objects with tribuo

KelvinOjiako avatar May 19 '25 03:05 KelvinOjiako

You can't use kotlinx.serialization directly, we don't annotate our classes with its serializable interface. However you can serialize Tribuo types to protobufs, then pull out the byte array from the protobuf and put that in a kotlinx.serialization serializable type.

Craigacp avatar May 19 '25 04:05 Craigacp