Controls if the result columns of the tidy fns of a model (glance-fn, tidy-fn, augment-fn is validated against these base https://github.com/scicloj/metamorph.ml/tree/main/resources/*.edn and if on violation they fail.
Controls if the result columns of the tidy fns of a model (glance-fn, tidy-fn, augment-fn is validated against these base https://github.com/scicloj/metamorph.ml/tree/main/resources/*.edn and if on violation they fail.
(_get-allowed-keys)Internal function that fetches all allowed columns for tidy model functions.
Returns a map with keys :glance, :tidy, and :augment, each containing
a sequence of allowed column names.
Not memoized. Use get-allowed-keys (memoized version) for repeated access.
Internal function that fetches all allowed columns for tidy model functions. Returns a map with keys `:glance`, `:tidy`, and `:augment`, each containing a sequence of allowed column names. Not memoized. Use `get-allowed-keys` (memoized version) for repeated access.
(allowed-augment-columns)Returns the allowed column names for augment datasets.
Fetches the canonical list from the metamorph.ml GitHub repository (columms-augment.edn). Augment datasets add observation-level model outputs (predictions, residuals, influence) to the original data.
See also: scicloj.metamorph.ml/augment, validate-augment-ds
Returns the allowed column names for augment datasets. Fetches the canonical list from the metamorph.ml GitHub repository (columms-augment.edn). Augment datasets add observation-level model outputs (predictions, residuals, influence) to the original data. See also: `scicloj.metamorph.ml/augment`, `validate-augment-ds`
(allowed-glance-columns)Returns the allowed column names for glance datasets.
Fetches the canonical list from the metamorph.ml GitHub repository (columms-glance.edn). Glance datasets provide one-row model summaries with goodness-of-fit measures.
See also: scicloj.metamorph.ml/glance, validate-glance-ds
Returns the allowed column names for glance datasets. Fetches the canonical list from the metamorph.ml GitHub repository (columms-glance.edn). Glance datasets provide one-row model summaries with goodness-of-fit measures. See also: `scicloj.metamorph.ml/glance`, `validate-glance-ds`
(allowed-tidy-columns)Returns the allowed column names for tidy datasets.
Fetches the canonical list from the metamorph.ml GitHub repository (columms-tidy.edn). Tidy datasets provide one-row-per-component model summaries (e.g., coefficients, statistics).
See also: scicloj.metamorph.ml/tidy, validate-tidy-ds
Returns the allowed column names for tidy datasets. Fetches the canonical list from the metamorph.ml GitHub repository (columms-tidy.edn). Tidy datasets provide one-row-per-component model summaries (e.g., coefficients, statistics). See also: `scicloj.metamorph.ml/tidy`, `validate-tidy-ds`
Memoized function that returns allowed columns for all tidy model functions.
Returns a map with keys:
:glance - Allowed columns for model summary:tidy - Allowed columns for component-wise output:augment - Allowed columns for observation-level outputResults are cached for efficient repeated access. Fetches data from GitHub on first call.
See also: validate-tidy-ds, validate-glance-ds, validate-augment-ds
Memoized function that returns allowed columns for all tidy model functions. Returns a map with keys: * `:glance` - Allowed columns for model summary * `:tidy` - Allowed columns for component-wise output * `:augment` - Allowed columns for observation-level output Results are cached for efficient repeated access. Fetches data from GitHub on first call. See also: `validate-tidy-ds`, `validate-glance-ds`, `validate-augment-ds`
(validate-augment-ds ds data)Validates that a dataset conforms to the augment model standard.
ds - Dataset to validate
data - Original dataset (for allowed column name extraction)
Returns the dataset if valid. Throws an exception if the dataset contains
column names not in the allowed augment columns list or the original data
columns (when *validate-tidy-fns* is true).
Used internally by model augment-fn implementations.
See also: scicloj.metamorph.ml/augment, allowed-augment-columns
Validates that a dataset conforms to the augment model standard. `ds` - Dataset to validate `data` - Original dataset (for allowed column name extraction) Returns the dataset if valid. Throws an exception if the dataset contains column names not in the allowed augment columns list or the original data columns (when `*validate-tidy-fns*` is true). Used internally by model augment-fn implementations. See also: `scicloj.metamorph.ml/augment`, `allowed-augment-columns`
(validate-glance-ds ds)Validates that a dataset conforms to the glance model standard.
ds - Dataset to validate
Returns the dataset if valid. Throws an exception if the dataset contains
column names not in the allowed glance columns list (when *validate-tidy-fns*
is true).
Used internally by model glance-fn implementations.
See also: scicloj.metamorph.ml/glance, allowed-glance-columns
Validates that a dataset conforms to the glance model standard. `ds` - Dataset to validate Returns the dataset if valid. Throws an exception if the dataset contains column names not in the allowed glance columns list (when `*validate-tidy-fns*` is true). Used internally by model glance-fn implementations. See also: `scicloj.metamorph.ml/glance`, `allowed-glance-columns`
(validate-tidy-ds ds)Validates that a dataset conforms to the tidy model standard.
ds - Dataset to validate
Returns the dataset if valid. Throws an exception if the dataset contains
column names not in the allowed tidy columns list (when *validate-tidy-fns*
is true).
Used internally by model tidy-fn implementations.
See also: scicloj.metamorph.ml/tidy, allowed-tidy-columns
Validates that a dataset conforms to the tidy model standard. `ds` - Dataset to validate Returns the dataset if valid. Throws an exception if the dataset contains column names not in the allowed tidy columns list (when `*validate-tidy-fns*` is true). Used internally by model tidy-fn implementations. See also: `scicloj.metamorph.ml/tidy`, `allowed-tidy-columns`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |