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

[AIR] Change FeatureHasher input schema #27523

Merged

Conversation

bveeramani
Copy link
Member

Why are these changes needed?

See #27505.

Related issue number

Fixes #27505

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@bveeramani bveeramani marked this pull request as ready for review August 5, 2022 00:30
@bveeramani bveeramani added v2.0.0-pick tests-ok The tagger certifies test failures are unrelated and assumes personal liability. labels Aug 5, 2022
Comment on lines +66 to +73
.. seealso::
:class:`~ray.data.preprocessors.CountVectorizer`
Use this preprocessor to generate inputs for :class:`FeatureHasher`.

:class:`ray.data.preprocessors.HashingVectorizer`
If your input data describes documents rather than token frequencies,
use :class:`~ray.data.preprocessors.HashingVectorizer`.
""" # noqa: E501
Copy link
Contributor

Choose a reason for hiding this comment

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

nice ! we should do this way more.

Copy link
Contributor

@clarkzinzow clarkzinzow left a comment

Choose a reason for hiding this comment

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

LGTM!

@clarkzinzow clarkzinzow merged commit 5087511 into ray-project:master Aug 8, 2022
@bveeramani bveeramani deleted the bveeramani/feature-hasher-fix branch August 8, 2022 19:17
bveeramani added a commit to bveeramani/ray that referenced this pull request Aug 8, 2022
…-project#27523)

This makes FeatureHasher work more like sklearn's FeatureHasher.
matthewdeng pushed a commit that referenced this pull request Aug 8, 2022
) (#27675)

This makes FeatureHasher work more like sklearn's FeatureHasher.
scottsun94 pushed a commit to scottsun94/ray that referenced this pull request Aug 9, 2022
…-project#27523)

This makes FeatureHasher work more like sklearn's FeatureHasher.

Signed-off-by: Huaiwei Sun <[email protected]>
Stefan-1313 pushed a commit to Stefan-1313/ray_mod that referenced this pull request Aug 18, 2022
…-project#27523)

This makes FeatureHasher work more like sklearn's FeatureHasher.

Signed-off-by: Stefan van der Kleij <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests-ok The tagger certifies test failures are unrelated and assumes personal liability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AIR] FeatureHasher doesn't work the way it's supposed to
4 participants