dotnet / dotnet/machinelearning-modelbuilder

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

Aperta
#2,586 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
GS Tutorial Stale
Lingua principale
Dockerfile
Stelle
285
Fork
66
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia con il consume tutorial e riproduci il problema in CreatePredictionEngine usando l’applicazione console generata, la DLL del modello compilato e un progetto net 2.0. Confronta il framework di destinazione e gli assembly referenziati tra l’applicazione generata funzionante e il progetto che non funziona. Il lavoro è completato quando la DLL referenziata può creare un motore di predizione e restituire risultati di predizione senza l’errore di formato non valido.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
machine-learning
Ambito
machine-learning, tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.