Skip to content
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

Monotonicspline #710

Merged
merged 2 commits into from
Nov 6, 2024
Merged

Conversation

matekadlicsko
Copy link
Contributor

Description

Fixed one thing in the implementation of MonotonicSplineTransformer.
Added tests directly checking:

  • monotonicity
  • boundedness
  • number of splines in the output.

Fixes #(issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the style guidelines (ruff)
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (also to the readme.md)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added tests to check whether the new feature adheres to the sklearn convention
  • New and existing unit tests pass locally with my changes

@koaning koaning merged commit 2af1b6d into koaning:monotonicspline Nov 6, 2024
1 check passed
koaning added a commit that referenced this pull request Nov 6, 2024
@koaning koaning mentioned this pull request Nov 6, 2024
koaning added a commit that referenced this pull request Nov 12, 2024
* first version

* add-tests

* docs

* iterp for the win

* docs

* reran-plot-script

* gogo

* fixed-tests

* gogo

* Monotonicspline (#710)

* fix: fixed an error in the implementation

* feat: tests now directly test monotonicity and boundedness

---------

Co-authored-by: Mate Kadlicsko <[email protected]>

* update-docs

* base-tests

* remove 3.8

* Update sklego/preprocessing/monotonicspline.py

Co-authored-by: Francesco Bruzzesi <[email protected]>

* Apply suggestions from code review

Co-authored-by: Francesco Bruzzesi <[email protected]>

* Update docs/_scripts/preprocessing.py

* review

* print check

* prints-fixed

* Update sklego/preprocessing/monotonicspline.py

Co-authored-by: Francesco Bruzzesi <[email protected]>

---------

Co-authored-by: mate.kadlicsko <[email protected]>
Co-authored-by: Mate Kadlicsko <[email protected]>
Co-authored-by: Francesco Bruzzesi <[email protected]>
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