IPersistable<T> Interface

Provides a simple JSON-based persistence contract for fitted models.

Definition

Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
C#
public interface IPersistable<T>
where T : Object, IPersistable<T>

Type Parameters

T
The model type that implements this interface.

Properties

ModelType A short identifier for the model type (e.g. "SimpleRegression"). This value also appears in the persisted JSON spec.

Methods

FromJson Reconstructs a fitted model from a JSON string.
ToJson Serializes the fitted model to a JSON string.

See Also