evalml.data_checks.InvalidTargetDataCheck.__init__

InvalidTargetDataCheck.__init__(problem_type, n_unique=100)[source]

Check if the target is invalid for the specified problem type.

Parameters

n_unique (int) – Number of unique target values to store when problem type is binary and target incorrectly has more than 2 unique values. Non-negative integer. Defaults to 100. If None, stores all unique values.