Package org.apache.spark.ml.param
Class Param<T>
Object
org.apache.spark.ml.param.Param<T>
- Type Parameters:
 T- param value type
- All Implemented Interfaces:
 Serializable
- Direct Known Subclasses:
 BooleanParam,DoubleArrayArrayParam,DoubleArrayParam,DoubleParam,FloatParam,IntArrayParam,IntParam,LongParam,StringArrayParam
A param with self-contained documentation and optionally default value. Primitive-typed param
 should use the specialized versions, which are more friendly to Java users.
 
 param:  parent parent object
 param:  name param name
 param:  doc documentation
 param:  isValid optional validation method which indicates if a value is valid.
                See ParamValidators for factory methods for common validation functions.
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondoc()final booleanfinal inthashCode()isValid()jsonDecode(String json) Decodes a param value from JSON.jsonEncode(T value) Encodes a param value into JSON, which can be decoded by `jsonDecode()`.name()parent()final StringtoString()Creates a param pair with the given value (for Java). 
- 
Constructor Details
- 
Param
 - 
Param
 - 
Param
 - 
Param
 - 
Param
 - 
Param
 
 - 
 - 
Method Details
- 
parent
 - 
name
 - 
doc
 - 
isValid
 - 
dataClass
 - 
w
Creates a param pair with the given value (for Java). - 
jsonEncode
Encodes a param value into JSON, which can be decoded by `jsonDecode()`. - 
jsonDecode
Decodes a param value from JSON. - 
toString
 - 
hashCode
public final int hashCode() - 
equals
 
 -