public class ParamValidators
extends Object
Param.isValid.
 The numerical methods only support Int, Long, Float, and Double.| Constructor and Description | 
|---|
| ParamValidators() | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> scala.Function1<Object,Object> | arrayLengthGt(double lowerBound)Check that the array length is greater than lowerBound. | 
| static void | checkSingleVsMultiColumnParams(Params model,
                              scala.collection.Seq<Param<?>> singleColumnParams,
                              scala.collection.Seq<Param<?>> multiColumnParams)Utility for Param validity checks for Transformers which have both single- and multi-column
 support. | 
| static <T> scala.Function1<T,Object> | gt(double lowerBound)Check if value is greater than lowerBound | 
| static <T> scala.Function1<T,Object> | gtEq(double lowerBound)Check if value is greater than or equal to lowerBound | 
| static <T> scala.Function1<T,Object> | inArray(java.util.List<T> allowed)Check for value in an allowed set of values. | 
| static <T> scala.Function1<T,Object> | inArray(Object allowed)Check for value in an allowed set of values. | 
| static <T> scala.Function1<T,Object> | inRange(double lowerBound,
       double upperBound)Version of `inRange()` which uses inclusive be default: [lowerBound, upperBound] | 
| static <T> scala.Function1<T,Object> | inRange(double lowerBound,
       double upperBound,
       boolean lowerInclusive,
       boolean upperInclusive)Check for value in range lowerBound to upperBound. | 
| static <T> scala.Function1<T,Object> | lt(double upperBound)Check if value is less than upperBound | 
| static <T> scala.Function1<T,Object> | ltEq(double upperBound)Check if value is less than or equal to upperBound | 
public static <T> scala.Function1<T,Object> gt(double lowerBound)
lowerBound - (undocumented)public static <T> scala.Function1<T,Object> gtEq(double lowerBound)
lowerBound - (undocumented)public static <T> scala.Function1<T,Object> lt(double upperBound)
upperBound - (undocumented)public static <T> scala.Function1<T,Object> ltEq(double upperBound)
upperBound - (undocumented)public static <T> scala.Function1<T,Object> inRange(double lowerBound,
                                                    double upperBound,
                                                    boolean lowerInclusive,
                                                    boolean upperInclusive)
lowerInclusive - if true, range includes value = lowerBoundupperInclusive - if true, range includes value = upperBoundlowerBound - (undocumented)upperBound - (undocumented)public static <T> scala.Function1<T,Object> inRange(double lowerBound,
                                                    double upperBound)
public static <T> scala.Function1<T,Object> inArray(Object allowed)
public static <T> scala.Function1<T,Object> inArray(java.util.List<T> allowed)
public static <T> scala.Function1<Object,Object> arrayLengthGt(double lowerBound)
public static void checkSingleVsMultiColumnParams(Params model, scala.collection.Seq<Param<?>> singleColumnParams, scala.collection.Seq<Param<?>> multiColumnParams)
inputCol indicates single-column usage and
 that inputCols indicates multi-column usage.
 
 This checks to ensure that exactly one set of Params has been set, and it
 raises an IllegalArgumentException if not.
 
singleColumnParams - Params which should be set (or have defaults) if inputCol has been
                           set.  This does not need to include inputCol.multiColumnParams - Params which should be set (or have defaults) if inputCols has been
                           set.  This does not need to include inputCols.model - (undocumented)