Learn R Programming

ASML (version 1.1.0)

KPI_table.as_data: KPI table

Description

Function that generates a table with the values of the KPI.

Usage

# S3 method for as_data
KPI_table(data_object, predictions = NULL, test = TRUE, ...)

Value

A table with the statistics of the pace.

Arguments

data_object

an object of class as_data.

predictions

a data frame with the predicted KPI for each algorithm (columns) and for each instance (rows). If NULL, the table won't include a ML column.

test

flag that indicates whether the function should use test data or training data.

...

other parameters.

Examples

Run this code
data(branchingsmall)
data_object <- partition_and_normalize(branchingsmall$x, branchingsmall$y, test_size = 0.3,
family_column = 1, split_by_family = TRUE)
training <- AStrain(data_object, method = "glm")
predictions <- ASpredict(training, newdata = data_object$x.test)
KPI_table(data_object, predictions = predictions)

Run the code above in your browser using DataLab