dotnet / dotnet/machinelearning-modelbuilder

Can't find the right data type: Can't bind the IDataView column 'Score' of type 'Vector<Single, 7>' to field or property 'Score' of type 'System.Single'.

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

Descrizione

Using F#, I've trained a multi-class model, my input class is simple:

```
type MLDataRow =
{
[]
Label: float32
[]
Features: float32 array
}
```

One label, and 80 floats as features.

The class for the output is:
```
[]
type MLPrediction =
{
[]
Features : float32 array
PredictedLabel : float32
Score : float32
Probability : float32
}
```

But when getting the prediction, I run into:

> Can't bind the IDataView column 'Score' of type 'Vector' to field or property 'Score' of type 'System.Single'.

So I assumed it would need a float per class, and in the output I tried:

```
Score : float32 array
```

That resulted in:

> Operation is not valid due to the current state of the object.

Then I added the VectorType attribute:

```
[]
Score : float32
```

Which resulted in the same error.

I'm completely cluless about what it is expecting, but also a bit frustrated because I've read the docs several times and I still don't understand well how the data pipeline works.

In fact, I am saving my data to CSV and loading from file because I can't even get it to load from the input type described above.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia riproducendo il binding della predizione con i tipi di input e output F# mostrati, concentrandoti sullo schema IDataView per la colonna Score e sulla sua forma Vector. L’attività è completata quando la predizione multiclasse viene associata correttamente e il tipo di input può essere caricato senza gli errori segnalati.

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

Valutazione

Stack tecnologico
fsharp
Ambito
machine-learning
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.