WeichenXu123 opened a new pull request #31004: URL: https://github.com/apache/spark/pull/31004
### What changes were proposed in this pull request? Improve flaky NaiveBayes test Current test may sometimes fail under different BLAS library. Due to some absTol check. Error like ``` Expected 0.7 and 0.6485507246376814 to be within 0.05 using absolute tolerance.
validateModelFit:
 piData: [-0.6931471805599453, -2.3025850929940455, -0.916290731874155]
 thetaData: [-0.35667494393873245, -2.3025850929940455, -2.3025850929940455, -2.3025850929940455]
[-2.3025850929940455, -0.35667494393873245, -2.3025850929940455, -2.3025850929940455]
[-2.3025850929940455, -2.3025850929940455, -0.35667494393873245, -2.3025850929940455]
 model.labels: [0.0, 1.0, 2.0]
 model.pi: [-0.7665651538362903, -2.201220586649602, -0.856311441692565]
 model.theta: [-0.37395145030557764, -2.3207989529680315, -2.228876242777372, -2.2429468266743147]
[-1.90074975293646, -0.43301505987639466, -2.3915747099957807, -2.2026741821037836]
[-2.2575407135939427, -2.315360284482769, -0.3519176566658153, -2.371678715072992] ``` ### Why are the changes needed? Flaky test ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
