dotnet / dotnet/machinelearning-modelbuilder

The generated sample data code snippet does not contain data for all features

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

Description

**System Information (please complete the following information):**
- Model Builder Version : 16.7.6.2152701
- Visual Studio Version : Microsoft Visual Studio Enterprise 2022 Version 17.1.0 Preview 1.0

**Describe the bug**

- On which step of the process did you run into an issue: Consume

- Clear description of the problem: The generated sample data code snippet does not contain data for all features although the properties are available in the generated ModelInput class.
When running the console app the prediction is 1 instead of 0. After adding data for the missing properties the prediction is 0 as expected.

**To Reproduce**

I have Windows set to use Swedish locale and followed the steps in the learn module [Train a predictive maintenance machine learning model with ML.NET Model Builder - Exercise: Train a machine learning model](https://docs.microsoft.com/en-us/learn/modules/predictive-maintenance-model-builder/5-exercise-train-model-builder) and [Exercise: Consume model in .NET console app](https://docs.microsoft.com/en-us/learn/modules/predictive-maintenance-model-builder/7-exercise-consume-model-builder)

**Expected behavior**
I expected the sample code snippet to contain data for all included features and the console application to produce the expected prediction.

**Screenshots**
![image](https://user-images.githubusercontent.com/1944265/141497318-aa171429-32e5-427f-9c57-f9308fba4b21.png)
![image](https://user-images.githubusercontent.com/1944265/141497260-e57dc4c1-6a97-468f-be8c-ebe9701ea1e3.png)
![image](https://user-images.githubusercontent.com/1944265/141497364-c6c49568-b65d-45b9-890c-979144988f8b.png)
![image](https://user-images.githubusercontent.com/1944265/141497442-35db714b-dc94-4ff1-9500-95ac78334827.png)
![image](https://user-images.githubusercontent.com/1944265/141497495-ab3325f7-0806-4283-b327-1ceae1fb183b.png)

**Additional context**

I have Windows set to use Swedish locale, the csv file with data uses . as decimal separator.
The issue is possibly related to [Evaluate step can not parse the sample data it has generated, when using Swedish locale](https://github.com/dotnet/machinelearning-modelbuilder/issues/1913)

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.