EpistasisLab / Aliro

Aliro: AI-Driven Data Science
https://epistasislab.github.io/Aliro
GNU General Public License v3.0
223 stars 63 forks source link

Make errors on uploads more user-friendly #570

Closed jay-m-dev closed 1 year ago

jay-m-dev commented 1 year ago

We should have more specific errors so it's easier for users to fix the error and try uploading the dataset again. See attached screenshot for an example: Aliro Error Uploading Data

jay-m-dev commented 1 year ago

This error comes from validateDataset.py.

Related to this, uploading a dataset with a non-numeric data feature or target variable is allowed, but building experiments errors out with error "ValueError: Could not Convert String to Float: 'Iris Setosa'"

Steps to recreate: Upload the attached iris.csv where the "target" is a String. The file will be accepted, but experiments will fail.

We should reject any invalid datasets with user-friendly error messages.

Iris.csv

jay-m-dev commented 1 year ago

Confirmed that the errors have been made more user friendly, here's an example: image