def _init_ypred(n_train, n_test, n_orig_epochs, n_dim):
 if (len(set(n_test)) == 1):
  y_pred = np.empty((n_train, n_test[0], n_orig_epochs, n_dim))
 else:
  y_pred = np.array([np.empty((this_n, n_orig_epochs, n_dim)) for this_n in n_test])
 return y_pred

def _init_ypred ( n_train , n_test , n_orig_epochs , n_dim ) : if ( len ( set ( n_test ) ) == 1 ) : y_pred = np . empty ( ( n_train , n_test [ 0 ] , n_orig_epochs , n_dim ) ) else : y_pred = np . array ( [ np . empty ( ( this_n , n_orig_epochs , n_dim ) ) for this_n in n_test ] ) return y_pred
initialize the predictions for each train/test time points .