-
Notifications
You must be signed in to change notification settings - Fork 316
Enable datasets with custom formats #615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Enable datasets with custom formats #615
Conversation
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
52dbfca
to
affd576
Compare
Signed-off-by: Anuradha Karuppiah <[email protected]>
affd576
to
b110742
Compare
There was a problem hiding this 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 enables custom dataset formats by adding a new EvalDatasetCustomConfig
class that allows users to specify custom Python functions for dataset transformation. The implementation provides a standardized interface for custom parsers while maintaining compatibility with existing functionality.
- Adds
EvalDatasetCustomConfig
class for custom dataset handling - Implements custom function loading and execution with error handling
- Adds preprocessing utilities to apply standard filters and transformations
- Includes example implementation and documentation
Reviewed Changes
Copilot reviewed 11 out of 14 changed files in this pull request and generated 5 comments.
Show a summary per file
File | Description |
---|---|
src/aiq/data_models/dataset_handler.py |
Adds EvalDatasetCustomConfig class with dynamic function loading and includes it in the union type |
src/aiq/eval/dataset_handler/dataset_handler.py |
Implements custom dataset handling logic and refactors preprocessing into reusable methods |
examples/evaluation_and_profiling/simple_calculator_eval/src/aiq_simple_calculator_eval/scripts/custom_dataset_parser.py |
Provides example custom dataset parser function |
examples/evaluation_and_profiling/simple_calculator_eval/src/aiq_simple_calculator_eval/configs/config-custom-dataset-format.yml |
Configuration example for custom dataset usage |
docs/source/reference/evaluate.md |
Documents the custom dataset format feature |
...iling/simple_calculator_eval/src/aiq_simple_calculator_eval/scripts/custom_dataset_parser.py
Outdated
Show resolved
Hide resolved
...mple_calculator_eval/src/aiq_simple_calculator_eval/configs/config-custom-dataset-format.yml
Show resolved
Hide resolved
…iq_simple_calculator_eval/scripts/custom_dataset_parser.py Co-authored-by: Copilot <[email protected]> Signed-off-by: Anuradha Karuppiah <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: Anuradha Karuppiah <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: Anuradha Karuppiah <[email protected]>
Signed-off-by: Anuradha Karuppiah <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: Anuradha Karuppiah <[email protected]>
Description
Closes: #352
This PR enables custom dataset formats by adding a new EvalDatasetCustomConfig class that allows users to specify custom Python functions for dataset transformation. The implementation provides a standardized interface for custom parsers while maintaining compatibility with existing functionality.
Adds EvalDatasetCustomConfig class for custom dataset handling
Implements custom function loading and execution with error handling
Adds preprocessing utilities to apply standard filters and transformations
Includes example implementation and documentation
By Submitting this PR I confirm: