Skip to content

GCI113 implemented rule in Python#159

Open
Clmnt-Cash wants to merge 1 commit into
green-code-initiative:mainfrom
Clmnt-Cash:GCI113-Python
Open

GCI113 implemented rule in Python#159
Clmnt-Cash wants to merge 1 commit into
green-code-initiative:mainfrom
Clmnt-Cash:GCI113-Python

Conversation

@Clmnt-Cash

Copy link
Copy Markdown

J'ai développé la règle GCI113 qui a été définie pour avoir une règle qui favorise les algorithmes XGBoost comparé à RandomForest.
La définition of done à été vérifié étape par étape, les tests ont été lancés et sont un succès.

@B3ND3L B3ND3L added the 🗃️ rule rule improvment or rule development or bug label Jun 5, 2026
model2 = XGBRegressor(n_estimators=100)
model2.fit(X_train, y_train)

# Compliant: using other sklearn classifiers

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non compliant to me.

https://github.com/green-code-initiative/creedengo-rules-specifications/blob/main/src/main/rules/GCI113/python/GCI113.asciidoc

Co2 emission seems to be way higher with GradientBoostingClassifier.

The rule only talk about XGBoost.

@B3ND3L

B3ND3L commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Hi @Clmnt-Cash

Well done, thanks for the PR.

Please consider my comment and adapt your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🗃️ rule rule improvment or rule development or bug

Projects

Status: Ready

Development

Successfully merging this pull request may close these issues.

2 participants