Raxol.Core.ErrorPatternLearner.Persistence (Raxol v2.6.0)

View Source

Load, save, import, and export functions for ErrorPatternLearner. All I/O is isolated here; the GenServer delegates persistence work to this module.

Summary

Functions

Exports the learner state in the given format (:json | :csv | other).

Returns the initial optimization correlations map.

Loads learned patterns from disk, returning an initial learner state struct.

Parses imported JSON pattern data, returning a patterns map.

Persists the current learner state to disk synchronously.

Persists asynchronously in a Task.

Returns the configured storage directory.

Functions

export(state, format)

Exports the learner state in the given format (:json | :csv | other).

initial_optimization_correlations()

Returns the initial optimization correlations map.

load_initial_state(struct_module)

Loads learned patterns from disk, returning an initial learner state struct.

parse_imported(patterns_data)

Parses imported JSON pattern data, returning a patterns map.

persist(state)

Persists the current learner state to disk synchronously.

persist_async(state)

Persists asynchronously in a Task.

storage_dir()

Returns the configured storage directory.