Note that there are some explanatory texts on larger screens.

plurals
  1. POWeka's PCA is taking too long to run
    primarykey
    data
    text
    <p>I am trying to use Weka for feature selection using PCA algorithm.</p> <p>My original feature space contains ~9000 attributes, in 2700 samples. <br>I tried to reduce dimensionality of the data using the following code:</p> <pre><code>AttributeSelection selector = new AttributeSelection(); PrincipalComponents pca = new PrincipalComponents(); Ranker ranker = new Ranker(); selector.setEvaluator(pca); selector.setSearch(ranker); Instances instances = SamplesManager.asWekaInstances(trainSet); try { selector.SelectAttributes(instances); return SamplesManager.asSamplesList(selector.reduceDimensionality(instances)); } catch (Exception e ) { ... } </code></pre> <p>However, It did not finish to run within 12 hours. It is stuck in the method <code>selector.SelectAttributes(instances);</code>.</p> <p><strong>My questions are:</strong> Is so long computation time expected for weka's PCA? Or am I using PCA wrongly?</p> <p><strong>If the long run time is expected:</strong> <br>How can I tune the PCA algorithm to run <em>much</em> faster? Can you suggest an alternative? (+ example code how to use it)?</p> <p><strong>If it is not:</strong> <br>What am I doing wrong? How should I invoke PCA using weka and get my reduced dimensionality?</p> <p><strong>Update:</strong> The comments confirms my suspicion that it is taking much more time than expected. <br><strong>I'd like to know</strong>: How can I get PCA in java - using weka or an alternative library. <br>Added a bounty for this one.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload