-
Notifications
You must be signed in to change notification settings - Fork 0
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
test: Addition of test cases for the Data Preprocessor code #4
base: dataloader-v2-impl
Are you sure you want to change the base?
test: Addition of test cases for the Data Preprocessor code #4
Conversation
Signed-off-by: Dushyant Behl <[email protected]>
Signed-off-by: Dushyant Behl <[email protected]>
Co-authored-by: Will Johnson <[email protected]> Signed-off-by: Dushyant Behl <[email protected]>
Signed-off-by: Will Johnson <[email protected]> fmt Signed-off-by: Will Johnson <[email protected]>
…-impl-unit-fix tests: reformat `mock.patch` to inside unit tests Signed-off-by: Dushyant Behl <[email protected]>
Signed-off-by: Dushyant Behl <[email protected]>
Signed-off-by: Abhishek <[email protected]>
Signed-off-by: Dushyant Behl <[email protected]>
Signed-off-by: Will Johnson <[email protected]> fmt Signed-off-by: Will Johnson <[email protected]>
Signed-off-by: Dushyant Behl <[email protected]>
Signed-off-by: Abhishek <[email protected]>
Removes unused dead code after adding the new framework and refactors some test cases and files. Signed-off-by: Dushyant Behl <[email protected]>
data preprocessing Signed-off-by: Dushyant Behl <[email protected]>
Signed-off-by: Dushyant Behl <[email protected]>
Signed-off-by: Dushyant Behl <[email protected]>
Signed-off-by: Will Johnson <[email protected]>
…pl' into data_preprocessor_dushyant Signed-off-by: Abhishek <[email protected]>
Signed-off-by: Will Johnson <[email protected]>
Signed-off-by: Abhishek <[email protected]>
Signed-off-by: Abhishek <[email protected]>
Signed-off-by: Will Johnson <[email protected]>
…pl' into data_preprocessor_dushyant
Signed-off-by: Will Johnson <[email protected]>
…pl' into data_preprocessor_dushyant
…PreProcessor Signed-off-by: Abhishek <[email protected]>
Signed-off-by: Abhishek <[email protected]>
Thanks for making a pull request! 😃 |
Signed-off-by: Abhishek <[email protected]>
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.
Test cases look good, one thing before approval:
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")) | ||
PREDEFINED_DATA_CONFIGS = os.path.join(BASE_DIR, "examples", "predefined_data_configs") | ||
APPLY_CUSTOM_TEMPLATE_YAML = os.path.join( | ||
PREDEFINED_DATA_CONFIGS, "apply_custom_template.yaml" | ||
) | ||
PRETOKENIZE_JSON_DATA_YAML = os.path.join( | ||
PREDEFINED_DATA_CONFIGS, "pretokenized_json_data.yaml" | ||
) | ||
TOKENIZE_AND_INSTRUCTION_MASKING_YAML = os.path.join( | ||
PREDEFINED_DATA_CONFIGS, "tokenize_and_instruction_masking.yaml" | ||
) |
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.
Should this go in an __init__.py file like the one for tests/testdata?
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.
Yea make sense. Thanks Will. Pushed the refactored code.
Signed-off-by: Abhishek <[email protected]>
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.
LGTM! Thanks Abhishek
Signed-off-by: Will Johnson <[email protected]>
…pl' into data_preprocessor_dushyant Signed-off-by: Abhishek <[email protected]>
826463f
to
e045ca7
Compare
Description of the change
Addition of unit test cases for function: load_dataset and function _process_dataconfig_file
Related issue number
https://github.ibm.com/ai-foundation/watson-fm-stack-tracker/issues/1428
How to verify the PR
Running test cases
Was the PR tested