Code Monkey home page Code Monkey logo

Comments (7)

vruusmann avatar vruusmann commented on August 11, 2024

Apache Spark ML doesn't provide an Imputer class: https://issues.apache.org/jira/browse/SPARK-13568 When it becomes available, then it can be implemented very easily.

What are you using for value imputation now? Some 3rd-party transformations library?

Alternatively, the JPMML-SparkML library could provide its own selection of helper transformations (in addition to Imputer, this could include ContinuousDomain and CategoricalDomain as already "popularized" by the JPMML-SkLearn library). However, such helper transformations should be implemented in Scala (because Apache Spark ML's Java API was materially broken/deficient from the perspective of subclassing base estimator classes), which I'm not too familiar with (at least - yet).

from jpmml-sparkml.

sbourzai avatar sbourzai commented on August 11, 2024

hi Sir,
Have you tested it for Pyspark ? i tried with pyspark but i've always import Error "No module named : jpmml_sparkml "
Thanks,
Saad

from jpmml-sparkml.

vruusmann avatar vruusmann commented on August 11, 2024

@sbourzai You need to adjust your PYTHONPATH environment variable. If you follow the README file step-by-step, then everything works just fine: https://github.com/jpmml/jpmml-sparkml-package#pyspark

from jpmml-sparkml.

sbourzai avatar sbourzai commented on August 11, 2024

Thank you so much!! when i run mvn -Ppyspark i get the jars files and a message : The requested profile "pyspark" could not be activated because it does not exist.
and when i run # echo $PYHTONPATH : i get /usr/bin/python:/usr/lib/spark/python which look normal
but i still have " no module named jpmml_sparkml "

from jpmml-sparkml.

vruusmann avatar vruusmann commented on August 11, 2024

when i run mvn -Ppyspark i get the jars files and a message : The requested profile "pyspark" could not be activated because it does not exist.

The "pyspark" profile does exist:
https://github.com/jpmml/jpmml-sparkml-package/blob/master/pom.xml#L81-L141

from jpmml-sparkml.

sbourzai avatar sbourzai commented on August 11, 2024

It works!! Thank you so much sir for your help

from jpmml-sparkml.

sbourzai avatar sbourzai commented on August 11, 2024

I'm using pyspark and i want to upgrade the version of jpmml-sparkml, Is it possible ? because after the build there is no egg files

from jpmml-sparkml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.