Skip to content

Conversation

@AndreFCruz
Copy link
Contributor

@AndreFCruz AndreFCruz commented May 23, 2022

Implementation of the Java openml API for the C++ FairGBM algorithm (to be open-sourced soon).

As FairGBM was built on top of LightGBM, I just hijacked the current LightGBM openml API implementation and added a new algorithm descriptor for the new FairGBM parameters.

Other considerations:

@AndreFCruz AndreFCruz changed the title Fairgbm openml API implementation FairGBM openml API implementation May 23, 2022
@AndreFCruz
Copy link
Contributor Author

Note: this CI build fail is related to the FairGBM repo not being public as of yet; I'll have to change the make-lightgbm submodule to allow building from a local repo or using a token.

@AndreFCruz AndreFCruz force-pushed the fairgbm-api-implementation branch 4 times, most recently from c9d6487 to 23ca156 Compare June 1, 2022 16:30
@AndreFCruz AndreFCruz marked this pull request as ready for review June 1, 2022 16:34
@AndreFCruz AndreFCruz force-pushed the fairgbm-api-implementation branch from 23ca156 to 8b5d405 Compare June 1, 2022 16:43
.add(new FieldSchema("is_fraud_label", 7,
new CategoricalValueSchema(true, ImmutableSet.of("FALSE", "TRUE"))))
.add(new FieldSchema("is_fraud_label", 8,
new CategoricalValueSchema(true, ImmutableSet.of("False", "True"))))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I added a new "sensitive_attribute" column using a few lines of Python and the True/False values changed after saving the new dataframe 😅

@codecov
Copy link

codecov bot commented Jul 11, 2022

Codecov Report

Merging #116 (05165d9) into master (de77c62) will increase coverage by 0.30%.
The diff coverage is 85.18%.

@@             Coverage Diff              @@
##             master     #116      +/-   ##
============================================
+ Coverage     79.90%   80.21%   +0.30%     
- Complexity      428      465      +37     
============================================
  Files            43       47       +4     
  Lines          1498     1607     +109     
  Branches        138      157      +19     
============================================
+ Hits           1197     1289      +92     
- Misses          224      231       +7     
- Partials         77       87      +10     
Impacted Files Coverage Δ
...enml/provider/lightgbm/LightGBMDescriptorUtil.java 96.77% <0.00%> (-0.20%) ⬇️
...ai/openml/provider/lightgbm/FairGBMMLProvider.java 40.00% <40.00%> (ø)
...i/openml/provider/lightgbm/LightGBMMLProvider.java 40.00% <50.00%> (+40.00%) ⬆️
...i/openml/provider/lightgbm/AlgoDescriptorUtil.java 66.66% <66.66%> (ø)
...tgbm/LightGBMBinaryClassificationModelTrainer.java 83.72% <82.69%> (-3.15%) ⬇️
...eedzai/openml/provider/lightgbm/SWIGTrainData.java 84.74% <84.00%> (-4.45%) ⬇️
...penml/provider/lightgbm/FairGBMDescriptorUtil.java 93.75% <93.75%> (ø)
...enml/provider/lightgbm/FairGBMParamParserUtil.java 100.00% <100.00%> (ø)
...i/openml/provider/lightgbm/LightGBMAlgorithms.java 100.00% <100.00%> (ø)
...openml/provider/lightgbm/LightGBMModelCreator.java 87.23% <100.00%> (ø)
... and 4 more

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 de77c62...05165d9. Read the comment docs.

AndreFCruz and others added 3 commits July 11, 2022 17:54
Co-authored-by: ipiresmac <93192669+ipiresmac@users.noreply.github.com>
AndreFCruz and others added 3 commits July 12, 2022 14:24
Co-authored-by: ipiresmac <93192669+ipiresmac@users.noreply.github.com>
Co-authored-by: ipiresmac <93192669+ipiresmac@users.noreply.github.com>
@AndreFCruz
Copy link
Contributor Author

Are we ready to merge this? 🎉

Copy link
Contributor

@AlbertoEAF AlbertoEAF left a comment

Choose a reason for hiding this comment

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

Yup, it's ready :) 🎉

I'd say let's just wait for @gandola 's ok but we're done, we can then squash it :)

@gandola
Copy link

gandola commented Jul 13, 2022

LGTM! 🥇

Cheers

@ghost ghost merged commit 00e3ab4 into feedzai:master Jul 13, 2022
This pull request was closed.
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.

6 participants