GetWeightsFromTestingSet: A helper function used by the GetModelWeights function. It...

Description Usage Arguments Value Examples

View source: R/Ensembling.R

Description

A helper function used by the GetModelWeights function. It uses the given data to predict and pull the metric from the data.

Usage

1
GetWeightsFromTestingSet(ensemble, df.train, test.set, train.type)

Arguments

ensemble

The training data to build the models.

df.train

The predictions of the model, given in DataFrame format.

test.set

The data test set so that metrics can be calculated.

train.type

The metric to be used in getting model weights. We pull this metric from the confusion matrix.

Value

A vector containg weights for the Ensemble's models.

Examples

1
2
# This function is used by Ensemble. It's usage is as follows:
# return(GetWeightsFromTestingSet(ensemble, weights, test.set, train.type))

orionw/BestModel documentation built on Aug. 17, 2019, 7:29 p.m.