Class DoubleArrayParam

Object
org.apache.spark.ml.param.Param<double[]>
org.apache.spark.ml.param.DoubleArrayParam
All Implemented Interfaces:
Serializable

public class DoubleArrayParam extends Param<double[]>
Specialized version of Param[Array[Double} for Java.
See Also:
  • Constructor Details

    • DoubleArrayParam

      public DoubleArrayParam(Params parent, String name, String doc, scala.Function1<double[],Object> isValid)
    • DoubleArrayParam

      public DoubleArrayParam(Params parent, String name, String doc)
  • Method Details

    • jsonDecode

      public double[] jsonDecode(String json)
      Description copied from class: Param
      Decodes a param value from JSON.
      Overrides:
      jsonDecode in class Param<double[]>
    • jsonEncode

      public String jsonEncode(double[] value)
      Description copied from class: Param
      Encodes a param value into JSON, which can be decoded by `jsonDecode()`.
      Overrides:
      jsonEncode in class Param<double[]>
    • w

      public ParamPair<double[]> w(List<Double> value)
      Creates a param pair with a `java.util.List` of values (for Java and Python).