协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
transition_skill_batching【开发与工程】Build and validate aligned CIC state-transition and continuous skill batches for contrastive intrinsic control recovery experiments.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a CIC-style experiment needs to construct tau = concat(s, s_next) and preserve alignment between transition tuples and continuous skill vectors. Do not use it for downstream reward evaluation or for contrastive loss computation; those belong to separate skills.
states: two-dimensional numeric rows representing current states.next_states: two-dimensional numeric rows with the same shape as states.skills: two-dimensional numeric rows with the same batch size.batch_size, state_dim, skill_dim, and seed.tau: transition tuples formed by concatenating each state and next state.metadata: batch size, dimensions, and source label.states and next_states have identical shapes.skills shares the same batch size.Run:
python scripts/transition_batch.py --demo
python tests/test_transition_batch.py
This skill does not estimate rewards, train encoders, or sample from an RL replay buffer. It only preserves the transition-skill data contract needed by CIC.