AFL.automation.shared.DataLabelerWidget#
Functions
|
Return the square root of x. |
Classes
|
|
|
|
|
Encode categorical features as an integer array. |
- class AFL.automation.shared.DataLabelerWidget.DataLabelerWidget(input_dataset: Dataset, sas_variable: str, composition_variable: str | List[str], sample_dim: str = 'sample', fit_variable: str | None = None)[source]#
- __init__(input_dataset: Dataset, sas_variable: str, composition_variable: str | List[str], sample_dim: str = 'sample', fit_variable: str | None = None)[source]#
- Parameters:
dataset (xr.Dataset) – Dataset from AFL
sas_variable (str) – Name of data variable in the xarray.Dataset that holds the scattering data
composition_variable (str | List[str]) – Name of data variable in the xarray.Dataset that holds the composition. If the composition is split across multiple variables, pass in a list of variables.
sample_dim (str) – The name of the xarray dimension corresponding to each sample or measurement. This is typically named ‘sample’ in much of the AFL agent codebase.
fit_variable (Optional[str]) – If not none, this data will be plotted along with the sas_variable data. This data variable should have the same shape as sas_variable.