算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
create-datasets【设计与创意】Routes Petastorm dataset creation, schema design, metadata repair, copy-and-filter workflows, and row-group indexing from Spark and existing Parquet data.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this route when the task starts from raw rows, a Spark DataFrame, or an existing Parquet store that needs Petastorm metadata, copying, filtering, schema repair, or row-group indexing.
Unischema and UnischemaFieldScalarCodec, NdarrayCodec, CompressedNdarrayCodec, CompressedImageCodecdict_to_spark_rowmaterialize_datasetget_schema and get_schema_from_dataset_urlcopy_datasetgenerate_petastorm_metadatabuild_rowgroup_indexSingleFieldIndexer and FieldNotNullIndexerpetastorm-copy-dataset.py and petastorm-generate-metadata.py commandsUse sub-skills/read-datasets/ for reader work.
Use sub-skills/spark-converter/ when the task is caching a Spark DataFrame for later loading.
references/workflows.md for writing, copying, metadata repair, and indexing recipesreferences/api-reference.md for verified signatures and behaviorreferences/cli-reference.md for the dataset copy and metadata commandsreferences/data-formats.md for the on-disk layout and metadata keysreferences/troubleshooting.md for schema, Spark, URL, and metadata failuresscripts/smoke_make_minimal_dataset.py for a tiny write smoke testscripts/smoke_copy_dataset.py for a copy-and-filter smoke testscripts/smoke_generate_metadata.py for a metadata-repair smoke testUnischema and write through materialize_dataset.copy_dataset for subset/filter/repartition jobs.generate_petastorm_metadata.build_rowgroup_index with the matching indexer type.materialize_dataset is the writer-side contract that stamps Petastorm metadata onto the Parquet output.copy_dataset can narrow columns and drop rows with nulls in selected fields.generate_petastorm_metadata can infer the schema from the dataset when metadata already exists, or use a supplied unischema class string.build_rowgroup_index expects compatible indexers and a writable dataset metadata location.Unischema.dict_to_spark_row.materialize_dataset.file://, hdfs://, s3://, or compatible URL.generate_petastorm_metadata or the CLI wrapper.make_reader to confirm the repair.build_rowgroup_index from a Spark context.read-datasets.spark-converter.