Package org.apache.spark.ml.param
Class DoubleArrayParam
Object
org.apache.spark.ml.param.Param<double[]>
org.apache.spark.ml.param.DoubleArrayParam
- All Implemented Interfaces:
Serializable
Specialized version of
Param[Array[Double}
for Java.- See Also:
-
Constructor Summary
ConstructorDescriptionDoubleArrayParam
(Params parent, String name, String doc) DoubleArrayParam
(Params parent, String name, String doc, scala.Function1<double[], Object> isValid) -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
jsonDecode
(String json) Decodes a param value from JSON.jsonEncode
(double[] value) Encodes a param value into JSON, which can be decoded by `jsonDecode()`.ParamPair<double[]>
Creates a param pair with a `java.util.List` of values (for Java and Python).
-
Constructor Details
-
DoubleArrayParam
-
DoubleArrayParam
-
-
Method Details
-
jsonDecode
Description copied from class:Param
Decodes a param value from JSON.- Overrides:
jsonDecode
in classParam<double[]>
-
jsonEncode
Description copied from class:Param
Encodes a param value into JSON, which can be decoded by `jsonDecode()`.- Overrides:
jsonEncode
in classParam<double[]>
-
w
Creates a param pair with a `java.util.List` of values (for Java and Python).
-