Member Junction
    Preparing search index...

    In-memory IArtifactStore for unit tests. Stores bytes in a map keyed by a generated id and returns that id. No database, no MJStorage.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    Saved: Map<string, { Bytes: Uint8Array; Name: string }> = ...

    Saved artifacts, keyed by the returned file id.

    Methods

    • Persist the serialized artifact bytes under a name and return the storage file id to record on the model.

      Parameters

      • bytes: Uint8Array

        the serialized model artifact

      • name: string

        a human-readable artifact name (e.g. model-<pipeline>-v<version>.bin)

      Returns Promise<string>

      the file id to store in MLModel.ArtifactFileID