use of ml.shifu.shifu.container.obj.ModelStatsConf.BinningMethod in project shifu by ShifuML.
the class BinningMethodDeserializer method deserialize.
@Override
public BinningMethod deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
ObjectCodec oc = jp.getCodec();
JsonNode node = oc.readTree(jp);
for (BinningMethod value : BinningMethod.values()) {
if (value.name().equalsIgnoreCase(node.textValue())) {
return value;
}
}
return null;
}
Aggregations