@Override public Instances defineDataFormat() throws Exception {
  ArrayList<Attribute> atts;
  ArrayList<String> attValues;
  int i;
  int n;
  m_Random=new Random(getSeed());
  setNumExamplesAct(getNumExamples());
  atts=new ArrayList<Attribute>();
  for (n=1; n <= 24; n++) {
    attValues=new ArrayList<String>();
    for (i=0; i < 2; i++) {
      attValues.add("" + i);
    }
    atts.add(new Attribute("att" + n,attValues));
  }
  attValues=new ArrayList<String>();
  for (i=0; i < 10; i++) {
    attValues.add("" + i);
  }
  atts.add(new Attribute("class",attValues));
  m_DatasetFormat=new Instances(getRelationNameToUse(),atts,0);
  return m_DatasetFormat;
}

@ Override public Instances defineDataFormat ( ) throws Exception { ArrayList < Attribute > atts ; ArrayList < String > attValues ; int i ; int n ; m_Random = new Random ( getSeed ( ) ) ; setNumExamplesAct ( getNumExamples ( ) ) ; atts = new ArrayList < Attribute > ( ) ; for ( n = 1 ; n <= 24 ; n ++ ) { attValues = new ArrayList < String > ( ) ; for ( i = 0 ; i < 2 ; i ++ ) { attValues . add ( "" + i ) ; } atts . add ( new Attribute ( "att" + n , attValues ) ) ; } attValues = new ArrayList < String > ( ) ; for ( i = 0 ; i < 10 ; i ++ ) { attValues . add ( "" + i ) ; } atts . add ( new Attribute ( "class" , attValues ) ) ; m_DatasetFormat = new Instances ( getRelationNameToUse ( ) , atts , 0 ) ; return m_DatasetFormat ; }
initializes the format for the dataset produced . must be called before the generateexample or generateexamples methods are used . re - initializes the random number generator with the given seed .
