Description Usage Arguments Value Examples
Calculate the fitness of a given model.
1 | calculate_fitness(index, X, y, fit_func, family = gaussian)
|
index |
A vector of indices of selected variables. |
X |
Data frame containing all available features |
y |
Response variable |
fit_func |
Fitness function, with the default being AIC |
family |
description of the family of distributions to be used. |
A fitness value of the provided model, based on the provided fitness function.
1 | fitness <- calculate_fitness(1:3, data.frame(replicate(10,sample(0:1,1000,rep=TRUE))), 1:1000, fit_func=AIC)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.