print.local_fit_explainer {ceterisParibus}R Documentation

Prints Local Fit / Wangkardu Summary

Description

Prints Local Fit / Wangkardu Summary

Usage

## S3 method for class 'local_fit_explainer'
print(x, ...)

Arguments

x

a local fit explainer produced with the 'local_fit' function

...

other arguments that will be passed to 'head' function

Examples

library("DALEX")
 ## Not run: 
library("randomForest")
apartments_rf_model <- randomForest(m2.price ~ construction.year + surface + floor +
                     no.rooms + district, data = apartments)
explainer_rf <- explain(apartments_rf_model,
                     data = apartmentsTest[,2:6], y = apartmentsTest$m2.price)
new_apartment <- apartmentsTest[1, ]
new_apartment
cr_rf <- local_fit(explainer_rf, observation = new_apartment,
    select_points = 0.002, selected_variable = "surface")
cr_rf

## End(Not run)

[Package ceterisParibus version 0.4.2 Index]