You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Pat Blachly <pb...@doximity.com> on 2016/11/29 18:18:03 UTC
Porting LIBSVM models to Spark
Is it possible to read LIBSVM model files into PySpark? Naively, I'm
thinking of something like:
scaler_path = "path to LIBSVM model generated with svm-scale"
a = MinMaxScaler().load(scaler_path)
While this example is shown for a feature transformation model, I would
also be interested in reading in LIBSVM classifiers too.
Thanks,
Pat
Re: Porting LIBSVM models to Spark
Posted by Maciej Szymkiewicz <ms...@gmail.com>.
Hi,
Not directly. You could try some workaround with converting to PMML and
importing with JPMML-Spark (but you'd have create your own Python wrapper).
On a side note please avoid cross posting between Stack Overflow and
user list and be sure to read the guidelines
(https://spark.apache.org/community.html).
On 11/29/2016 07:18 PM, Pat Blachly wrote:
> Is it possible to read LIBSVM model files into PySpark? Naively, I'm
> thinking of something like:
>
> scaler_path = "path to LIBSVM model generated with svm-scale"
> a = MinMaxScaler().load(scaler_path)
>
> While this example is shown for a feature transformation model, I
> would also be interested in reading in LIBSVM classifiers too.
>
> Thanks,
> Pat
--
Best,
Maciej
---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org