tabensemb.data.datamodule.DataModule._infer_task#

method

DataModule._infer_task() str[source]#

Automatically infer the task type using the target values. If the inferred type is not the same as that set in the configuration, the inferred type is used if the global setting tabensemb.setting["raise_inconsistent_inferred_task"] is False.

Returns:
str

“binary”, “multiclass”, or “regression”