Closed v-Hailishi closed 1 year ago
The bug is also repro for Text classification scenario: The generated Console App project is running failed; the generated Web API project is running successfully.
Regressed by this PR https://github.com/dotnet/machinelearning-tools/pull/1624.
The bug is still repro on the latest main build: 16.14.0.2261601 File: SQL Password:
Thanks for finding this @v-Hailishi!
Dev team - possible root cause is that this is binary classification?
Verified on the latest main build 16.14.0.2262002, the bug is repro on Data classification, Value predication, Recommendation, Forecasting, Text classification scenarios.
For this binary is not an issue , it happens for text classification types such as data-classification(binary and multi) and Text- classification but it is not consistence
It is not reproduceable from the latest main
Code behind generation missed installation of System.Data.SqlClient
@v-Hailishi FYI: to validate code in the generated project you should use the newly mbconfig file, if you use old mbconfig file you might get some errors
We're going to change our code to convert to strings for now in AutoML pipelines and CodeGen. We'll also look into supporting other types in ML.NET.
@michaelgsharp has something that we've briefly tested and it works.
For AutoML we can try the following change:
Change to something like this: .Append(mlContext.Transforms.Conversion.MapValueToKey(param.OutputColumnName, param.InputColumnName, addKeyValueAnnotationsAsText: true))
Verified on the latest main build 16.14.2.2306001, the generated Console App and Web API projects are still running failed on scenarios: Data classification, Value predication, Recommendation, Forecasting, Text classification scenarios. The following are the details:
1.1 File1 (https://testpass.blob.core.windows.net/test-pass-data/wikipedia-detox-250-line-data.tsv) Console App: Web API:
1.2 File2 (https://testpass.blob.core.windows.net/test-pass-data/issues.tsv.txt) Console App: Run successful
Web API:
1.3 Microsoft SQL Server: Binary (SQL Password) Console App: Web API:
1.4 Microsoft SQL Server Database File (https://github.com/dotnet/machinelearning-samples/raw/main/samples/modelbuilder/MulticlassClassification_RestaurantViolations/RestaurantScores.zip) Console App: Run successful Web API:
Console App: Run successful
Web API: File:
SQL:
Console App: Run successful
Web API: File:
SQL:
File:
SQL:
Console App:
Web API: File:
SQL:
Verified on the latest main build 16.14.2.2306101, the generated Console App and Web API projects are still running failed on scenarios: Data classification, Value predication, Recommendation, Forecasting, Image Classification-Local, Text classification scenarios. The following are the details:
1.1 File1 (https://testpass.blob.core.windows.net/test-pass-data/wikipedia-detox-250-line-data.tsv) Console App: Run successful
Web API:
1.2 File2 (https://testpass.blob.core.windows.net/test-pass-data/issues.tsv.txt) Console App:
Web API:
1.3 Microsoft SQL Server: Binary (SQL Password) Console App: Web API:
1.4 Microsoft SQL Server Database File (https://github.com/dotnet/machinelearning-samples/raw/main/samples/modelbuilder/MulticlassClassification_RestaurantViolations/RestaurantScores.zip) Console App:
Web API:
Web API: File:
SQL:
File:
SQL:
Console App:
Console App: Run successful
Web API: File:
SQL:
Verified on the latest main build 16.14.2.2306701, the generated Console App and Web API projects are still running failed on scenarios: Data classification, Value predication, Recommendation, Forecasting, Image Classification-Local, Object detection, Text classification scenarios. The following are the details:
1.1 File (https://testpass.blob.core.windows.net/test-pass-data/wikipedia-detox-250-line-data.tsv) Console App: Run successful Web API: Failed (After removing the unnecessary using directive, can run successful)
1.2 Microsoft SQL Server: Binary (SQL Password) Console App: Failed
Web API: Failed
After removing the unnecessary using directive, still run failed.
1.3 Microsoft SQL Server Database File (https://github.com/dotnet/machinelearning-samples/raw/main/samples/modelbuilder/MulticlassClassification_RestaurantViolations/RestaurantScores.zip) Console App: Run successful Web API: Failed
After removing the unnecessary using directive, still run failed.
Web API: File: (After removing the unnecessary using directive, can run successful)
SQL:
After removing the unnecessary using directive, still run failed.
File: Console App:
Web API:
SQL: Console App:
Web API:
Web API: (After removing the unnecessary using directive, can run successful)
Web API: File: Failed (After removing the unnecessary using directive, can run successful)
SQL:
After removing the unnecessary using directive, still run failed.
Verified on the latest main build 16.14.2.2306903, the generated Console App and Web API projects are still running failed on scenarios: Data classification, Value predication, Recommendation, Forecasting, Text classification scenarios. The following are the details:
1.1 File (https://testpass.blob.core.windows.net/test-pass-data/wikipedia-detox-250-line-data.tsv) Console App: Run successful Web API: Run successful
1.2 Microsoft SQL Server: Binary (SQL Password) Console App: Failed Web API: Failed
1.3 Microsoft SQL Server Database File (https://github.com/dotnet/machinelearning-samples/raw/main/samples/modelbuilder/MulticlassClassification_RestaurantViolations/RestaurantScores.zip) Console App: Run successful Web API: Failed (After choosing "Use local version '4.8.3'" can run successful.)
Web API: File: Run successful SQL: Failed (After choosing "Use local version '4.8.3'" can run successful.)
File: Console App: Failed (After choosing "using System.IO;" can run successful.)
Web API: Failed
SQL: Console App: Failed (After choosing "using Microsoft.ML.Data;" and "using System.IO;" and "Use local version '4.8.3'" can run successful.)
Web API: Failed
Verified on the latest main build 16.14.3.2307701, the generated Console App and Web API projects are still running failed on scenarios: Data classification.
Web API: Failed
@v-Hailishi what do you mean SQL password? is that a dataset, are you able to share your dataset? thanks
@zewditu "SQL password" just means I use the SQL Server Authentication to log on to the server.
Besides, in the database, I use the dataset "https://testpass.blob.core.windows.net/test-pass-data/wikipedia-detox-250-line-data.tsv".
@zewditu This isn't regarding SQL. You can repro this by using a boolean type. I used the yelp dataset and set the prediction column to type boolean
The bug has been fixed on the latest main build 17.14.3.2310605.
System Information (please complete the following information): Windows OS: Windows-11-Enterprise-22H2 ML.Net Model Builder 2022: 16.14.0.2261401 (Main Build) Microsoft Visual Studio Enterprise: 2022(17.4.1) .Net: 6.0
Describe the bug
Data Source https://testpass.blob.core.windows.net/test-pass-data/wikipedia-detox-250-line-data.tsv SQL Password
To Reproduce Steps to reproduce the behavior:
Expected behavior The generated Console App project should be running successfully.
Screenshots File: SQL Password:
Additional context: