Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove verbose CMS output and convert scoredLabelsCol to DoubleType #1361

Merged
merged 2 commits into from
Jan 25, 2022

Conversation

memoryz
Copy link
Contributor

@memoryz memoryz commented Jan 25, 2022

No description provided.

@memoryz
Copy link
Contributor Author

memoryz commented Jan 25, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@codecov-commenter
Copy link

codecov-commenter commented Jan 25, 2022

Codecov Report

Merging #1361 (e1f1dab) into master (dbc7d29) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1361      +/-   ##
==========================================
+ Coverage   84.78%   84.82%   +0.03%     
==========================================
  Files         287      287              
  Lines       14231    14230       -1     
  Branches      732      732              
==========================================
+ Hits        12066    12070       +4     
+ Misses       2165     2160       -5     
Impacted Files Coverage Δ
...zure/synapse/ml/train/ComputeModelStatistics.scala 85.56% <100.00%> (-0.08%) ⬇️
...crosoft/azure/synapse/ml/io/http/HTTPClients.scala 83.33% <0.00%> (+8.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dbc7d29...e1f1dab. Read the comment docs.

@memoryz
Copy link
Contributor Author

memoryz commented Jan 25, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@imatiach-msft
Copy link
Contributor

@@ -281,7 +281,7 @@ class ComputeModelStatistics(override val uid: String) extends Transformer
// Calculate confusion matrix and output it as DataFrame
// TODO: We call cache in order to avoid a bug with catalyst where CMS seems to get stuck in a loop
// For future spark upgrade past 2.2.0, we should try to see if the cache() call can be removed
dataset.select(col(scoredLabelsColumnName), col(labelColumnName))
dataset.select(col(scoredLabelsColumnName).cast(DoubleType), col(labelColumnName))
.cache()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be interesting to see if this cache call can indeed finally be removed, I remember this was a pretty nasty bug

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I don't know anything about this bug, I'm not sure how to validate it. Do you have any ideas what this bug is?

@memoryz memoryz merged commit be49658 into microsoft:master Jan 25, 2022
@memoryz memoryz deleted the jasowang/cms branch July 21, 2022 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation for ComputeModelStatistics How to silence ComputeModelStatistics?
3 participants