Liking cljdoc? Tell your friends :D

scicloj.metamorph.ml.evaluation-handler


default-result-dissoc-in-fnclj

(default-result-dissoc-in-fn result)

default evaluation-handler-fn

default evaluation-handler-fn
sourceraw docstring

default-result-dissoc-in-seqclj

Default sequence of key paths to remove from evaluation results.

Removes large data objects (datasets, model internals) while preserving metrics, options, and essential model metadata. Removes:

  • Dataset objects from fit/train/test contexts
  • Target and feature datasets from model
  • Smile-specific model internals (serialized bytes, dataframes)

Used by default-result-dissoc-in-fn to clean results for storage/analysis.

Default sequence of key paths to remove from evaluation results.

Removes large data objects (datasets, model internals) while preserving metrics,
options, and essential model metadata. Removes:

* Dataset objects from fit/train/test contexts
* Target and feature datasets from model
* Smile-specific model internals (serialized bytes, dataframes)

Used by `default-result-dissoc-in-fn` to clean results for storage/analysis.
sourceraw docstring

example-nippy-handlerclj

(example-nippy-handler files output-dir result-reduce-fn)

Creates an evaluation result handler that serializes results to Nippy format.

  • files - Atom to track generated file paths
  • output-dir - Directory path for output files
  • result-reduce-fn - Function to apply to results after serialization

Returns a handler function that removes non-freezable data (:pipe-fn, :metric-fn), serializes the result to a UUID-named .nippy file, and applies result-reduce-fn.

See also: scicloj.metamorph.ml/evaluate-pipelines

Creates an evaluation result handler that serializes results to Nippy format.

- `files` - Atom to track generated file paths
- `output-dir` - Directory path for output files
- `result-reduce-fn` - Function to apply to results after serialization

Returns a handler function that removes non-freezable data (`:pipe-fn`, `:metric-fn`),
serializes the result to a UUID-named .nippy file, and applies `result-reduce-fn`.

See also: [[scicloj.metamorph.ml/evaluate-pipelines]]
sourceraw docstring

get-source-informationclj

(get-source-information qualified-pipe-decl pipe-ns pipeline-source-file)

Creates metadata about a pipeline including function sources and classpath.

  • qualified-pipe-decl - Pipeline declaration with fully-qualified keywords
  • pipe-ns - Namespace symbol for the pipeline
  • pipeline-source-file - Path to the source file containing the pipeline

Returns a map with :fn-sources (source code of all pipeline functions) and :classpath (JVM classpath at evaluation time).

Creates metadata about a pipeline including function sources and classpath.

- `qualified-pipe-decl` - Pipeline declaration with fully-qualified keywords
- `pipe-ns` - Namespace symbol for the pipeline
- `pipeline-source-file` - Path to the source file containing the pipeline

Returns a map with `:fn-sources` (source code of all pipeline functions) and
`:classpath` (JVM classpath at evaluation time).
sourceraw docstring

metrics-and-model-keep-fnclj

(metrics-and-model-keep-fn result)

evaluation-handler-fn which keeps only train-metric, test-metric and the fitted model map, which contains as well the model object as byte array (amon other things)

evaluation-handler-fn which keeps only train-metric, test-metric and 
the fitted model map, which contains as well the model object as byte array
(amon other things)
sourceraw docstring

metrics-and-options-keep-fnclj

(metrics-and-options-keep-fn result)

evaluation-handler-fn which keeps only train-metric, test-metric and and the options

evaluation-handler-fn which keeps only train-metric, test-metric and and the options
sourceraw docstring

metrics-keep-fnclj

(metrics-keep-fn result)

evaluation-handler-fn which keeps only train-metric, test-metric

evaluation-handler-fn which keeps only train-metric, test-metric
sourceraw docstring

qualify-keywordsclj

(qualify-keywords pipe-decl pipe-ns)

Converts unqualified keywords in a pipeline declaration to fully-qualified form.

  • pipe-decl - Pipeline declaration (nested data structure)
  • pipe-ns - Namespace symbol for keyword resolution

Returns the pipeline declaration with all resolvable keywords converted to namespace-qualified keywords (e.g., :fn-name becomes :my.ns/fn-name).

Used to make pipeline declarations portable across namespaces.

Converts unqualified keywords in a pipeline declaration to fully-qualified form.

- `pipe-decl` - Pipeline declaration (nested data structure)
- `pipe-ns` - Namespace symbol for keyword resolution

Returns the pipeline declaration with all resolvable keywords converted to
namespace-qualified keywords (e.g., `:fn-name` becomes `:my.ns/fn-name`).

Used to make pipeline declarations portable across namespaces.
sourceraw docstring

qualify-pipelinesclj

(qualify-pipelines pipe-decls pipe-ns)

Qualifies all keywords in a sequence of pipeline declarations.

  • pipe-decls - Sequence of pipeline declarations
  • pipe-ns - Namespace symbol for keyword resolution

Returns a vector of qualified pipeline declarations. Applies qualify-keywords to each pipeline in the sequence.

See also: scicloj.metamorph.ml.evaluation-handler/qualify-keywords

Qualifies all keywords in a sequence of pipeline declarations.

- `pipe-decls` - Sequence of pipeline declarations
- `pipe-ns` - Namespace symbol for keyword resolution

Returns a vector of qualified pipeline declarations. Applies `qualify-keywords`
to each pipeline in the sequence.

See also: `scicloj.metamorph.ml.evaluation-handler/qualify-keywords`
sourceraw docstring

result-dissoc-in-seq--allclj

Maximum cleanup: removes almost everything except core metrics and model type.

Removes:

  • contexts
  • timing data
  • probability distributions
  • pipeline declarations
  • functions
  • source information

Keeps only the essential metric values and model type.

Most aggressive cleanup option. Used by result-dissoc-in-seq--all-fn.

Maximum cleanup: removes almost everything except core metrics and model type.

Removes: 
 
- contexts 
- timing data
- probability distributions 
- pipeline declarations
- functions 
- source information
 
Keeps only the essential metric values and
model type.

Most aggressive cleanup option. Used by `result-dissoc-in-seq--all-fn`.
sourceraw docstring

result-dissoc-in-seq--all-fnclj

(result-dissoc-in-seq--all-fn result)

evaluation-handler-fn which removes all :ctx

evaluation-handler-fn which removes all :ctx
sourceraw docstring

result-dissoc-in-seq--ctxsclj

Sequence of paths to remove all context objects from evaluation results.

Removes fit, train, and test contexts entirely, keeping only metrics and metadata. More aggressive cleanup than default-result-dissoc-in-seq.

Used by result-dissoc-in-seq-ctx-fn.

Sequence of paths to remove all context objects from evaluation results.

Removes fit, train, and test contexts entirely, keeping only metrics and metadata.
More aggressive cleanup than `default-result-dissoc-in-seq`.

Used by `result-dissoc-in-seq-ctx-fn`.
sourceraw docstring

result-dissoc-in-seq-ctx-fnclj

(result-dissoc-in-seq-ctx-fn result)

evaluation-handler-fn which removes all :ctx

evaluation-handler-fn which removes all :ctx
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close