jncc20
Class PredFeat

java.lang.Object
  extended by jncc20.PredFeat

public class PredFeat
extends java.lang.Object

RESEARCH FEATURE, NOT TO BE RELEASED Scans a data set and reports the frequencies of the classes, given the joint configuration of the features, thus providing indications about the predictive power of the different configurations


Field Summary
private  java.util.ArrayList<double[]> ConfigurationList
          Each array stores the joint frequencies of features and classes arranged as follows: feature values, class, frequency
private  java.util.ArrayList<java.lang.String> FeatureNames
          Names of input features
private  java.util.ArrayList<java.lang.Integer> Frequencies
           
private  java.util.ArrayList<double[]> RawDataset
          Copy of the data read from Arff file (having hence -9999 as marker for missing data), and category names substituted by the corresponding indexes.)
private  java.lang.String UserArffFile
           
private  java.lang.String WorkingPath
          Path where the files for the given experiment (Arff files, NonMar.txt) are found, and where output files will be saved.
 
Constructor Summary
PredFeat()
           
 
Method Summary
private  void checkSuppliedArguments(java.lang.String[] SuppliedArguments)
           
private  void frequenciesToFile()
          outputs to file the joint frequencies, for a given data set
static void main(java.lang.String[] args)
           
private  void readArffFile(java.lang.String UserSuppliedArffName)
          Reads Arff file using AParser class
private  void scanRawDataset()
          Stores into FrequenciesMap the frequency of each row of the dataset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ConfigurationList

private java.util.ArrayList<double[]> ConfigurationList
Each array stores the joint frequencies of features and classes arranged as follows: feature values, class, frequency


FeatureNames

private java.util.ArrayList<java.lang.String> FeatureNames
Names of input features


Frequencies

private java.util.ArrayList<java.lang.Integer> Frequencies

RawDataset

private java.util.ArrayList<double[]> RawDataset
Copy of the data read from Arff file (having hence -9999 as marker for missing data), and category names substituted by the corresponding indexes.)


UserArffFile

private java.lang.String UserArffFile

WorkingPath

private java.lang.String WorkingPath
Path where the files for the given experiment (Arff files, NonMar.txt) are found, and where output files will be saved.

Constructor Detail

PredFeat

public PredFeat()
Method Detail

checkSuppliedArguments

private void checkSuppliedArguments(java.lang.String[] SuppliedArguments)

frequenciesToFile

private void frequenciesToFile()
outputs to file the joint frequencies, for a given data set


main

public static void main(java.lang.String[] args)
Parameters:
args -

readArffFile

private void readArffFile(java.lang.String UserSuppliedArffName)
Reads Arff file using AParser class


scanRawDataset

private void scanRawDataset()
Stores into FrequenciesMap the frequency of each row of the dataset