Skip to content

Conversation

@ProgramadorArtificial
Copy link
Contributor

@ProgramadorArtificial ProgramadorArtificial commented Jan 13, 2024

  • Add to tuner return best model
  • Fix bug with progress bar in tuner (model_config with progress bar == True and tuner progress_bar == True)

image


📚 Documentation preview 📚: https://pytorch-tabular--374.org.readthedocs.build/en/374/

result = tabular_model_t.evaluate(validation, verbose=False)
params.update({k.replace("test_", ""): v for k, v in result[0].items()})

if best_model is None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as the other model sweep PR:
make tabular_model.datamodule = None before deep copying it, and as the end of the loop, set best_model.datamodule = tabular_model.datamodule`

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed.

"optimizer_config__optimizer": ["RAdam", "AdamW"],
}
result = tuner.tune(
result, best_model = tuner.tune(
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we include best model in the namedtuple, we dont need to change this as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed.

"with warnings.catch_warnings():\n",
" warnings.simplefilter(\"ignore\")\n",
" result = tuner.tune(\n",
" result, best_model = tuner.tune(\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we include best model in the namedtuple, we dont need to change this as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed.

@manujosephv manujosephv merged commit 40d8772 into pytorch-tabular:main Jan 14, 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.

2 participants