You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I appreciate everyone involved with the spago project for developing a proper Machine Learning framework for Go.
I'm in the process of exploring spago and found that the output for valhalla/distilbart-mnli-12-3 differs for zero shot classification when using python vs spago .
//main.go
model, err := zsc.LoadModel("spago/valhalla/distilbart-mnli-12-3")
if err != nil {
log.Fatal(err)
}
defer model.Close()
//Sequence
sequence := "PalmOS on Raspberry Pi"
// arbitrary list of topics
candidateLables := []string{"startup", "business", "legal", "tech"}
result, err := model.Classify(sequence, "", candidateLables, true)
if err != nil {
log.Fatal(err)
}
for i, item := range result.Distribution {
fmt.Printf("%d. %s [%.2f]\n", i, item.Class, item.Confidence)
}
I appreciate everyone involved with the spago project for developing a proper Machine Learning framework for Go.
I'm in the process of exploring spago and found that the output for
valhalla/distilbart-mnli-12-3
differs for zero shot classification when using python vs spago .Is this an expected behavior? If so why.
The text was updated successfully, but these errors were encountered: