snorkelflow.sdk.Benchmark
- class snorkelflow.sdk.Benchmark(benchmark_uid)
Bases:
object
SDK client for benchmark operations
- __init__(benchmark_uid)
Initialize a Benchmark object for SDK operations
Parameters
Parameters
Name Type Default Info benchmark_uid int
The unique identifier of the benchmark.
\_\_init\_\_
__init__
Methods
__init__
(benchmark_uid)Initialize a Benchmark object for SDK operations export_config
(filepath[, format])Export benchmark configuration to the specified format and write to the provided filepath. - export_config(filepath, format=BenchmarkExportFormat.JSON)
Export benchmark configuration to the specified format and write to the provided filepath.
Parameters
Parameters
Return type
Return type
None
Name Type Default Info filepath str
The filepath to write the exported config to. format BenchmarkExportFormat
<BenchmarkExportFormat.JSON: 'json'>
The format to export the config to. Currently only JSON is supported. Examples
>>> benchmark = Benchmark(123)
>>> benchmark.export_config("benchmark_config.json")
export\_config
export_config