Exemple #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
}
Exemple #2
0
func Learn(handle *Handle, example *Example) float64 {
	return float64(C.VW_Learn(handle.c_handle, example.c_example))
}