You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've successfully serialized the XGBoostModel using the Jackson ObjectMapper, but when I've tried to deserialize it got the below exception.
** Any recommendations ?**
Exception when deserializing the org.tribuo.common.xgboost.XGBoostModel
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `org.tribuo.common.xgboost.XGBoostModel` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
at [Source: (StringReader); line: 1, column: 2]
at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:67) ~[jackson-databind-2.13.4.jar:2.13.4]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
*__checkpoint ⇢ Handler com.github.nmicra.marketresearch.controller.PredictController#predictWithModelTimeSeriesForLabel(String, String, int, Continuation) [DispatcherHandler]
*__checkpoint ⇢ HTTP POST "/predict/timeSeries/withModel/ARKK/daily/10" [ExceptionHandlingWebHandler]
Original Stack Trace:
at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:67) ~[jackson-databind-2.13.4.jar:2.13.4]
at com.fasterxml.jackson.databind.DeserializationContext.reportBadDefinition(DeserializationContext.java:1904) ~[jackson-databind-2.13.4.jar:2.13.4]
at com.fasterxml.jackson.databind.DatabindContext.reportBadDefinition(DatabindContext.java:400) ~[jackson-databind-2.13.4.jar:2.13.4]
at com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(DeserializationContext.java:1349) ~[jackson-databind-2.13.4.jar:2.13.4]
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1415) ~[jackson-databind-2.13.4.jar:2.13.4]
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:352) ~[jackson-databind-2.13.4.jar:2.13.4]
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:185) ~[jackson-databind-2.13.4.jar:2.13.4]
at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323) ~[jackson-databind-2.13.4.jar:2.13.4]
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4674) ~[jackson-databind-2.13.4.jar:2.13.4]
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3629) ~[jackson-databind-2.13.4.jar:2.13.4]
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3612) ~[jackson-databind-2.13.4.jar:2.13.4]
The text was updated successfully, but these errors were encountered:
Tribuo doesn't support serializing models to JSON. The serialization options in v4.3 are java.io.Serializable and protobuf. You could convert either of them into a byte array and base64 encode that if you want something which can travel safety in a JSON object, but it might be quite a large string.
I've successfully serialized the XGBoostModel using the Jackson ObjectMapper, but when I've tried to deserialize it got the below exception.
** Any recommendations ?**
Exception when deserializing the org.tribuo.common.xgboost.XGBoostModel
The text was updated successfully, but these errors were encountered: