Github user feynmanliang commented on a diff in the pull request:
https://github.com/apache/spark/pull/8435#discussion_r37947104
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/clustering/GaussianMixtureModel.scala
---
@@ -46,9 +46,9 @@ import org.apache.spark.sql.{SQLContext, Row}
*/
@Since("1.3.0")
@Experimental
-class GaussianMixtureModel(
- val weights: Array[Double],
- val gaussians: Array[MultivariateGaussian]) extends Serializable with
Saveable {
+class GaussianMixtureModel @Since("1.3.0") (
+ @Since("1.3.0") val weights: Array[Double],
+ @Since("1.3.0") val gaussians: Array[MultivariateGaussian]) extends
Serializable with Saveable {
require(weights.length == gaussians.length, "Length of weight and
Gaussian arrays must match")
--- End diff --
Should we add since to `formatVersion`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]