Closed FrancescMartiEscofetQC closed 2 months ago
Thanks for reporting this. It seems huge. This model should convert with double, can you change FloatTensorType into DoubleTensorType? Any matrix with different order of magnitude for the weight introduces huge discrepancies when switching from double to float. See https://onnx.ai/sklearn-onnx/auto_examples/plot_gpr.html.
I'll close the issue. Feel free to reopen it.
When converting a trained
LinearDiscriminantAnalysis
with only two classes the output probabilities are wrong.Code
Outputs:
Converting it to onnx:
Outputs:
If the output has more classes the converter works fine.
Versions: skl2onnx: 1.17.0 sklearn: 1.5.1 python: 3.12.4