spark-sklearn | learn integration package for Apache Spark
kandi X-RAY | spark-sklearn Summary
kandi X-RAY | spark-sklearn Summary
(Deprecated) Scikit-learn integration package for Apache Spark
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Apply gapply to grouped data
- Fit the ComputationFinder .
- Converts a dataset to Pdfs .
- Fit the ComputationGraph model .
- Serialize a object into an object .
- Gets the jvm .
- Creates a new Java object .
- Creates a spark session .
- Call java .
- Reads part of a file .
spark-sklearn Key Features
spark-sklearn Examples and Code Snippets
GridSearchCV(
sc=SparkContext.getOrCreate(),
estimator=ensemble.GradientBoostingRegressor(**params),
param_grid=param_test2, n_jobs=1)
Community Discussions
Trending Discussions on spark-sklearn
QUESTION
We have a machine learning classifier model that we have trained with a pandas dataframe and a standard sklearn pipeline (StandardScaler, RandomForestClassifier, GridSearchCV etc). We are working on Databricks and would like to scale up this pipeline to a large dataset using the parallel computation spark offers.
What is the quickest way to convert our sklearn pipeline into something that computes in parallel? (We can easily switch between pandas and spark DFs as required.)
For context, our options seem to be:
- Rewrite the pipeline using MLLib (time-consuming)
- Use a sklearn-spark bridging library
On option 2, Spark-Sklearn seems to be deprecated, but Databricks instead recommends that we use joblibspark. However, this raises an exception on Databricks:
...ANSWER
Answered 2020-Sep-01 at 13:00Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spark-sklearn
You can use spark-sklearn like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page