Package moa.associations

Examples of moa.associations.Associator


         
          try
          {
            Tuple tuple;
            Associator associator = (Associator)Class.forName(algorithmClass).newInstance();
            associator.getOptions().setViaCLIString(options);
            Calendar cal = Calendar.getInstance();
            this.startTime = cal.getTimeInMillis();

            while((tuple = (Tuple)tuples.nextValue()) != null && tuple != ControlBlock.LIST_END) {
              Instance inst = WekaUtilities.createInstance(dataset, tuple);
              associator.addTransaction(inst);
              if(stepCounter == 0) {
                    associator.prepareForUse();
                  if(mSummaryOutput != null)
                    mSummaryOutput.write(associator.toString() +
                    "\nModel size:\n" + ((MOAObject)associator).measureByteSize() + "\n");
                   
                  mAssociatorOutput.write(associator);                   
                }             
              stepCounter++;
              stepCounter%=outputFrequency;
           
            if(mSummaryOutput != null) {
              mSummaryOutput.write(associator.toString());
             
            }
            associator.prepareForUse();
        mAssociatorOutput.write(associator);       

          }
          catch (PipeClosedException e)
          {
View Full Code Here

TOP

Related Classes of moa.associations.Associator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.