ResponseBinaryClassif: Create response object for binary classification.

ResponseBinaryClassifR Documentation

Create response object for binary classification.

Description

ResponseBinaryClassif creates a response object that are used as target during the fitting process.

Format

S4 object.

Usage

ResponseBinaryClassif$new(target_name, pos_class, response)
ResponseBinaryClassif$new(target_name, pos_class, response, weights)

Examples


response_binary = ResponseBinaryClassif$new("target", "A", sample(c("A", "B"), 10, TRUE))
response_binary$getResponse()
response_binary$getPrediction()
response_binary$getPredictionTransform() # Applies sigmoid to prediction scores
response_binary$getPredictionResponse()  # Categorizes depending on the transformed predictions
response_binary$getTargetName()
response_binary$setThreshold(0.7)
response_binary$getThreshold()
response_binary$getPositiveClass()


schalkdaniel/compboost documentation built on April 15, 2023, 9:03 p.m.