ResponseBinaryClassif | R Documentation |
ResponseBinaryClassif
creates a response object that are used as target during the
fitting process.
S4 object.
ResponseBinaryClassif$new(target_name, pos_class, response) ResponseBinaryClassif$new(target_name, pos_class, response, weights)
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.