Learn R Programming

exprso (version 0.2.0)

build: Build Models

Description

The exprso package includes these build modules:

- buildNB

- buildLDA

- buildSVM

- buildANN

- buildRF

- buildDNN

Arguments

Details

These build methods construct a single classifier given an ExprsArray object and a set of parameters. This function returns an ExprsModel object. In the case of binary classification, these methods use an ExprsBinary object and return an ExprsMachine object. In the case of multi-class classification, these methods use an ExprsMulti object and return an ExprsModule object. In the case of multi-class classification, these methods harness the doMulti function to perform "1 vs. all" classifier construction. In the setting of four class labels, a single build call will return four classifiers that work in concert to make a single prediction of an unlabelled subject. For building multiple classifiers across a vast parameter space in a high-throughput manner, see pl methods.

Like fs methods, build methods have a top argument which allows the user to specify which features to feed INTO the classifier build. This effectively provides the user with one last opportunity to subset the feature space based on prior feature selection or dimension reduction. For all build methods, @preFilter and @reductionModel will get passed along to the resultant ExprsModel object, again ensuring that any test or validation sets will undergo the same feature selection and dimension reduction in the appropriate steps when deploying the classifier. Set top = 0 to pass all features through a build method.