Skip to content

docs: general structure refactor#90

Merged
sharpenb merged 32 commits into
mainfrom
docs/general-structure-refactor
May 13, 2025
Merged

docs: general structure refactor#90
sharpenb merged 32 commits into
mainfrom
docs/general-structure-refactor

Conversation

@davidberenstein1957

@davidberenstein1957 davidberenstein1957 commented May 4, 2025

Copy link
Copy Markdown
Member

Description

Available https://docs.pruna.ai/en/docs-general-structure-refactor/

Related Issue

Fixes #55

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Additional Notes

@davidberenstein1957 davidberenstein1957 marked this pull request as ready for review May 4, 2025 14:18
@davidberenstein1957 davidberenstein1957 mentioned this pull request May 4, 2025
10 tasks
@davidberenstein1957 davidberenstein1957 requested review from begumcig, johnrachwan123 and nifleisch and removed request for begumcig May 4, 2025 14:23
@begumcig begumcig self-requested a review May 5, 2025 10:06
@davidberenstein1957

Copy link
Copy Markdown
Member Author

@begumcig begumcig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks fantastic! I really love the new structure for the API and user manuals, it’s so much clearer now. The graphs were especially super helpful for understanding how the modules fit together. I’ve just added a few small comments in the Evaluation section. Great work overall!!!

Comment thread docs/user_manual/evaluate.rst
Comment thread docs/user_manual/evaluate.rst
Comment thread docs/user_manual/evaluate.rst
Comment thread docs/user_manual/evaluate.rst Outdated
Comment thread docs/user_manual/evaluate.rst Outdated
Comment thread docs/user_manual/evaluate.rst
@davidberenstein1957 davidberenstein1957 force-pushed the docs/general-structure-refactor branch from de885cf to 049278c Compare May 6, 2025 09:19

@johannaSommer johannaSommer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am in love with this documentation update, thanks a lot for all your hard work! Just left a few comments to consider in one more iteration, but its almost flawless already 🌻

Comment thread README.md Outdated
Comment thread docs/user_manual/configure.rst
Comment thread docs/user_manual/configure.rst Outdated
Comment thread docs/user_manual/configure.rst Outdated
- Updated test cases in `test_code_blocks.py` to dynamically generate parameters for user manuals and contributions, excluding the 'dataset' tutorial.
- Improved maintainability by leveraging glob patterns to include all relevant `.rst` files.
Comment thread docs/contributions/how_to_contribute.rst Outdated
Comment thread docs/contributions/opening_an_issue.rst Outdated
Comment thread docs/user_manual/adding_algorithm.rst
Comment thread docs/user_manual/adding_dataset.rst
Comment thread docs/user_manual/optimize.rst Outdated
… configuration, evaluation, and saving/loading
- Updated test cases in `test_code_blocks.py` to dynamically generate parameters for user manuals and contributions, excluding the 'dataset' tutorial.
- Improved maintainability by leveraging glob patterns to include all relevant `.rst` files.
…, datasets, metrics, and model optimization

- Added detailed guides for adding custom algorithms, datasets, and metrics to the user manual.
- Introduced a comprehensive tutorial on optimizing models with Pruna, including step-by-step workflows and example use cases.
- Updated existing documentation for clarity and consistency across sections.
…nsistency

- Replaced empty entries with a standardized symbol (➖) to indicate algorithms that have an approximate same impact.
- Adjusted the legend to reflect the updated symbols for improved understanding.
- Changed references from "compression algorithms" to "optimization algorithms" for consistency.
- Updated installation link for pip to direct users to the correct page.
- Removed redundant line breaks and improved formatting for better readability.
- Enhanced the algorithm overview table with clearer descriptions and standardized symbols.

@begumcig begumcig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Almost there! Left small notes

Comment thread docs/user_manual/evaluate.rst Outdated
Comment thread docs/user_manual/evaluate.rst Outdated
Comment thread docs/user_manual/evaluate.rst
- Changed the reference from "PrunaModel" to "EvaluationAgent" to accurately reflect the evaluation process.
- Ensured consistency in terminology within the evaluation workflow section.
- Changed "Stateless Metrics" to "Stateful Metrics" for accurate representation of metrics that maintain internal state across batches.
Comment thread docs/user_manual/customize_metric.rst
Comment thread docs/user_manual/evaluate.rst
Comment thread docs/user_manual/configure.rst Outdated

@sharpenb sharpenb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot for all the udpates! I left some small comments. I can be merged after they are fixed ( and the sister PR is merged) :)

…nd evaluation modes

- Renamed section "Adding a Metric" to "Customize a Metric" for improved clarity.
- Added details on pairwise evaluation mode options to the evaluation metrics section.
Comment thread docs/user_manual/evaluate.rst
Comment thread docs/user_manual/evaluate.rst Outdated
…c terminology

- Updated the evaluation workflow diagram to clarify the relationships between components.
- Changed terminology from "uses" to "is used by" for better accuracy.
- Standardized metric type references and improved subgraph labeling for consistency.
- Added new styles for components B and C in the evaluation workflow diagram for better visual distinction.
- Improved overall clarity of the diagram to aid user understanding of the evaluation process.

@begumcig begumcig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you so much for the fantastic work, genuinely excited about the new docs! 🥇🥇🥇

@davidberenstein1957 davidberenstein1957 dismissed johannaSommer’s stale review May 13, 2025 07:52

changed everything already

@davidberenstein1957 davidberenstein1957 requested review from johnrachwan123 and removed request for johannaSommer and johnrachwan123 May 13, 2025 07:54
@davidberenstein1957

Copy link
Copy Markdown
Member Author

@begumcig would you be able to re-do this from your account too?

@davidberenstein1957

davidberenstein1957 commented May 13, 2025

Copy link
Copy Markdown
Member Author
image Merging without given that the failing tests passes locally to be included in the next release and there is some mixup within the CICD.

@sharpenb sharpenb merged commit 1d68f74 into main May 13, 2025
@sharpenb sharpenb deleted the docs/general-structure-refactor branch May 13, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Update documentation

4 participants