Skip to content

Remove skartifacts#101

Merged
4Freye merged 4 commits intomainfrom
remove_skartifacts
Jan 3, 2026
Merged

Remove skartifacts#101
4Freye merged 4 commits intomainfrom
remove_skartifacts

Conversation

@4Freye
Copy link
Owner

@4Freye 4Freye commented Jan 3, 2026

No description provided.

4Freye added 3 commits January 2, 2026 22:46
…r metrics only work with newer python version.
… scoring functions available in newer sklearn versions. Added testing to ensure coverage of sklearn.get_scorer_names.
…ing with panelsplit.metrics and panelsplit.model_selection. Added additional tests for this error. Added error corrections for the classes_ function/property when the final estimator is a regressor.
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @4Freye, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request modernizes the panelsplit library by updating its core Python and scikit-learn dependencies, streamlining the internal metrics module for better organization and expanded functionality, and enhancing the SequentialCVPipeline's operational logic. These changes aim to improve the library's compatibility with recent ecosystem advancements, clarify its API through updated documentation, and bolster its reliability with new, thorough test cases, particularly around how pipelines manage data indices and final estimator outputs.

Highlights

  • Dependency Updates: The required Python version has been updated from 3.10 to 3.11, and the scikit-learn dependency has been upgraded to version 1.8.0.
  • Metrics Module Enhancements: The panelsplit.metrics module has undergone significant refactoring, including consolidated scikit-learn imports, the addition of new classification metrics (e.g., f1, precision, recall, jaccard, d2 scores), and improved docstrings for key functions like make_SequentialCV_scorer and get_scorer.
  • Pipeline Logic Refinement: The SequentialCVPipeline now features refined internal logic for handling data indices and distinguishing between intermediate and final steps, leading to more robust prediction and transformation behavior. The classes_ property has also been improved with better error handling and a note on class aggregation.
  • Documentation and Test Coverage: Documentation for GridSearch and RandomizedSearch has been updated with direct links to scikit-learn resources. New comprehensive tests have been added for SequentialCVPipeline to cover various cross-validation and index handling scenarios, ensuring stability and correctness.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/ci.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request is a significant and valuable refactoring effort to remove dependencies on scikit-learn's internal artifacts and align the codebase with modern versions of the library. The changes, including cleaning up imports, improving docstrings, and removing deprecated code paths, greatly enhance maintainability. The addition of comprehensive tests, especially for the SequentialCVPipeline indexing logic, is also a fantastic improvement.

I've found two issues:

  1. A high-severity bug in the classes_ property of SequentialCVPipeline that causes it to fail when the pipeline is fitted with methods like fit_transform.
  2. A medium-severity issue in the docstring of GridSearch where the example output for cv_results_ is misleading.

Details and suggestions are in the review comments. Overall, this is a great PR that moves the project forward.

@4Freye 4Freye merged commit a497ad4 into main Jan 3, 2026
14 checks passed
@4Freye 4Freye deleted the remove_skartifacts branch January 3, 2026 04:36
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.

1 participant