spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhengruifeng (Jira)" <>
Subject [jira] [Created] (SPARK-28958) function parity
Date Tue, 03 Sep 2019 11:37:00 GMT
zhengruifeng created SPARK-28958:

             Summary: function parity
                 Key: SPARK-28958
             Project: Spark
          Issue Type: Improvement
          Components: ML, PySpark
    Affects Versions: 3.0.0
            Reporter: zhengruifeng

I looked into the hierarchy of both py and scala sides, and found that they are quite different,
which damage the parity and make the codebase hard to maintain.

The main inconvenience is that most models in pyspark do not support any param getters and

In the py side, I think we need to do:

1, remove setters generated by;

2, add common abstract classes like the side side, such as JavaPredictor/JavaClassificationModel/JavaProbabilisticClassifier;

3, for each alg, add its param trait, such as LinearSVCParams;

4, since sharedParam do not have setters, we need to add them in right places;

Unfortunately, I notice that if we do 1 (remove setters generated by,
all algs (classification/regression/clustering/features/fpm/recommendation) need to be modified
in one batch.

The scala side also need some small improvements, but I think they can be leave alone at first,
to avoid a lot of MiMa Failures.

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message