Check that the array length is greater than lowerBound.
Utility for Param validity checks for Transformers which have both single- and multi-column support.
Utility for Param validity checks for Transformers which have both single- and multi-column
support. This utility assumes that 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.
Params which should be set (or have defaults) if inputCol
has been
set. This does not need to include inputCol
.
Params which should be set (or have defaults) if inputCols
has been
set. This does not need to include inputCols
.
Check if value is greater than lowerBound
Check if value is greater than or equal to lowerBound
Check for value in an allowed set of values.
Check for value in an allowed set of values.
Version of inRange()
which uses inclusive be default: [lowerBound, upperBound]
Check for value in range lowerBound to upperBound.
Check for value in range lowerBound to upperBound.
if true, range includes value = lowerBound
if true, range includes value = upperBound
Check if value is less than upperBound
Check if value is less than or equal to upperBound
:: DeveloperApi :: Factory methods for common validation functions for
Param.isValid
. The numerical methods only support Int, Long, Float, and Double.