dotnet / dotnet/machinelearning-modelbuilder

CreatePredictionEngine Fails due to error "One of the identified items was in an invalid format"

Open
#2,586 1 comment 0 reactions 0 assignees View on GitHub
GS Tutorial 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: Tried both 16.14.4.2312403 on VS 2019 and the latest on VS 2022
- Visual Studio Version (if applicable): Tried on VS 2022 and VS 2019

**Describe the bug**
- On which page of the tutorial did you run into an issue (URL): https://dotnet.microsoft.com/en-us/learn/ml-dotnet/get-started-tutorial/consume
- Clear description of the problem:
-I was trying to consume the trained model in my project. The auto-generated console app was fine. I built the model with my project into a dll. When I was using the dll to do the prediction, I kept meeting the issue: "One of the identified items was in an invalid format".
It happens at "CreatePredictionEngine".

**To Reproduce**
Steps to reproduce the behavior:
1. After training and evaluating the model, add the code into my own project which targets at net 2.0.
2. Build the project.
3. Reference the built dll of the project in 2, and call the prediction method
4. See error:
![image](https://user-images.githubusercontent.com/117148909/232067787-71ce56ec-3557-402a-b6a3-aa9b5b6f7379.png)

**Expected behavior**
Give prediction results.

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://user-images.githubusercontent.com/117148909/232068154-8cda6aec-97ca-4c89-8dea-2883c4edfbc8.png)

![image](https://user-images.githubusercontent.com/117148909/232067828-69d85c15-cb2c-4d9b-91df-9879dac44d06.png)

**Additional context**
Add any other context about the problem here.

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.