PredPsych (version 0.1)

fscore: f-score

Description

A simple function to generate F-scores (Fisher scores) for ranking features

Usage

fscore(Data, classCol, featureCol)

Arguments

Data

(dataframe) Data dataframe

classCol

(numeric) column with different classes

featureCol

(numeric) all the columns that contain features

Value

named numeric f-scores

Details

The function implements F-score for feature selection. F-score provides a measure of how well a single feature at a time can discriminate between different classes. The higher the F-score, the better the discriminatory power of that feature

Examples

Run this code
# calculate f-scores for 10% of movement
fscore(KinData,classCol = 1,featureCol = c(2,12,22,32,42,52,62,72,82,92,102,112))



Run the code above in your browser using DataLab