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