Print the result of madlib.randomForest

Description

This function prints the result of madlib.randomForest to the screen. It internally calls R's print function for random forests.

Usage

1
2
3
    ## S3 method for class 'rf.madlib'
print(x, digits = max(3L, getOption("digits") - 3L),
        ...)

Arguments

x

The fitted forest from the result of madlib.randomForest

digits

The number of digits to print for numerical values.

...

Arguments to be passed to or from other methods.

Author(s)

Author: Predictive Analytics Team at Pivotal Inc.

Maintainer: Frank McQuillan, Pivotal Inc. fmcquillan@pivotal.io

References

[1] Documentation of random forest in MADlib 1.7, http://doc.madlib.net/latest/

See Also

madlib.randomForest is the wrapper for MADlib's forest_train function for random forests.

madlib.lm, madlib.glm, madlib.rpart, madlib.summary, madlib.arima, madlib.elnet, madlib.rpart are all MADlib wrapper functions.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 


## set up the database connection
## Assume that .port is port number and .dbname is the database name
cid <- db.connect(port = .port, dbname = .dbname, verbose = FALSE)

x <- as.db.data.frame(abalone, conn.id = cid, verbose = FALSE)
lk(x, 10)

## random forest using abalone data, using default values of minsplit,
## maxdepth etc.
key(x)<-"id"
fit <- madlib.randomForest(rings < 10 ~ length + diameter + height + whole + shell,
       data=x)

print(fit)

db.disconnect(cid)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.