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

Custom transformers for configuring continuous and categorical feature information #14

Open
vruusmann opened this issue Apr 5, 2017 · 1 comment

Comments

@vruusmann
Copy link
Member

vruusmann commented Apr 5, 2017

As requested in jpmml/jpmml-evaluator#56

The JPMML-SkLearn project defines two custom transformation types sklearn2pmml.decoration.CategoricalDomain and sklearn2pmml.decoration.ContinuousDomain, which provide the ability to configure missing value, invalid value etc. treatments. For example:

mapper = DataFrameMapper([
  ("Sepal.Length", ContinuousDomain(missing_value_treatment = "as_is", invalid_value_treatment = "as_is"))
])

The JPMML-SparkML should provide identical functionality.

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

No branches or pull requests

1 participant