get_decomposition_model#
- EBSD.get_decomposition_model(components: int | list[int] | None = None, dtype_out: str | dtype | type = 'float32') EBSD | LazyEBSD [source]#
Get the model signal generated with the selected number of principal components from a decomposition.
Calls HyperSpy’s
get_decomposition_model()
. Learning results are preconditioned before this call, doing the following:Set
numpy.dtype
to desireddtype_out
.Remove unwanted components.
Rechunk to suitable chunks if
Array
.
- Parameters:
- components
If not given, rebuilds the signal from all components. If
int
, rebuilds signal fromcomponents
in range 0-givenint
. If list ofints
, rebuilds signal from onlycomponents
in given list.- dtype_out
Data type to cast learning results to (default is
"float32
). Note that HyperSpy casts to"float64"
.
- Returns:
s_model
Model signal.