fscore: F-score measure

View source: R/fScore.R

fscoreR Documentation

F-score measure

Description

Generates an evaluation function that calculates the F-score approach defined in \insertCiteWang2018FSinR (individual measure). This function is called internally within the filterEvaluator function.

Usage

fscore()

Value

Returns a function that is used to generate an individual evaluation measure using the F-score.

References

\insertAllCited

Examples

 

## The direct application of this function is an advanced use that consists of using this 
# function directly to individually evaluate a set of features
## Classification problem

# Generate the evaluation function with F-Score
fscore_evaluator <- fscore()
# Evaluate the features (parameters: dataset, target variable and features)
fscore_evaluator(ToothGrowth, 'supp', c('len'))


FSinR documentation built on Nov. 5, 2025, 5:24 p.m.