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

FRML-161 Refactor Preprocessing architecture to implement whitening #79

Merged
merged 11 commits into from
Jun 28, 2024

Conversation

Eve-ning
Copy link
Contributor

@Eve-ning Eve-ning commented Jun 28, 2024

Major Changes

While this story is only to implement whitening, we opted to refactor it to improve flexibility such that it can handle per-dataset standard scaling, which is necessary to implement future preprocessing steps more easily.

Notably, we allow transforms to be mutated after the dataset has been constructed. Therefore, transforms that depend on the dataset, can fit on the dataset, then append itself onto the dataset, which is fitting for any scaling preprocessing step.

In our PR, we added ImageStandardScaler, a flexible StandardScaler for images, with helper functions to deal with nested Images. It can fit onto the dataset after initialization, by sampling it then evaluating the stdev and mean. After, it is able to be fit into the augmentation transforms as a final step.

@Eve-ning Eve-ning changed the title FRML-161 FRML-161 Refactor Preprocessing architecture to implement whitening Jun 28, 2024
@Eve-ning Eve-ning merged commit bf801ee into 0.1.2 Jun 28, 2024
3 checks passed
@Eve-ning Eve-ning deleted the frml-161 branch June 28, 2024 07:09
@Eve-ning Eve-ning mentioned this pull request Jun 28, 2024
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.

1 participant