Skip to content

Fix Core.get_params to exclude fitted attributes#559

Open
2024itb047samata wants to merge 4 commits intodswah:mainfrom
2024itb047samata:fix-get-params-clean
Open

Fix Core.get_params to exclude fitted attributes#559
2024itb047samata wants to merge 4 commits intodswah:mainfrom
2024itb047samata:fix-get-params-clean

Conversation

@2024itb047samata
Copy link
Copy Markdown

Closes #521

Problem

Core.get_params returns fitted attributes and internal state, violating sklearn API.

Fix

  • Excluded attributes ending with _
  • Ensured only constructor parameters are returned

Testing

  • Verified output aligns with sklearn expectations

Copy link
Copy Markdown
Author

@2024itb047samata 2024itb047samata left a comment

Choose a reason for hiding this comment

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

Hi, this PR addresses issue #521.

I noticed that workflows are awaiting approval. Please let me know if I should make any changes or updates in the meantime.

Thanks!

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.

[BUG] Core.get_params() returns fitted attributes and internal state, violating sklearn estimator API

1 participant