Description
Ask the question
I am trying to use a onnx model trained in python to run inference on with tribe. I was providing the input to my onnx model in the following format:
float[][] sourceArray = new float[2][7];
for (int i=0; i < 2; i++){
for (int j=0; j < 7; j++) sourceArray[i][j] = 1.0f;
}
OnnxTensor tensor = OnnxTensor.createTensor(env,sourceArray);
Map<String, OnnxTensor> inputs = new HashMap();
inputs.put("input",tensor);
what is the best way in tribuo to do the same? I checked this tutorial (https://tribuo.org/learn/4.3/tutorials/external-models-tribuo-v4.html#Loading-in-an-ONNX-model) but I am not sure how to structure my feature mapping.
Is your question about a specific ML algorithm or approach?
No
Is your question about a specific Tribuo class?
No
System details
- Tribuo version: 4.3.1
- Java version (if appropriate): 17
- OS/Architecture (if appropriate): Mac OS
Additional context
Add any other context or screenshots about the question