[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71B34GPGMYBGA7NN38TGS0V":3,"skill-same:01M71B34GPGMYBGA7NN38TGS0V":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":42,"install":43,"resources":56},"01M71B34GPGMYBGA7NN38TGS0V","cellxgene-census-ml-streaming",null,"Stream a selected SOMA expression matrix into a PyTorch-compatible training workflow with TileDB-SOMA-ML.","strmt7\u002Fai_skills_collection_benchmarked","strmt7","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F28989754?v=4","01M71929P914SWKQ7QJV24NBBY","Stratos","01M71929Q9VGKQ7PWYR95VSQQQ",1,"MIT","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Frepaired\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fcellxgene-census-ml-streaming\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Frepaired\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fcellxgene-census-ml-streaming\u002FSKILL.md",[],[20,21,22,23,24,25,26,27,28,29,30],"ml","streaming","cellxgene census","cellxgene census ml streaming","workflow","pytorch","training","expression","with","matrix","stream","2026-11-10 10:12:30",false,"---\nname: cellxgene-census-ml-streaming\ndescription: Stream a selected SOMA expression matrix into a PyTorch-compatible training workflow with TileDB-SOMA-ML.\nlicense: MIT\n---\n\n# CELLxGENE Census ML streaming\n\nFor every task, apply Caveman. Before broad repository navigation, use\nCocoIndex Code; for web-page research, use Crawl4AI. Read and follow the\nrepository-root `docs\u002Fagent-tools.md` and its linked skills, and retain the\nrequired execution evidence.\n\nThe pinned Census skill imports loaders from `cellxgene_census.experimental.ml`;\nthat module is absent in Census 1.18.0. Use the current TileDB-SOMA-ML API\nfor a qualified dependency set. This focused guidance covers the local streaming\ninterface, not the entire source skill or the validity of a trained model.\n\n## Stream a query\n\nGiven an open SOMA `experiment`, `obs_query` and `var_query` selections (or\n`None`), integer `seed`, positive `batch_size`, and a caller-supplied\n`process_train_batch(features, obs)` function:\n\n```python\nfrom tiledbsoma_ml import ExperimentDataset, experiment_dataloader\n\nwith experiment.axis_query(\"RNA\", obs_query=obs_query, var_query=var_query) as query:\n    dataset = ExperimentDataset(\n        query,\n        layer_name=\"raw\",\n        obs_column_names=[\"soma_joinid\", \"class_id\"],\n        batch_size=batch_size,\n        shuffle=True,\n        seed=seed,\n    )\n    train, test = dataset.random_split(0.75, 0.25, seed=seed)\n    if not len(train.query_ids.obs_joinids) or not len(test.query_ids.obs_joinids):\n        raise ValueError(\"Both training and test selections must contain cells\")\n    for features, obs in experiment_dataloader(train, num_workers=0):\n        process_train_batch(features, obs)\n```\n\nReplace `class_id` with an actual observation column appropriate to the task.\nThe loader yields a NumPy feature batch and a pandas metadata batch, not a\nmapping with `\"X\"` and `\"obs\"` keys. Preserve the join IDs and feature ordering;\nencode labels and convert batches to tensors in the consumer. Record the Census\nbuild, query, input layer, split and seed. Keep the experiment open while reading.\n\nThe example splits individual observations for demonstration. For estimates of\ngeneralization across donors, samples or datasets, create appropriate grouped\ntraining and test queries instead; a random cell split can leak related data.\nCheck class representation, fit preprocessing and label encoders on training\ndata only, and handle unseen labels explicitly. A split or one training step does\nnot validate the biology.\n\nSee the official [Census PyTorch tutorial](https:\u002F\u002Fchanzuckerberg.github.io\u002Fcellxgene-census\u002Fnotebooks\u002Fexperimental\u002Fpytorch.html).\n","# CELLxGENE Census ML streaming\n\nFor every task, apply Caveman. Before broad repository navigation, use\nCocoIndex Code; for web-page research, use Crawl4AI. Read and follow the\nrepository-root `docs\u002Fagent-tools.md` and its linked skills, and retain the\nrequired execution evidence.\n\nThe pinned Census skill imports loaders from `cellxgene_census.experimental.ml`;\nthat module is absent in Census 1.18.0. Use the current TileDB-SOMA-ML API\nfor a qualified dependency set. This focused guidance covers the local streaming\ninterface, not the entire source skill or the validity of a trained model.\n\n## Stream a query\n\nGiven an open SOMA `experiment`, `obs_query` and `var_query` selections (or\n`None`), integer `seed`, positive `batch_size`, and a caller-supplied\n`process_train_batch(features, obs)` function:\n\n```python\nfrom tiledbsoma_ml import ExperimentDataset, experiment_dataloader\n\nwith experiment.axis_query(\"RNA\", obs_query=obs_query, var_query=var_query) as query:\n    dataset = ExperimentDataset(\n        query,\n        layer_name=\"raw\",\n        obs_column_names=[\"soma_joinid\", \"class_id\"],\n        batch_size=batch_size,\n        shuffle=True,\n        seed=seed,\n    )\n    train, test = dataset.random_split(0.75, 0.25, seed=seed)\n    if not len(train.query_ids.obs_joinids) or not len(test.query_ids.obs_joinids):\n        raise ValueError(\"Both training and test selections must contain cells\")\n    for features, obs in experiment_dataloader(train, num_workers=0):\n        process_train_batch(features, obs)\n```\n\nReplace `class_id` with an actual observation column appropriate to the task.\nThe loader yields a NumPy feature batch and a pandas metadata batch, not a\nmapping with `\"X\"` and `\"obs\"` keys. Preserve the join IDs and feature ordering;\nencode labels and convert batches to tensors in the consumer. Record the Census\nbuild, query, input layer, split and seed. Keep the experiment open while reading.\n\nThe example splits individual observations for demonstration. For estimates of\ngeneralization across donors, samples or datasets, create appropriate grouped\ntraining and test queries instead; a random cell split can leak related data.\nCheck class representation, fit preprocessing and label encoders on training\ndata only, and handle unseen labels explicitly. A split or one training step does\nnot validate the biology.\n\nSee the official [Census PyTorch tutorial](https:\u002F\u002Fchanzuckerberg.github.io\u002Fcellxgene-census\u002Fnotebooks\u002Fexperimental\u002Fpytorch.html).\n",{"name":5,"license":15,"description":7},"main","5c95bcac4646c5aed06bd9aed5235cfc7985aafc","included\u002Frepaired\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fcellxgene-census-ml-streaming",0,"https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked","https:\u002F\u002Fgithub.com\u002Fstrmt7","2026-11-15 03:31:57",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add strmt7\u002Fai_skills_collection_benchmarked --skill cellxgene-census-ml-streaming",{"tool":49,"command":50},"bunx","bunx skills add strmt7\u002Fai_skills_collection_benchmarked --skill cellxgene-census-ml-streaming",{"tool":52,"command":53},"pnpm","pnpm dlx skills add strmt7\u002Fai_skills_collection_benchmarked --skill cellxgene-census-ml-streaming","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Frepaired\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fcellxgene-census-ml-streaming\u002FSKILL.md",true,[57,61,67],{"path":58,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":16},"LICENSE","许可证",1068,{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"provenance\u002Foriginal.SKILL.md","REFERENCE","参考文档",15438,"https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Frepaired\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fcellxgene-census-ml-streaming\u002Fprovenance\u002Foriginal.SKILL.md",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"repair.json",1606,"https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Frepaired\u002Fskills\u002Fby-category\u002Fscience-research-data-analysis\u002Flatest-release-community\u002Fcellxgene-census-ml-streaming\u002Frepair.json",[72,82,90,98,106,114],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":77,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":81},"01M7DW2581D1Y3DDP19WB9YDH5","makefile-generator-project-wrappers","Repair Python, Java and generic GNU Make wrappers that report false success, miss changed inputs or clean dependency environments. Preserve the actual project build system and test runner; use when adapting the collection's original Makefile generator.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Frepaired\u002Fskills\u002Fby-category\u002Fcoding-refactoring-repository-automation\u002Flatest-release-devops\u002Fmakefile-generator-project-wrappers\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Frepaired\u002Fskills\u002Fby-category\u002Fcoding-refactoring-repository-automation\u002Flatest-release-devops\u002Fmakefile-generator-project-wrappers\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":81},"01M7DW2211BEE12DKN7WH7W47N","makefile-generator-go","Author or repair GNU Make wrappers for Go modules, retaining Go's dependency discovery and build cache. Use when wrapper timestamps hide embedded-resource changes or build failures; preserve the project's existing build system and real test commands.","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Frepaired\u002Fskills\u002Fby-category\u002Fcoding-refactoring-repository-automation\u002Flatest-release-devops\u002Fmakefile-generator-go\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Frepaired\u002Fskills\u002Fby-category\u002Fcoding-refactoring-repository-automation\u002Flatest-release-devops\u002Fmakefile-generator-go\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":81},"01M7DW1XG2S6E2Y8PHH4X8ZDJB","strategic-compact-resume","Checkpoint and resume long agent work when context pressure or a handoff could lose constraints, verified progress, or ownership of active jobs.","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fimproved\u002Fskills\u002Fstrategic-compact-resume\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fimproved\u002Fskills\u002Fstrategic-compact-resume\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":81},"01M7DW1J8H38SF679MPPAY8HCF","makefile-generator-cpp","Author or repair GNU Make builds for C++ executables, preserving compiler\u002Flinker flags, header dependencies and real project test contracts. Use the optional scaffold for a flat src directory; retain an existing build system unless the task requires changing it.","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fimproved\u002Fskills\u002Fmakefile-generator-cpp\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fimproved\u002Fskills\u002Fmakefile-generator-cpp\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":81},"01M7DW1EA5ZBYTMGPB4JG1F172","eval-harness-integrity","Design and verify matched coding-agent evaluations when comparing skills, prompts, models, or harnesses using executable acceptance checks and native result evidence.","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fimproved\u002Fskills\u002Feval-harness-integrity\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fimproved\u002Fskills\u002Feval-harness-integrity\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":117,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":81},"01M7DW1BG1Y8KTWTXQ86VQXYRJ","eval-harness-evidence","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fimproved\u002Fskills\u002Feval-harness-evidence\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fstrmt7\u002Fai_skills_collection_benchmarked\u002Fblob\u002Fmain\u002Fincluded\u002Fimproved\u002Fskills\u002Feval-harness-evidence\u002FSKILL.md",[],[]]