Skip to content

Xgboost regressor converted into Sole model #56

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 8 commits into from
Jul 21, 2025
Merged

Conversation

PasoStudio73
Copy link
Member

Xgboost regression algo was still missing in XGBoost external package.
Now it's fully developed and tested.

@PasoStudio73 PasoStudio73 requested a review from giopaglia July 21, 2025 13:08
@PasoStudio73 PasoStudio73 self-assigned this Jul 21, 2025
@PasoStudio73 PasoStudio73 added the enhancement New feature or request label Jul 21, 2025
@github-project-automation github-project-automation bot moved this to Done in SOLE Jul 21, 2025
@PasoStudio73 PasoStudio73 reopened this Jul 21, 2025
@PasoStudio73
Copy link
Member Author

A couple of errors in tests: one is due to a missing deps, the other one is due to missing Natops dataset on http. Sometimes happen, let's check it in a couple of hours.

@PasoStudio73 PasoStudio73 merged commit 5f5105d into main Jul 21, 2025
3 checks passed
@@ -2,7 +2,7 @@ name: CI
on:
push:
branches:
- main
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this change be reverted before merging to main?

Copy link
Member Author

Choose a reason for hiding this comment

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

I make always a mess with ci sources: usually I change it after merging into main. Bad habit? I guess so.

featurenames=nothing,
keep_condensed=false,
use_float32::Bool=true,
kwargs...
)
keep_condensed && error("Cannot keep condensed XGBoost.Node.")

nclasses = length(classlabels)
classlabels === nothing || (nclasses = length(classlabels))
Copy link
Member

Choose a reason for hiding this comment

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

isnothing(classlabels) is preferred

Copy link
Member Author

@PasoStudio73 PasoStudio73 Jul 21, 2025

Choose a reason for hiding this comment

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

I tried that because I saw in MLJ. I wondered why they had used === nothing instead of isnothing.
Surprisingly, checking with @btime, I discovered that sometimes it's faster than isnothing, but in very few cases, so, I agree with you.

@PasoStudio73 PasoStudio73 deleted the xgboost_regressor branch July 25, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants