I've saved an ONNX-converted pretrained RFC model and I'm trying to use it in my API. I am able to call the saved model and make my prediction however I can't get my predicted value. The response is very complicated and I can't seem to figure it out.
Here's the predicted value shape in debug mode:
and here it is in python, I'm trying to get the second value:
This is what I've tried so far but I only get string values.
var result = _inferencesession.Run(new List<NamedOnnxValue>
{
NamedOnnxValue.CreateFromTensor("input", attritionData.AsTensor())
});
var scoreValue = result.LastOrDefault().Value;
var score = scoreValue.GetType()?.GetProperty("Value")?.Attributes;