Skip to content

Commit

Permalink
fix bug in fil.go
Browse files Browse the repository at this point in the history
  • Loading branch information
getumen authored Aug 2, 2024
1 parent 6a33a6b commit f8e0d12
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions go/fil.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (m *FILModel) PredictSingleClassScore(

result := make([]float32, numRow)
for i := 0; i < numRow; i++ {
result[i] = resultRaw[i*m.NumClass()+1]
result[i] = resultRaw[i*2+1]
}
return result, nil
}
Expand All @@ -165,6 +165,3 @@ func (m *FILModel) Close() error {
return err
}

func (m *FILModel) NumClass() int {
return m.raw.NumClass()
}

0 comments on commit f8e0d12

Please sign in to comment.