« Return to Thread: Question about CFS

Question about CFS

by "Carlos A. GarcĂ­a Vallejo" :: Rate this Message:

Reply to Author | View in Thread

Hello (sorry for my poor English).

I have a question about CFS.

Hello. I have a question about CFS. The first thing I want to say is
that I feel like you have a question about The Godfather and write a
list in which Francis Ford Coppola answers.

Well, I am writting a new (and hope that good) Feature Selection
Algorithm. It's based on the correlation between features, so,
obviously, I use CFS (!thanks Mark!). I have modified the class
CFSSubsetEval, calling MyCFSSubsetEval, making the field m_corr_matrix
public. Then I write the following code:

    MyCfsSubsetEval cfs = new MyCfsSubsetEval();
    int numFeaturesIncludedClass = instances.numAttributes();
    numFeatures = numFeaturesIncludedClass - 1;
    BitSet bs = new BitSet(numFeatures);
    for (int i = 0; i < numFeatures; i++) {
        bs.set(i);
    }
    cfs.buildEvaluator(instances);
    cfs.evaluateSubset(bs);
    float[][] correlationMatrix = cfs.m_corr_matrix;

and I do have the correlations.

The question is: is this the best way I could do it, or there is another
more efficient way?

Many many thanks in advance

--
Carlos A. Garcma Vallejo
Departamento de Lenguajes y Sistemas Informaticos
Escuela Ticnica Superior de Ingenierma Informatica
Av. Reina Mercedes s/n 41012-Sevilla
+34 954552768      vallejo@...
http://www.lsi.us.es/~vallejo


_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

 « Return to Thread: Question about CFS