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

tfidf transformer #172

Merged
merged 3 commits into from
Oct 25, 2016
Merged

tfidf transformer #172

merged 3 commits into from
Oct 25, 2016

Conversation

skystrife
Copy link
Member

This PR adds a few tranformation functions that might be useful to apply to a learn::dataset. Specifically, this adds a function to convert the count vectors to tf-idf vectors according to some inverted_index and ranker (via its score_one()) and a simpler function that normalizes feature vectors to unit length.

I've added some very basic unit tests for this, too.

@smassung
Copy link
Member

This looks good to me -- I don't think the caveats are bad.

@smassung
Copy link
Member

Ok, travis is finally done. I'm satisfied with this branch -- @skystrife , are you?

@skystrife
Copy link
Member Author

I think it's fine to merge.

We might want to add to the classification tutorial on the website to demonstrate how to use this feature.

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

2 participants