Skip to content

Fix ML.Fairlean using ToList on Row Collection with Count more than Max.Int #6678

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

Merged
merged 1 commit into from
Jun 1, 2023
Merged

Fix ML.Fairlean using ToList on Row Collection with Count more than Max.Int #6678

merged 1 commit into from
Jun 1, 2023

Conversation

asmirnov82
Copy link
Contributor

Using ToList() method on DataFrame.Rows fails in case of DataFrame.Rows.Count is greater than Max.Int (and as it has Count type long - it's possible).
Instead DataFrame.Append(IEnumerable rows, bool inPlace = false) method should be used.

@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Merging #6678 (e7f9daf) into main (09117b1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6678   +/-   ##
=======================================
  Coverage   68.77%   68.78%           
=======================================
  Files        1215     1215           
  Lines      251556   251556           
  Branches    26228    26228           
=======================================
+ Hits       173004   173026   +22     
+ Misses      71737    71720   -17     
+ Partials     6815     6810    -5     
Flag Coverage Δ
Debug 68.78% <100.00%> (+<0.01%) ⬆️
production 63.29% <100.00%> (+0.01%) ⬆️
test 88.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...Microsoft.ML.Fairlearn/Reductions/UtilityParity.cs 79.71% <100.00%> (ø)

... and 5 files with indirect coverage changes

@JakeRadMSFT
Copy link
Contributor

Merged into Generic Math branch. (This is just a note for myself)

@asmirnov82 asmirnov82 deleted the fix_utility_parity_foreach branch July 7, 2023 13:11
@ghost ghost locked as resolved and limited conversation to collaborators Aug 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants