Spaces:
Sleeping
Sleeping
File size: 326 Bytes
a309487 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
class ProblemInference:
def infer(self, dataset_info, target_column):
if dataset_info.get("possible_nlp"):
return "nlp"
if target_column:
return "classification" if dataset_info.get("class_distribution") else "regression"
return "unknown"
|