function [d,a] =  training(a,d)

  
  [d,a]=generate(a);  
  
 