Пример #1
0
func (ann *Ann) GetCascadeActivationSteepnesses() []FannType {
	cout := C.fann_get_cascade_activation_steepnesses(ann.object)
	n := ann.GetCascadeActivationSteepnessesCount()
	out := make([]FannType, n)
	C.cpFannTypeArray(cout, (*C.fann_type)(&out[0]), C.uint(n))
	return out
}
Пример #2
0
func (ann *Ann) Test(input []FannType, desired_output []FannType) []FannType {
	c_out := C.fann_test(ann.object, (*C.fann_type)(&input[0]), (*C.fann_type)(&desired_output[0]))
	outputNum := ann.GetNumOutput()
	out := make([]FannType, outputNum)
	C.cpFannTypeArray(c_out, (*C.fann_type)(&out[0]), C.uint(outputNum))
	return out
}