Package org.apache.spark.ml.param
Class ParamMap
Object
org.apache.spark.ml.param.ParamMap
- All Implemented Interfaces:
- Serializable
A param to value map.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T> TGets the value of the input param or its default value if it does not exist.booleanChecks whether a parameter is explicitly specified.copy()Creates a copy of this param map.static ParamMapempty()Returns an empty param map.Filters this param map for the given parent.<T> scala.Option<T>Optionally returns the value associated with a param.<T> TReturns the value associated with a param or a default value.<T> ParamMapPuts a (param, value) pair (overwrites if the input param exists).Puts a list of param pairs (overwrites if the input params exists).Puts a list of param pairs (overwrites if the input params exists).<T> scala.Option<T>Removes a key from this map and returns its value associated previously as an option.intsize()Number of param pairs in this map.scala.collection.immutable.Seq<ParamPair<?>>toSeq()Converts this param map to a sequence of param pairs.toString()
- 
Constructor Details- 
ParamMappublic ParamMap()Creates an empty param map.
 
- 
- 
Method Details- 
emptyReturns an empty param map.- Returns:
- (undocumented)
 
- 
putPuts a list of param pairs (overwrites if the input params exists).- Parameters:
- paramPairs- (undocumented)
- Returns:
- (undocumented)
 
- 
putPuts a (param, value) pair (overwrites if the input param exists).- Parameters:
- param- (undocumented)
- value- (undocumented)
- Returns:
- (undocumented)
 
- 
putPuts a list of param pairs (overwrites if the input params exists).- Parameters:
- paramPairs- (undocumented)
- Returns:
- (undocumented)
 
- 
getOptionally returns the value associated with a param.- Parameters:
- param- (undocumented)
- Returns:
- (undocumented)
 
- 
getOrElseReturns the value associated with a param or a default value.- Parameters:
- param- (undocumented)
- default_- (undocumented)
- Returns:
- (undocumented)
 
- 
applyGets the value of the input param or its default value if it does not exist. Raises a NoSuchElementException if there is no value associated with the input param.- Parameters:
- param- (undocumented)
- Returns:
- (undocumented)
 
- 
containsChecks whether a parameter is explicitly specified.- Parameters:
- param- (undocumented)
- Returns:
- (undocumented)
 
- 
removeRemoves a key from this map and returns its value associated previously as an option.- Parameters:
- param- (undocumented)
- Returns:
- (undocumented)
 
- 
filterFilters this param map for the given parent.- Parameters:
- parent- (undocumented)
- Returns:
- (undocumented)
 
- 
copyCreates a copy of this param map.- Returns:
- (undocumented)
 
- 
toString
- 
toSeqConverts this param map to a sequence of param pairs.- Returns:
- (undocumented)
 
- 
sizepublic int size()Number of param pairs in this map.- Returns:
- (undocumented)
 
 
-