title: Android - Weka Classification is Taking too much time
body: <p>I am using weka library for implementing classification algorithms in android, Though Weka lib is not fully compatible with android , I am using <a href="https://github.com/rjmarsan/Weka-for-Android" rel="nofollow noreferrer">Weka For Android</a> as lib in my app.
  But its taking too much time for building model</p>
  
  <p>Before posting this, I gone through various link, but cant get any consolidated solution</p>
  
  <p>Some links are:</p>
  
  <p><a href="https://stackoverflow.com/questions/11482108/wekas-pca-is-taking-too-long-to-run">Weka's PCA is taking too long to run</a></p>
  
  <p><a href="http://www.pervasive.jku.at/Teaching/_2012WS/PervasiveComputingInfrastructure/Uebungen/UE04/04%20Exercise%20Realtime%20Classification.pdf" rel="nofollow noreferrer">Using Weka classifiers on Android </a></p>
  
  <p><a href="https://stackoverflow.com/questions/2615381/android-adding-external-library-to-project">Android - Adding external library to project</a></p>
  
  <p>I am using fallowing code for classification</p>
  
  <pre><code>OneClassClassifier classifier = new OneClassClassifier();
          classifier.setNominalGenerator(new NominalGenerator());
          classifier.setTargetClassLabel("1");
          classifier.setNumericGenerator(new DiscreteGenerator());
          classifier.setSeed(1);
          classifier.setNumRepeats(10);
  
          classifier.buildClassifier(train);
  
          Evaluation eval = new Evaluation(train);
          eval.evaluateModel(classifier, test);       
  
  
  
          System.out.println(eval.toSummaryString("\nResults\n======\n",      false));
  </code></pre>
  
  <p>This Code is working fine in my Java application. But if i put the same code in Android App, Its taking too much time say 4-6 minute for building the Model.</p>
  
  <p>Please suggest some way to get out from this.
  Also I am not able to serialized / deserialized model in android , while its working fine in java.</p>