Skip to content

Conversation

@HiroIshida
Copy link
Contributor

@HiroIshida HiroIshida commented Jul 25, 2025

What this does

This PR simply fixes the documentation.

In PR #550, it seems that all the policy configuration starts to inherit from the base class PreTrainedConfig which has input_features and output_features as attributes, and input_shapes and output_shapes are removed from each subclasses instead. However, the docstrings update regarding this is not included in the PR. Also, the content of the input_features and output_features are now PolicyFeature so I tweaked the docstrings.

Similary, input_normalization_modes and output_normalization_modes are outdated and now normalization_mapping do that role. So I changed the docstrings accordingly.

This PR, hence, complements the PR (cc, @aliberts )

Copilot AI review requested due to automatic review settings July 25, 2025 12:26

This comment was marked as outdated.

@HiroIshida HiroIshida requested a review from Copilot July 25, 2025 12:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates documentation across policy configuration files to replace outdated parameter names with their current equivalents. Following a previous change where policy configurations inherited from PreTrainedConfig, the parameter names changed from input_shapes/output_shapes to input_features/output_features, but the documentation wasn't updated accordingly.

  • Updates docstrings in all policy configuration classes to use correct parameter names
  • Ensures documentation consistency across the codebase
  • Corrects references in both class-level docstrings and parameter descriptions

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/lerobot/policies/vqbet/configuration_vqbet.py Updates VQBeTConfig docstring to reference input_features and output_features
src/lerobot/policies/tdmpc/configuration_tdmpc.py Updates TDMPCConfig docstring to reference input_features and output_features
src/lerobot/policies/diffusion/configuration_diffusion.py Updates DiffusionConfig docstring to reference input_features and output_features
src/lerobot/policies/act/configuration_act.py Updates ACTConfig docstring to reference input_features and output_features
src/lerobot/configs/policies.py Updates base PreTrainedConfig docstring to reference input_features and output_features

@HiroIshida HiroIshida marked this pull request as draft July 25, 2025 15:20
@CarolinePascal CarolinePascal added bug Something isn’t working correctly documentation Improvements or fixes to the project’s docs labels Jul 28, 2025
@CarolinePascal
Copy link
Collaborator

Hi @HiroIshida,

Good catch with this PR ! I see you've marked it as a draft, let me know when it's completed and ready for merge ;)

Best,

Caroline.

@HiroIshida HiroIshida force-pushed the update_docs_shapes_to_features branch from 9c63290 to 4602efe Compare July 29, 2025 10:40
@HiroIshida HiroIshida force-pushed the update_docs_shapes_to_features branch from 4602efe to 96419f3 Compare July 29, 2025 11:00
@HiroIshida HiroIshida changed the title docs: update document input/output_shapes -> input/output_features docs: update document in response to Simplify configs PR Jul 29, 2025
@HiroIshida HiroIshida marked this pull request as ready for review July 29, 2025 11:09
@HiroIshida
Copy link
Contributor Author

@CarolinePascal
Thanks! The reason why I made this to draft was I found that similar docstrings mismatch of normalization_mapping, so I now fixed the docstring accordingly, and ready for your review

@HiroIshida
Copy link
Contributor Author

@CarolinePascal ping

@imstevenpmwork imstevenpmwork self-assigned this Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn’t working correctly documentation Improvements or fixes to the project’s docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants