spark-instrumented-optimizer/mllib
Sean Owen 71fe0944e8 [SPARK-36481][ML] Expose LogisticRegression.setInitialModel, like KMeans et al do
### Why are the changes needed?

Several Spark ML components already allow setting of an initial model, including KMeans, LogisticRegression, and GaussianMixture. This is useful to begin training from a known reasonably good model.

However, the method in LogisticRegression is private to Spark. I don't see a good reason why it should be as the others in KMeans et al are not.

None of these are exposed in Pyspark, which I don't necessarily want to question or deal with now; there are other places one could arguably set an initial model too, but, here just interested in exposing the existing, tested functionality to callers.

### Does this PR introduce _any_ user-facing change?

Other than the new API method, no.

### How was this patch tested?

Existing tests

Closes #33710 from srowen/SPARK-36481.

Authored-by: Sean Owen <srowen@gmail.com>
Signed-off-by: DB Tsai <d_tsai@apple.com>
2021-08-11 23:20:49 +00:00
..
benchmarks [SPARK-34950][TESTS] Update benchmark results to the ones created by GitHub Actions machines 2021-04-03 23:02:56 +03:00
src [SPARK-36481][ML] Expose LogisticRegression.setInitialModel, like KMeans et al do 2021-08-11 23:20:49 +00:00
pom.xml [SPARK-35996][BUILD] Setting version to 3.3.0-SNAPSHOT 2021-07-02 13:47:36 -07:00