{
  "$schema": "https://ambiqai.github.io/helia-ui/schema/reference-model-1.json",
  "generatedFrom": {
    "sourceCommit": "f341fb11f7f5d77a4974ba8273c4cd55d67c21f0",
    "tool": "pyref",
    "version": "1.7.3"
  },
  "language": "python",
  "modules": [
    {
      "description": "MiniResNet-v1 for channels-last spectrogram patches.\n\nAdapted from ST's MiniResNet-v1 (services revision\n0f6210ed5156126b782e1c43249063a477484b20). The default architecture matches\nits one-stack ESC-10 checkpoint with input (64, 50, 1) and ten classes.\nConstructors initialize weights; callers explicitly load trained weights using\nKeras, and own audio preprocessing, seeds, class labels and export policy.",
      "name": "miniresnet",
      "path": "helia_edge.models.miniresnet",
      "submodules": [],
      "summary": "MiniResNet-v1 for channels-last spectrogram patches.",
      "symbols": [
        {
          "description": "Construct an untrained MiniResNet-v1 classifier for NHWC spectrogram patches.\n\nHydration is explicit: ``model.load_weights(checkpoint_path)``. Only matching architecture, input\ndimensions and class count can reuse a checkpoint. This function does not read files or alter global\nsettings.",
          "examples": [],
          "id": "helia_edge.models.miniresnet.build",
          "kind": "function",
          "language": "python",
          "members": [],
          "name": "build",
          "params": [
            {
              "description": "Model parameters; ``num_classes`` is required.",
              "name": "params",
              "type": "MiniResNetV1Params"
            },
            {
              "description": "``(height, width, channels)``; flatten pooling needs fixed\nspatial dimensions.",
              "name": "input_shape",
              "type": "tuple[int | None, ...]"
            },
            {
              "default": "None",
              "description": "Static batch size; None for a dynamic batch.",
              "name": "batch_size",
              "type": "int | None"
            },
            {
              "default": "None",
              "description": "Model name; the family when None.",
              "name": "name",
              "type": "str | None"
            }
          ],
          "raises": [],
          "returns": [
            {
              "description": "keras.Model: The model, named ``miniresnet`` unless ``name`` is given.",
              "type": "keras.Model"
            }
          ],
          "signature": "build(\n    params: MiniResNetV1Params,\n    input_shape: tuple[int | None, ...],\n    *,\n    batch_size: int | None = None,\n    name: str | None = None,\n) -> keras.Model",
          "source": {
            "line": 36,
            "path": "helia_edge/models/miniresnet.py",
            "url": "https://github.com/AmbiqAI/helia-edge/blob/f341fb11f7f5d77a4974ba8273c4cd55d67c21f0/helia_edge/models/miniresnet.py#L36"
          },
          "summary": "Construct an untrained MiniResNet-v1 classifier for NHWC spectrogram patches."
        }
      ]
    }
  ],
  "name": "helia_edge"
}
