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

Update train_meta_model_combine.py #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

venkatesh-thiru
Copy link

Running the train_meta_model_combine.py

Example

python train_meta_model_combine.py --base_model='WideResNet_BaseModel' --meta_model='WideResNet_MetaModel_combine' --name='CIFAR100_OOD' --dataset='CIFAR100' --lr=1e-2 --seed_trail=0 --decay=1e-4 --epoch=1 --lambda_KL=1e-3

would result in

Traceback (most recent call last):
  File "/meta_dirichlet/PosthocUQ/train_meta_model_combine.py", line 477, in <module>
    if not args.early_stop:
AttributeError: 'Namespace' object has no attribute 'early_stop'

As the early_stop argument is not declared during the argparse.

This change will remove lines 477 and 478 from train_meta_model_combine.py file, that has unused function calls.

Undeclared and unused namespace
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