compare_models
builtin
¶
compare_models(
model,
columns,
cutoffs,
*,
categories=None,
reference=None,
density=None,
)
Grade-tonnage of several models of the same blocks, by cutoff and category, against a reference model.
Each block stands for volume × density tonnes, as in grade_tonnage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
BlockModel
|
The blocks, with their volumes. |
required |
columns
|
sequence of str or dict of str to array_like or str
|
Columns of |
required |
cutoffs
|
array_like
|
Cutoff grades in the unit of the values, or texts such as
|
required |
categories
|
array_like or str
|
Category (e.g. class or domain) of each block, int or str, or its column. |
None
|
reference
|
str
|
Model the others are compared with; the first by default. |
None
|
density
|
(float, array_like or str)
|
Block densities, or their column; default 1. |
None
|
Returns:
| Type | Description |
|---|---|
Table
|
One row per category (sorted, then |
used in