Skip to content

Commit 7c5db45

Browse files
zero323dongjoon-hyun
authored andcommitted
[SPARK-29363][MLLIB] Make o.a.s.regression.Regressor public
### What changes were proposed in this pull request? - Removal of `private[ml]` modifier from `Regressor`. - Marking `Regressor` as `DeveloperApi`. ### Why are the changes needed? Consistency with the rest of ML API as described in [the corresponding JIRA ticket](https://issues.apache.org/jira/browse/SPARK-29363). ### Does this PR introduce any user-facing change? Yes, as described above. ### How was this patch tested? Existing tests. Closes apache#26033 from zero323/SPARK-29363. Authored-by: zero323 <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 80afc79 commit 7c5db45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mllib/src/main/scala/org/apache/spark/ml/regression/Regressor.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ import org.apache.spark.ml.{PredictionModel, Predictor, PredictorParams}
2828
* @tparam Learner Concrete Estimator type
2929
* @tparam M Concrete Model type
3030
*/
31-
private[spark] abstract class Regressor[
31+
@DeveloperApi
32+
abstract class Regressor[
3233
FeaturesType,
3334
Learner <: Regressor[FeaturesType, Learner, M],
3435
M <: RegressionModel[FeaturesType, M]]

0 commit comments

Comments
 (0)