Description Usage Arguments Value Source See Also Examples
This function takes a random forest model fit using randomForest() and returns a list-of-lists representing in valid PFA document that could be used for scoring
1 2 3 4 |
object |
an object of class "randomForest" |
name |
a character which is an optional name for the scoring engine |
version |
an integer which is sequential version number for the model |
doc |
a character which is documentation string for archival purposes |
metadata |
a |
randseed |
a integer which is a global seed used to generate all random numbers. Multiple scoring engines derived from the same PFA file have different seeds generated from the global one |
options |
a |
pred_type |
a string with value "response" for returning a prediction on the same scale as what was provided during modeling, or value "prob", which for classification problems returns the probability of each class. |
cutoffs |
(Classification only) A named numeric vector of length equal to number of classes. The "winning" class for an observation is the one with the maximum ratio of predicted probability to its cutoff. The default cutoffs assume the same cutoff for each class that is 1/k where k is the number of classes |
n.trees |
an integer or vector of integers specifying the number of trees to use in building the model. If a vector is provided, then only the indices of thos trees will be used. If a single integer is provided then all trees up until and including that index will be used. |
... |
additional arguments affecting the PFA produced |
a list
of lists that compose valid PFA document
pfa_config.R avro_typemap.R avro_R pfa_cellpool.R pfa_expr.R pfa_utils.R
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.