Tinkex.Types.Checkpoint (Tinkex v0.3.4)

View Source

Checkpoint metadata.

Represents a saved model checkpoint with its metadata. Timestamps are parsed into DateTime.t() when ISO-8601 formatted; otherwise the original string is preserved.

Summary

Functions

Convert a map (from JSON) to a Checkpoint struct.

Types

t()

@type t() :: %Tinkex.Types.Checkpoint{
  checkpoint_id: String.t(),
  checkpoint_type: String.t(),
  public: boolean(),
  size_bytes: integer() | nil,
  time: DateTime.t() | String.t() | nil,
  tinker_path: String.t(),
  training_run_id: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Convert a map (from JSON) to a Checkpoint struct.