steamship.plugin.inputs package#
Submodules#
steamship.plugin.inputs.block_and_tag_plugin_input module#
steamship.plugin.inputs.export_plugin_input module#
steamship.plugin.inputs.file_import_plugin_input module#
steamship.plugin.inputs.raw_block_and_tag_plugin_input module#
steamship.plugin.inputs.raw_block_and_tag_plugin_input_with_preallocated_blocks module#
steamship.plugin.inputs.raw_data_plugin_input module#
- class steamship.plugin.inputs.raw_data_plugin_input.RawDataPluginInput(*, pluginInstance: str = None, data: Any = None, defaultMimeType: MimeTypes = None)[source]#
Bases:
CamelModel
Input for a plugin that accepts raw data, plus a mime type.
A plugin author need only ever concern themselves with two fields: - data - Raw bytes ` default_mime_type - The best guess as to data’s MIME Type unless otherwise known to be different.
In practice, however, the lifecycle of this object involves a bit more under the hood:
Potentially Base64 Decoding Data. When decoding from a dict, the data field is assumed to be Base64 encoded. This is to support JSON as a transport encoding over the wire. The constructor automatically performs the decoding, and the Steamship Engine automatically performs the encoding, so the Plugin Author can mostly ignore this fact.
Potentially late-fetching the `data` from a `url`. Some files are too large to comfortably send as Base64 within JSON. The Steamship Engine sometimes chooses to send an empty data field paired with a non-empty url field. When this happens, the constructor proactively, synchronously fetches the contents of that url and assigns it to the data field, throwing a SteamshipError if the fetch fails. Again, this is done automatically so the Plugin Author can mostly ignore this fact.
steamship.plugin.inputs.train_plugin_input module#
- class steamship.plugin.inputs.train_plugin_input.TrainPluginInput(*, pluginInstance: str, trainingEpochs: int | None = None, testingHoldoutPercent: float | None = None, testSplitSeed: int | None = None, trainingParams: dict | None = None, inferenceParams: dict | None = None, trainingDataUrl: str | None = None)[source]#
Bases:
CamelModel
This is the object passed as input to a trainable operation, stored as the input field of a train task.
steamship.plugin.inputs.training_parameter_plugin_input module#
- class steamship.plugin.inputs.training_parameter_plugin_input.TrainingParameterPluginInput(*, pluginInstance: str | None = None, exportPluginInput: ExportPluginInput | None = None, trainingEpochs: int | None = None, testingHoldoutPercent: float | None = None, testSplitSeed: int | None = None, trainingParams: Dict | None = None, inferenceParams: Dict | None = None)[source]#
Bases:
CamelModel
- export_plugin_input: ExportPluginInput | None#