Based on a model returned by link{mapme.forest}[train_model] and a test set a confusion matrix is returned.

eval_test(model, testset, response)

Arguments

model

A model object.

testset

A data.frame containing the test data to predict

response

A character vector indicating the column name of the response variable.

Value

A list with a confusion matrix and the test set amended by a column called pred containing the predicted values.

Author

Darius Görgen (MapTailor Geospatial Consulting GbR) info@maptailor.net
Maintainer: MAPME-Initiative contact@mapme-initiative.org
Contact Person: Dr. Johannes Schielein
Copyright: MAPME-Initiative
License: GPL-3