This package contains a generic implementation of greedy Information Theoretic Feature Selection (FS) methods. The implementation is based on the common theoretic framework presented by Gavin Brown. Implementations of mRMR, InfoGain, JMI and other commonly used FS filters are provided.
I am using MIM feature selector model. It running perfectly fine and output the features results automatically in a terminal. How can I extract output features with its relevant score? I want to save this output to a file.
val selector = new InfoThSelector()
.setSelectCriterion("mim")
.setNumTopFeatures(2)
.setFeaturesCol("features")
.setLabelCol("class")
.setOutputCol("selectedFeatures")
Scores are printed as standard output as far as I remember. You may extract them from your Spark logs. You can also modify the code to generate your output as demanded.
I am using MIM feature selector model. It running perfectly fine and output the features results automatically in a terminal. How can I extract output features with its relevant score? I want to save this output to a file.