dotnet / dotnet/machinelearning-modelbuilder
The generated sample data code snippet does not contain data for all features
- 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**





**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.