+
Skip to content

Conversation

Pradyumn-cloud
Copy link
Contributor

Reference Issues/PRs

Fixes #8580

fix-

Return word vocabulary/histogram when fitting IndividualBOSS:

Added a histograms_ attribute to the IndividualBOSS classifier to provide a user-friendly, dictionary-based representation of the SFA transformation. This improves the interpretability of the model.
Robustness: Added defensive checks to handle cases where feature selection may result in an empty set of words, preventing potential runtime errors.

@fkiraly fkiraly changed the title Return word vocabulary/histogram when fitting IndividualBOSS [ENH] Return word vocabulary/histogram when fitting IndividualBOSS Jul 21, 2025
Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

This is great!

small change requests:

  • can you kindly add this new attribute to the docstring, in the "Attributes" section?
  • can you kindly add a test that the expected type of attribute and size is returned? Add it in test_boss as a new test.
  • please revert changes to the docs/source/examples symlink

Added a new test in test_boss.py and also updated the Attributes section in _boss.py
@Pradyumn-cloud
Copy link
Contributor Author

I removed get_fitted_params(self)
I added new attribute to the docstring but you can improve it.
I added a new test in test_boss.py for new attribute.

@@ -1 +1 @@
../../examples
../../examples
Copy link
Collaborator

Choose a reason for hiding this comment

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

please revert this change

classes_ : list
The classes labels.
histograms_ : list
Instance word histograms.
Copy link
Collaborator

Choose a reason for hiding this comment

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

should say, a list of what, length, etc. How the elements are to be interpreted

Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Great, thanks! Minor requests above.

I realize that for large datasets, this fills the estimator memory.

Could we add a parameter store_histogram: bool (default=False) that executes the new code only if it is True?

added a new test in test_boss for testing new changes.
added a method
@Pradyumn-cloud
Copy link
Contributor Author

I added a parameter store_histogram and also added a test in test_boss for testing (if not required it can be removed).
I created a new method _create_histograms(self)
doc string is also updated.

Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Great!

Small requests only:

  • can you move the store_histogram parameter to before n_jobs?
  • can you please revert the changes to the "examples" file?

@Pradyumn-cloud
Copy link
Contributor Author

I tried to resolve that symlink thing but I was not able to do. So I think I should stop working on this and hand it to you or you have any other suggestion on it.

Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

I reverted it for you now, thanks for the contribution!

@fkiraly fkiraly added module:classification classification module: time series classification enhancement Adding new functionality labels Jul 27, 2025
@Pradyumn-cloud Pradyumn-cloud closed this by deleting the head repository Jul 28, 2025
@fkiraly
Copy link
Collaborator

fkiraly commented Jul 31, 2025

@Pradyumn-cloud, why did you delete the branch?

I wanted to merge this.

@Pradyumn-cloud
Copy link
Contributor Author

Pradyumn-cloud commented Jul 31, 2025

I deleted the wrong repo by accident as name was similar... Sorry for this inconvenience
New PR-> #8636
@fkiraly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Adding new functionality module:classification classification module: time series classification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENH] Return word vocabulary/histogram when fitting IndividualBOSS

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载