NumericVectorOrArrayRole
- class sparklightautoml.dataset.roles.NumericVectorOrArrayRole(size, element_col_name_template, dtype=numpy.float32, force_input=False, prob=False, discretization=False, is_vector=True)[source]
Bases:
NumericRoleRole that describe numeric vector or numeric array.
- __init__(size, element_col_name_template, dtype=numpy.float32, force_input=False, prob=False, discretization=False, is_vector=True)[source]
- Parameters:
size (
int) – number of elements in every vector in this columnelement_col_name_template (
Union[str,List[str]]) – string template to produce name for each element in the vectorneccessary (when array-to-columns transformation is) –
dtype (
Union[Callable,type,str]) – type of the vector’s elementsforce_input (
bool) – Select a feature for training, regardless of the selector results.prob (
bool) – If input number is probability.