assign_domain
builtin
¶
assign_domain(
targets,
*,
coords=None,
domains=None,
domain_column=None,
method="nearest",
mesh=None,
n=5,
)
Domain of each target from labeled samples, or inside/outside a closed mesh.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
targets
|
(array_like, PointSet or BlockModel)
|
|
required |
coords
|
(array_like, PointSet or BlockModel)
|
Sample locations, for |
None
|
domains
|
array_like of str
|
Sample labels; or give |
None
|
domain_column
|
str
|
Column of |
None
|
method
|
(nearest, majority, solid)
|
|
"nearest"
|
mesh
|
Mesh
|
Closed mesh, for |
None
|
n
|
int
|
Neighbors that vote and that the confidence is measured on. |
5
|
Returns:
| Name | Type | Description |
|---|---|---|
labels |
list of str
|
|
confidence |
ndarray
|
Share of the |
used in