dotnet / dotnet/machinelearning-modelbuilder

Should not complete the train for the incorrect data type.

Open
#1,603 5 comments 0 reactions 1 assignee Claimed by @LittleLittleCloud View on GitHub
Priority:1 Reported by: Test Stale
Dominant language
Dockerfile
Stars
285
Forks
66
PR merge metrics
No merged PRs in 30d

Description

**System Information (please complete the following information):**
- Windows OS: Windows-10-Enterprise-21H1
- ML.Net Model Builder (Preview): 16.6.2.2136201 (Main Branch)
- Microsoft Visual Studio Enterprise 2019: 16.10.2
- .Net: 5.0.301

**Describe the bug**
- On which step of the process did you run into an issue: Evaluate page
- Clear description of the problem: A "couldn't be parsed" error occurred on evaluate page, but there was no message during training period to warn that the data type was incorrect. If the data source is large, and it takes a long time to complete the train, finally be told some data types are incorrect, then back to change the data type, and then retrain. This experience is not very good for the user.

**To Reproduce**
Steps to reproduce the behavior:
1. Select Create a new project from the Visual Studio 2019 start window.
2. Choose the C# Console App (.NET Core) project template with .Net 5.0;
3. Add model builder by right click on the project;
4. Set "Sentiment" to Label, and set "SentimentText" to Single type that only has strings;
![image](https://user-images.githubusercontent.com/81727020/125583773-e5b8a8aa-beb9-450c-ac5a-f3bea83c600b.png)

5. Find that can be trained successfully;
![image](https://user-images.githubusercontent.com/81727020/125583462-6648a289-dc6b-4dec-8a4f-45b87dc75c93.png)
6. Navigate to Evaluate page, click "Predict" button, pop up error dialog: SentimentText was expected to be Single but couldn't be parsed.
![image](https://user-images.githubusercontent.com/81727020/125583575-0fe1fefb-9c6a-4c29-9999-124b0b6dc5c0.png)

**Expected behavior**
Hope that the "couldn't be parsed" error can appear in the training phase in advance to remind user if the data type is incorrect.

**Additional context**
And find that can run the added ConsoleApp and WebApi projects without input:
![image](https://user-images.githubusercontent.com/81727020/125585258-97081578-dc42-4f40-83d0-b92e94c94de1.png)
![image](https://user-images.githubusercontent.com/81727020/125585303-a875253c-0875-4f40-8507-62e16645bf1a.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.