kissinference 1.4.x
kiss_data_feed_cb_t Struct Reference

A function pointer of this type is used by libkissinference-train to request data from the user. More...

Data Fields

float * in
 Network input.
 
size_t in_size
 Length of the input array.
 
float * out
 Target output for loss computation.
 
size_t out_size
 Length of the target output array.
 

Detailed Description

A function pointer of this type is used by libkissinference-train to request data from the user.

Parameters
sessionthe session that this request belongs too
user_ptrthe user pointer supplied to kiss_start_training
Returns
a kiss_training_data struct with the data for the next optimization step or NULL if no futher data is available