Skip to content

Add MRMR #439

Merged
merged 5 commits into from
Jan 14, 2022
Merged

Add MRMR #439

merged 5 commits into from
Jan 14, 2022

Conversation

alex-hse-repository
Copy link
Collaborator

@alex-hse-repository alex-hse-repository commented Jan 10, 2022

IMPORTANT: Please do not create a Pull Request without creating an issue first.

Before submitting (must do checklist)

  • Did you read the contribution guide?
  • Did you update the docs? We use Numpy format for all the methods and classes.
  • Did you write any new necessary tests?
  • Did you update the CHANGELOG?

Type of Change

  • Examples / docs / tutorials / contributors update
  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves an existing feature)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Proposed Changes

Related Issue

Closing issues

closes #419

@alex-hse-repository alex-hse-repository added the enhancement New feature or request label Jan 10, 2022
@alex-hse-repository alex-hse-repository self-assigned this Jan 10, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2022

Codecov Report

Merging #439 (1683b8b) into master (5b0f1f1) will increase coverage by 0.11%.
The diff coverage is 98.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #439      +/-   ##
==========================================
+ Coverage   87.63%   87.75%   +0.11%     
==========================================
  Files         112      114       +2     
  Lines        5275     5334      +59     
==========================================
+ Hits         4623     4681      +58     
- Misses        652      653       +1     
Impacted Files Coverage Δ
...transforms/feature_selection/feature_importance.py 98.61% <95.65%> (-1.39%) ⬇️
etna/analysis/feature_selection/__init__.py 100.00% <100.00%> (ø)
etna/analysis/feature_selection/mrmr.py 100.00% <100.00%> (ø)
etna/transforms/__init__.py 100.00% <100.00%> (ø)
etna/transforms/feature_selection/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b0f1f1...1683b8b. Read the comment docs.


def __init__(
self,
relevance_method: RelevanceTable,
Copy link
Contributor

Choose a reason for hiding this comment

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

could you please rename relevance_method -> relevance_table?



class MRMRFeatureSelectionTransform(BaseFeatureSelectionTransform):
"""Transform that selects regressors according to MRMR variable selection method."""
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not quite a mrmr method, but a slightly modified one. Maybe so and write that "modified mrmr" so that no one gets confused?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What do you mean under "modifications"?

regressors=ts[:, :, ts.regressors],
top_k=self.top_k,
relevance_aggregation_mode=self.relevance_aggregation_mode,
redundancy_aggregation_mode=self.redundancy_aggregation_mode,
Copy link
Contributor

Choose a reason for hiding this comment

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

the atol parameter is not used in any way, can it be removed from the mrmr function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It can't be removed because we use it calculations, the possible solutions are:

  1. Pass it as a parameter to the transform
  2. Create a constant for it(in the early implementation we decided to avoid using it as a constant and put it in the list of parameters)

@julia-shenshina julia-shenshina merged commit 2d5444f into master Jan 14, 2022
@martins0n martins0n deleted the issue-419 branch January 21, 2022 09:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add MRMR method
4 participants