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

Refactor regularization step closes #117 #200

Merged
merged 18 commits into from
Dec 2, 2023
Merged

Conversation

SebChw
Copy link
Owner

@SebChw SebChw commented Dec 1, 2023

To see this step in action please check

 python -m art.cli regularization-tutorial

get rid off turn_on/off regularization - We won't use it for regularization

add datamodule modifiers - regularization will be based on these modifiers

reduce dependencies - since we use them just once they are not needed

add access to current stage for ArtModule - During regularization when augmentations are used I must use them only during training

add utils for orange logs - I made some warning orange

add utils for building metric name - Small util usefull when we want to define ModelCallback

add possibility for the step to decide when it should be run or not - This is a big deal as for me - new regularizations should be continued even though the previous one failed to obtain good accuracy. That's why selected steps can decide if they should be run or not. I know this is not with SOLID but I couldn't find any other way

separate model and data logs - When log_params were executed on dataloader withouth setup there was a crush.

rewrite regularizaton - Rewritten step

add class fields - Decide which steps can decide for themselves

adjust dashboard - Since regularize steps adds new field to parameters dashboard must handle it

@SebChw SebChw force-pushed the regularize_changes branch from 41be9dd to 7a29414 Compare December 1, 2023 15:48
@SebChw SebChw force-pushed the regularize_changes branch from 7a29414 to af127da Compare December 1, 2023 16:27
art/metrics.py Show resolved Hide resolved
art/steps.py Show resolved Hide resolved
art/steps.py Outdated Show resolved Hide resolved
@SebChw SebChw merged commit b3aa7c6 into develop Dec 2, 2023
1 check passed
@SebChw SebChw deleted the regularize_changes branch December 2, 2023 10:51
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.

2 participants