{
  "$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": "Batchwise random layer choice with captured branches and owned RNG.",
      "name": "random_choice",
      "path": "helia_edge.layers.preprocessing.random_choice",
      "submodules": [],
      "summary": "Batchwise random layer choice with captured branches and owned RNG.",
      "symbols": [
        {
          "description": "Choose one layer for a whole batch; branches must have compatible outputs.\n\nPer-example layer choice was never implemented and remains unsupported.\nThe next-major default is the supported ``batchwise=True`` mode.\n\n\n\nBase class: [BaseAugmentation](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation).\n\nInherited from [BaseAugmentation](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation): [augment_masks()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_masks), [augment_sample()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_sample), [augment_samples()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_samples), [augment_targets()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_targets), [get_random_transformations()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.get_random_transformations).",
          "examples": [],
          "id": "helia_edge.layers.preprocessing.random_choice.RandomChoice",
          "kind": "class",
          "language": "python",
          "members": [
            {
              "description": "",
              "examples": [],
              "id": "helia_edge.layers.preprocessing.random_choice.RandomChoice.layers",
              "kind": "attribute",
              "language": "python",
              "members": [],
              "name": "layers",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "layers = layers",
              "source": {
                "line": 23,
                "path": "helia_edge/layers/preprocessing/random_choice.py",
                "url": "https://github.com/AmbiqAI/helia-edge/blob/f341fb11f7f5d77a4974ba8273c4cd55d67c21f0/helia_edge/layers/preprocessing/random_choice.py#L23"
              },
              "summary": ""
            },
            {
              "description": "",
              "examples": [],
              "id": "helia_edge.layers.preprocessing.random_choice.RandomChoice.batchwise",
              "kind": "attribute",
              "language": "python",
              "members": [],
              "name": "batchwise",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "batchwise = batchwise",
              "source": {
                "line": 24,
                "path": "helia_edge/layers/preprocessing/random_choice.py",
                "url": "https://github.com/AmbiqAI/helia-edge/blob/f341fb11f7f5d77a4974ba8273c4cd55d67c21f0/helia_edge/layers/preprocessing/random_choice.py#L24"
              },
              "summary": ""
            },
            {
              "description": "",
              "examples": [],
              "id": "helia_edge.layers.preprocessing.random_choice.RandomChoice.build",
              "kind": "method",
              "language": "python",
              "members": [],
              "name": "build",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "build(input_shape)",
              "source": {
                "line": 26,
                "path": "helia_edge/layers/preprocessing/random_choice.py",
                "url": "https://github.com/AmbiqAI/helia-edge/blob/f341fb11f7f5d77a4974ba8273c4cd55d67c21f0/helia_edge/layers/preprocessing/random_choice.py#L26"
              },
              "summary": ""
            },
            {
              "description": "",
              "examples": [],
              "id": "helia_edge.layers.preprocessing.random_choice.RandomChoice.batch_augment",
              "kind": "method",
              "language": "python",
              "members": [],
              "name": "batch_augment",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "batch_augment(inputs, transformations=None)",
              "source": {
                "line": 32,
                "path": "helia_edge/layers/preprocessing/random_choice.py",
                "url": "https://github.com/AmbiqAI/helia-edge/blob/f341fb11f7f5d77a4974ba8273c4cd55d67c21f0/helia_edge/layers/preprocessing/random_choice.py#L32"
              },
              "summary": ""
            },
            {
              "description": "",
              "examples": [],
              "id": "helia_edge.layers.preprocessing.random_choice.RandomChoice.call",
              "kind": "method",
              "language": "python",
              "members": [],
              "name": "call",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "call(inputs, training=None, transformations=None)",
              "source": {
                "line": 41,
                "path": "helia_edge/layers/preprocessing/random_choice.py",
                "url": "https://github.com/AmbiqAI/helia-edge/blob/f341fb11f7f5d77a4974ba8273c4cd55d67c21f0/helia_edge/layers/preprocessing/random_choice.py#L41"
              },
              "summary": ""
            },
            {
              "description": "",
              "examples": [],
              "id": "helia_edge.layers.preprocessing.random_choice.RandomChoice.get_config",
              "kind": "method",
              "language": "python",
              "members": [],
              "name": "get_config",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "get_config()",
              "source": {
                "line": 49,
                "path": "helia_edge/layers/preprocessing/random_choice.py",
                "url": "https://github.com/AmbiqAI/helia-edge/blob/f341fb11f7f5d77a4974ba8273c4cd55d67c21f0/helia_edge/layers/preprocessing/random_choice.py#L49"
              },
              "summary": ""
            },
            {
              "description": "`classmethod`",
              "examples": [],
              "id": "helia_edge.layers.preprocessing.random_choice.RandomChoice.from_config",
              "kind": "method",
              "language": "python",
              "members": [],
              "name": "from_config",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "from_config(config)",
              "source": {
                "line": 56,
                "path": "helia_edge/layers/preprocessing/random_choice.py",
                "url": "https://github.com/AmbiqAI/helia-edge/blob/f341fb11f7f5d77a4974ba8273c4cd55d67c21f0/helia_edge/layers/preprocessing/random_choice.py#L56"
              },
              "summary": ""
            }
          ],
          "name": "RandomChoice",
          "params": [],
          "raises": [],
          "returns": [],
          "signature": "RandomChoice(layers: list[keras.Layer], batchwise: bool = True, **kwargs={})",
          "source": {
            "line": 9,
            "path": "helia_edge/layers/preprocessing/random_choice.py",
            "url": "https://github.com/AmbiqAI/helia-edge/blob/f341fb11f7f5d77a4974ba8273c4cd55d67c21f0/helia_edge/layers/preprocessing/random_choice.py#L9"
          },
          "summary": "Choose one layer for a whole batch; branches must have compatible outputs."
        }
      ]
    }
  ],
  "name": "helia_edge"
}
