View source on GitHub |
API for generating data statistics.
tfdv.GenerateStatistics(
options: tfdv.StatsOptions
= stats_options.StatsOptions()
) -> None
Example:
with beam.Pipeline(runner=...) as p:
_ = (p
| 'ReadData' >> tfx_bsl.public.tfxio.TFExampleRecord(data_location)
.BeamSource()
| 'GenerateStatistics' >> GenerateStatistics()
| 'WriteStatsOutput' >> tfdv.WriteStatisticsToTFRecord(output_path))
Args | |
---|---|
options
|
tfdv.StatsOptions for generating data statistics.
|
Raises | |
---|---|
TypeError
|
If options is not of the expected type. |
Class Variables | |
---|---|
pipeline |
None
|