-
Notifications
You must be signed in to change notification settings - Fork 75
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
initial multiclass support #191
Conversation
3cd2135
to
2b0b875
Compare
2b0b875
to
384eda2
Compare
@zachmayer still would like to see this being merged :) someday |
Closing in favor of #260 |
rebase here: #279 |
WalkthroughThe update encompasses several enhancements and fixes, including adjusting the order of Makefile targets to ensure operations run in a cleaner, more organized manner. Documentation within the R scripts has been corrected to accurately reference functions from the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (12)
- Makefile (2 hunks)
- R/caretEnsemble.R (2 hunks)
- R/caretList.R (1 hunks)
- R/caretStack.R (1 hunks)
- R/helper_functions.R (2 hunks)
- cobertura.xml (15 hunks)
- man/caretList.Rd (2 hunks)
- man/metrics.Rd (1 hunks)
- man/predict.caretStack.Rd (1 hunks)
- man/varImp.caretEnsemble.Rd (1 hunks)
- tests/testthat/test-helper_functions.R (1 hunks)
- tests/testthat/test-multiclass.R (1 hunks)
Files not summarized due to errors (1)
- cobertura.xml: Error: Message exceeds token limit
Files skipped from review due to trivial changes (6)
- R/caretEnsemble.R
- man/caretList.Rd
- man/metrics.Rd
- man/predict.caretStack.Rd
- man/varImp.caretEnsemble.Rd
- tests/testthat/test-multiclass.R
Additional comments not posted (9)
Makefile (2)
3-3
: LGTM! Addition of thecoverage
target.The addition of the
coverage
target is correctly implemented and follows the existing conventions in the Makefile.Also applies to: 58-58
6-6
: LGTM! Update to theall
target.Including
clean
andcoverage
in theall
target is a good practice to ensure a clean build and generate coverage reports.R/caretStack.R (1)
46-47
: LGTM! Update to documentation references forpredict.train
.The documentation now correctly references the
caret
package, ensuring accuracy.tests/testthat/test-helper_functions.R (1)
32-32
: LGTM! Removal ofexpect_error
check.The function
check_caretList_model_types
is called directly, indicating improved handling or validation. Ensure that test coverage is sufficient to verify this change.R/helper_functions.R (1)
Line range hint
195-195
:
LGTM! Removal of multiclass check.The function
check_caretList_model_types
no longer checks for multiclass problems, aligning with the PR objectives of adding multiclass support. Ensure that multiclass handling is verified.R/caretList.R (2)
160-161
: Approve documentation updates.The updates to the documentation comments correctly reference the
train
andtrainControl
functions from thecaret
package.Also applies to: 165-165
Line range hint
168-219
:
VerifycaretList
function for multiclass support.Ensure that the
caretList
function correctly handles multiclass ensembling as per the new requirements. Specifically, verify that it can process and return models for multiclass problems.cobertura.xml (2)
3-3
: Verify the accuracy of the coverage data.Ensure that the coverage data, including lines covered, lines valid, branches covered, and branches valid, is accurate and reflects the current state of the codebase.
3-3
: Timestamp update.The timestamp has been updated to reflect the current date and time.
Initial working version of multiclass ensembling. Work to be done: