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

Add feature_indices_ attribute to mapper #56

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dukebody
Copy link
Collaborator

The attribute indicatesthe mapping between input and ouptut variables (see added docs). I'd like someone to give +1 before merging. :) @asford ?

Differences with implementation in #54:

  • Instead of storing self.feature_widths_ and calculating the self.feature_indices_ property on the fly, here I store self.feature_widths_ directly
  • The attribute is generated after the first transform, not after fitting. @asford implementation does fit and transform during the mapper fit. Since there is no reliable way to calculate the feature weights before applying the full transform, I prefer to leave the attribute unavailable until then. I don't know if it would be interesting to turn the attribute into a property to be able to raise a custom informative exception when some tries to access the attribute before transformation.

Thoughts?

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.

None yet

1 participant