kz930 opened a new pull request, #8070:
URL: https://github.com/apache/texera/pull/8070

   ### What changes were proposed in this PR?
   
   The Machine Learning Scorer handed both configured columns straight to 
scikit-learn's metric functions, so one empty cell reached them as a None and 
ended the run with "Classification metrics can't handle a mix of unknown and 
binary targets". The message named neither the column nor a way out, and no 
configuration could exclude the row.
   
   The operator now drops the rows missing either value before scoring, the way 
the visualization operators drop missing values before plotting. The subset 
names both columns rather than dropping on each separately: dropping on either 
alone would leave y_true and y_pred misaligned.
   
   ### Any related issues, documentation, discussions?
   
   Closes #8058
   
   ### How was this PR tested?
   
   A new case in MachineLearningScorerOpDescSpec pins the drop in the generated 
code. Run by hand on a table with a blank in the actual-value column and a 
blank in the predicted-value column: before, the run ended with the ValueError 
above; after, it reports Accuracy 0.6667 over the three scorable rows.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 5)


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to