Skip to content

Conversation

@MLnick
Copy link
Contributor

@MLnick MLnick commented Aug 17, 2017

Add Python API for FeatureHasher transformer.

How was this patch tested?

New doc test.

@SparkQA
Copy link

SparkQA commented Aug 17, 2017

Test build #80784 has finished for PR 18970 at commit 3ead289.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class FeatureHasher(JavaTransformer, HasInputCols, HasOutputCol, HasNumFeatures, JavaMLReadable,

Copy link
Member

@BryanCutler BryanCutler left a comment

Choose a reason for hiding this comment

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

LGTM!

"""
kwargs = self._input_kwargs
return self._set(**kwargs)

Copy link
Member

Choose a reason for hiding this comment

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

Should there be a getNumFeatures() method to return the param?

Copy link
Member

Choose a reason for hiding this comment

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

Nevermind, I forgot it's in the shared param HasNumFeatures

@holdenk
Copy link
Contributor

holdenk commented Aug 18, 2017

LGTM

@MLnick
Copy link
Contributor Author

MLnick commented Aug 21, 2017

Merged to master. Thanks for the review!

@asfgit asfgit closed this in 988b84d Aug 21, 2017
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.

4 participants