Skip to content
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

Split behaviour #86

Merged
merged 36 commits into from
Feb 19, 2025
Merged

Conversation

JulienRaynal
Copy link
Collaborator

@JulienRaynal JulienRaynal commented Feb 12, 2025

2 main changes in the commit, we create 2 config files instead of one:

  • YamlSplitConfigDict: is a conf dict with 1 split and multiple transforms
  • YamlSplitTransformDict: is a conf dict with 1 split and 1 transform (previously called subConfig)

A lot of changes in multiple files to make this work. A lot of objects takes a dict_config instead of config_dict_path now as we need to be explicit on which of those two objects the function is supposed to take.

A lot of the changes are also auto refractoring in the files and can be dismissed.
Each commit is specific to the file and the commit describes what has been done to the file.

Please review this carefully as the
test are working but there may be breaking changes in the use of the pipeline.

Tests:
✓ (python3.10) Running tests
✓ (python3.11) Running tests
✓ (python3.11) Running tests (couldn't find how to fix the double run on python 3.11)

@JulienRaynal JulienRaynal self-assigned this Feb 12, 2025
@JulienRaynal JulienRaynal changed the title Split behaviour Not finished yet: Split behaviour Feb 12, 2025
@JulienRaynal JulienRaynal changed the title Not finished yet: Split behaviour Draft: Split behaviour Feb 14, 2025
@JulienRaynal JulienRaynal marked this pull request as draft February 14, 2025 16:42
Julien Raynal added 14 commits February 14, 2025 17:58
…a list of transforms because the titanic test uses a unique value and the dna uses a list
…lits in a yaml config in x files holding unique splits
…ique yaml config with splits and multiple transforms in configs with one unique split and one unique transform
…le with a unique split and multiple Transforms
…file because now the the config are first separated per unique split and then per unique transforms
…ne split and one transform and changed the test file is just formatting
… one with only a unique split and multiple transforms
… to not be a file but a YamlSplitTransformDict object
…TransformDict and not the yaml path anymore
…g_path' to 'data_config' for the DatasetLoader
…ate_data_configs' to 'generate_split_transform_configs' as the awaited output is the sub config file
…e_split and generate_split_transform function + fixed old tests
…w generate_split_config and generate_split_transform_config functions
Julien Raynal added 9 commits February 18, 2025 14:51
…plitTransformDict directly instead of yaml files as argument for the class:
…e two new class YamlSplitConfigDict and YamlSplitTransformDict
…creates a YamlSplitConfigDict from the path given as argument
…s directly YamlSplitTransformDict, the tests have been fixed to work with this
…eplaced with two new files for splitting in YamlSplitConfigDict and YamlSplitTransformDict
@JulienRaynal JulienRaynal marked this pull request as ready for review February 18, 2025 15:02
@JulienRaynal JulienRaynal changed the title Draft: Split behaviour Split behaviour Feb 18, 2025
…he docstring to match the right parameters
Copy link
Owner

@mathysgrapotte mathysgrapotte left a comment

Choose a reason for hiding this comment

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

LGTM, linting is failing but I will fix it

@mathysgrapotte mathysgrapotte merged commit 8e07f94 into mathysgrapotte:dev Feb 19, 2025
12 of 13 checks passed
@JulienRaynal JulienRaynal linked an issue Feb 19, 2025 that may be closed by this pull request
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.

change: Split Behaviour
2 participants