int sequence_d_partition

(sequence_d_t* sqd,
  sequence_d_t* sqd_train,
  sequence_d_t* sqd_test,
  double train_ratio)

Divides randomly a given array of double sequences into two sets.

Documentation

Divides randomly a given array of double sequences into two sets. Useful if a training and test set is needed. Memory allocation is done here.
Parameters:
sqd - input sequence array
sqd - \_train training sequences
sqd - \_test test sequences
train - \_ratio ratio of number of train vs number of test sequences
Returns:
0 for success, -1 for error

Alphabetic index



This page was generated with the help of DOC++.