Hyukjin Kwon created SPARK-57951:
------------------------------------

             Summary: MLTest single-prediction checks should tolerate last-ULP 
FP differences (macOS arm64)
                 Key: SPARK-57951
                 URL: https://issues.apache.org/jira/browse/SPARK-57951
             Project: Spark
          Issue Type: Bug
          Components: ML
    Affects Versions: 5.0.0
            Reporter: Hyukjin Kwon


MLTest.testClassificationModelSingleRawPrediction and 
testProbClassificationModelSingleProbPrediction compare the DataFrame transform 
output against the scalar predictRaw/predictProbability output with exact === 
equality. On arm64 macOS the two paths can differ in the last ULP (e.g. 
1.543502002724983 vs 1.5435020027249835), failing 
MultilayerPerceptronClassifierSuite and others on the Build / Maven (JDK 21, 
MacOS-26) lane while Linux stays bit-identical. Compare with a tight absolute 
tolerance (1e-9) instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to