Beispiel #1
0
func (handle *Handle) LearnString(exStr string) float64 {
	ex := ReadExample(handle, exStr)
	C.VW_Learn(handle.c_handle, ex.c_example)
	pp := float64(C.VW_GetPartialPrediction(ex.c_example))
	ex.FinishExample(handle)
	return pp
}
Beispiel #2
0
func (example *Example) GetPartialPrediction() float64 {
	return float64(C.VW_GetPartialPrediction(example.c_example))
}