Add Ruby equivalent of fann_train