These functions extend R's generic as.data.frame function to the DataRobot S3 object classes listOfBlueprints, listOfFeaturelists, listOfModels, and projectSummaryList.
If simple = TRUE (the default), this method returns a dataframe with one row for each model and the following columns: projectName, projectId, created, fileName, target, targetType, positiveClass, metric, autopilotMode, stage, maxTrainPct, and holdoutUnlocked. If simple = FALSE, a dataframe is constructed from all elements of projectSummaryList.
# S3 method for listOfBlueprints
as.data.frame(x, row.names = NULL, optional = FALSE, ...)# S3 method for listOfFeaturelists
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
# S3 method for listOfModels
as.data.frame(x, row.names = NULL, optional = FALSE, simple = TRUE, ...)
# S3 method for projectSummaryList
as.data.frame(x, row.names = NULL, optional = FALSE, simple = TRUE, ...)
# S3 method for listOfDataRobotPredictionDatasets
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
A dataframe containing some or all of the data from the original S3 object; see Details.
S3 object to be converted into a dataframe.
character. Optional. Row names for the dataframe returned by the method.
logical. Optional. If TRUE, setting row
names and converting column names to syntactic names: see help for
make.names
function.
list. Additional optional parameters to be passed to the generic as.data.frame function (not used at present).
logical. Optional. if TRUE (the default), a simplified dataframe is returned for objects of class listOfModels or projectSummaryList.
All of the DataRobot S3 `listOf' class objects have relatively complex structures and are often easier to work with as dataframes. The methods described here extend R's generic as.data.frame function to convert objects of these classes to convenient dataframes. For objects of class listOfBlueprints and listOfFeaturelists or objects of class listOfModels and projectSummaryList with simple = FALSE, the dataframes contain all information from the original S3 object. The default value simple = TRUE provides simpler dataframes for objects of class listOfModels and projectSummaryList.
If simple = TRUE (the default), this method returns a dataframe with one row for each model and the following columns: modelType, expandedModel (constructed from modelType and processes from the listOfModels elements), modelId, blueprintId, featurelistName, featurelistId, samplePct, and the metrics validation value for projectMetric. If simple = FALSE, the method returns a complete dataframe with one row for each model and columns constructed from all fields in the original listOfModels object