Skip to content

removing sklearn gradient booster, to be replaced with other options - #244

Merged
gbeane merged 14 commits into
mainfrom
remove-sklearn-gradient-booster
Dec 22, 2025
Merged

removing sklearn gradient booster, to be replaced with other options#244
gbeane merged 14 commits into
mainfrom
remove-sklearn-gradient-booster

Conversation

@gbeane

@gbeane gbeane commented Dec 10, 2025

Copy link
Copy Markdown
Collaborator

This is in preparation for upcoming work (KLAUS-310) to add some new classifier implementations to JABS

removes sklearn gradient booster, also does a little refactoring to make it easier to add some additional choices when we implement KLAUS-310

@gbeane
gbeane requested a review from keithshep December 10, 2025 20:00
@gbeane gbeane self-assigned this Dec 22, 2025

Copilot AI left a comment

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.

Pull request overview

This PR removes the sklearn Gradient Boosting classifier option from JABS in preparation for adding new classifier implementations (KLAUS-310). The changes refactor the classifier type system from integer-based enums to string-based enums and consolidate classifier instantiation logic.

Key Changes:

  • Removed Gradient Boosting classifier option entirely
  • Changed ClassifierType from IntEnum to str, Enum with string values
  • Refactored classifier instantiation to use a factory pattern with centralized mapping

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/jabs/types/classifier_types.py Changed enum from IntEnum to str Enum, removed GRADIENT_BOOSTING option
src/jabs/scripts/classify.py Simplified help text by removing version specificity
src/jabs/resources/docs/user_guide/user_guide.md Updated CLI documentation to remove gradient-boosting option
src/jabs/project/export_training.py Changed classifier_type attribute to use string representation
src/jabs/classifier/classifier.py Major refactoring: removed gradient boosting, added factory pattern, improved random seed handling
src/jabs/classifier/__init__.py Removed unused HYPERPARAMETER_PATH constant and import

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/jabs/classifier/classifier.py Outdated
Comment thread src/jabs/classifier/classifier.py Outdated
Comment thread src/jabs/classifier/classifier.py Outdated
gbeane and others added 3 commits December 22, 2025 08:45
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gbeane
gbeane requested a review from Copilot December 22, 2025 14:03

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/jabs/classifier/classifier.py
Comment thread src/jabs/classifier/classifier.py Outdated
Comment thread src/jabs/classifier/classifier.py Outdated
Comment thread src/jabs/classifier/classifier.py
gbeane and others added 5 commits December 22, 2025 09:24
… instead of ClassifierType due to ClassifierType now inheriting from both str and Enum instead of IntEnum
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gbeane
gbeane requested a review from Copilot December 22, 2025 14:29

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/jabs/classifier/classifier.py
Comment thread src/jabs/classifier/classifier.py
Comment thread src/jabs/classifier/classifier.py Outdated
Comment thread src/jabs/classifier/classifier.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/jabs/classifier/classifier.py
Comment thread src/jabs/classifier/classifier.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment thread src/jabs/classifier/classifier.py Outdated
@gbeane
gbeane merged commit e249bcb into main Dec 22, 2025
2 checks passed
@gbeane
gbeane deleted the remove-sklearn-gradient-booster branch December 22, 2025 17:32
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.

3 participants