|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.apache.spark.ml.param.ParamMap
public final class ParamMap
:: Experimental :: A param to value map.
Constructor Summary | |
---|---|
ParamMap()
Creates an empty param map. |
Method Summary | ||
---|---|---|
|
apply(Param<T> param)
Gets the value of the input param or its default value if it does not exist. |
|
boolean |
contains(Param<?> param)
Checks whether a parameter is explicitly specified. |
|
ParamMap |
copy()
Creates a copy of this param map. |
|
static ParamMap |
empty()
Returns an empty param map. |
|
ParamMap |
filter(Params parent)
Filters this param map for the given parent. |
|
|
get(Param<T> param)
Optionally returns the value associated with a param. |
|
|
getOrElse(Param<T> param,
T default_)
Returns the value associated with a param or a default value. |
|
|
put(Param<T> param,
T value)
Puts a (param, value) pair (overwrites if the input param exists). |
|
ParamMap |
put(ParamPair<?>... paramPairs)
Puts a list of param pairs (overwrites if the input params exists). |
|
ParamMap |
put(scala.collection.Seq<ParamPair<?>> paramPairs)
Puts a list of param pairs (overwrites if the input params exists). |
|
|
remove(Param<T> param)
Removes a key from this map and returns its value associated previously as an option. |
|
int |
size()
Number of param pairs in this map. |
|
scala.collection.Seq<ParamPair<?>> |
toSeq()
Converts this param map to a sequence of param pairs. |
|
String |
toString()
|
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParamMap()
Method Detail |
---|
public static ParamMap empty()
public ParamMap put(ParamPair<?>... paramPairs)
paramPairs
- (undocumented)
public <T> ParamMap put(Param<T> param, T value)
param
- (undocumented)value
- (undocumented)
public ParamMap put(scala.collection.Seq<ParamPair<?>> paramPairs)
paramPairs
- (undocumented)
public <T> scala.Option<T> get(Param<T> param)
param
- (undocumented)
public <T> T getOrElse(Param<T> param, T default_)
param
- (undocumented)default_
- (undocumented)
public <T> T apply(Param<T> param)
param
- (undocumented)
public boolean contains(Param<?> param)
param
- (undocumented)
public <T> scala.Option<T> remove(Param<T> param)
param
- (undocumented)
public ParamMap filter(Params parent)
parent
- (undocumented)
public ParamMap copy()
public String toString()
toString
in class Object
public scala.collection.Seq<ParamPair<?>> toSeq()
public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |