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

BUG: Test Warnings #196

Open
Jeffrey-Lim opened this issue Jun 21, 2024 · 1 comment
Open

BUG: Test Warnings #196

Jeffrey-Lim opened this issue Jun 21, 2024 · 1 comment
Labels
00 - Bug Something isn't working needs milestone Marks an issue as needing a milestone

Comments

@Jeffrey-Lim
Copy link
Contributor

Running pytest currently gives the following warnings:

============================================================================================================================================================================== test session starts ==============================================================================================================================================================================
platform linux -- Python 3.12.3, pytest-8.0.2, pluggy-1.4.0
rootdir: /home/jefflim/EpochProjects/epochalyst
plugins: cov-4.1.0
collected 156 items                                                                                                                                                                                                                                                                                                                                                             

tests/_core/_caching/test__cacher.py ..........................................................                                                                                                                                                                                                                                                                           [ 37%]
tests/_core/_logging/test__logger.py .......                                                                                                                                                                                                                                                                                                                              [ 41%]
tests/pipeline/model/test_model.py ......                                                                                                                                                                                                                                                                                                                                 [ 45%]
tests/pipeline/model/training/augmentation/test_image_augmentations.py ..                                                                                                                                                                                                                                                                                                 [ 46%]
tests/pipeline/model/training/augmentation/test_time_series_augmentations.py .......                                                                                                                                                                                                                                                                                      [ 51%]
tests/pipeline/model/training/augmentation/test_utils.py ...                                                                                                                                                                                                                                                                                                              [ 53%]
tests/pipeline/model/training/models/test_timm.py ..                                                                                                                                                                                                                                                                                                                      [ 54%]
tests/pipeline/model/training/test_pretrain_block.py ....                                                                                                                                                                                                                                                                                                                 [ 57%]
tests/pipeline/model/training/test_torch_trainer.py .............................                                                                                                                                                                                                                                                                                         [ 75%]
tests/pipeline/model/training/test_training.py ........                                                                                                                                                                                                                                                                                                                   [ 80%]
tests/pipeline/model/training/test_training_block.py .....                                                                                                                                                                                                                                                                                                                [ 83%]
tests/pipeline/model/transformation/test_transformation.py .......                                                                                                                                                                                                                                                                                                        [ 88%]
tests/pipeline/model/transformation/test_transformation_block.py ..........                                                                                                                                                                                                                                                                                               [ 94%]
tests/pipeline/test_ensemble.py ........                                                                                                                                                                                                                                                                                                                                  [100%]

=============================================================================================================================================================================== warnings summary ================================================================================================================================================================================
tests/pipeline/model/test_model.py::TestModel::test_model_get_x_y_cache_exists_true
tests/pipeline/model/transformation/test_transformation.py::TestTransformationPipeline::test_transformation_pipeline_with_steps
tests/pipeline/model/transformation/test_transformation.py::TestTransformationPipeline::test_transformation_pipeline_with_cache
tests/pipeline/model/transformation/test_transformation.py::TestTransformationPipeline::test_transformation_pipeline_with_halfway_cache_not_instance_cacher
tests/pipeline/test_ensemble.py::TestEnsemble::test_ensemble_get_cache_exists_true
  /home/jefflim/EpochProjects/epochalyst/venv/lib/python3.12/site-packages/agogos/transforming.py:120: UserWarning: The following steps do not exist but were given in the kwargs: set()
    warnings.warn(

tests/pipeline/model/training/test_torch_trainer.py::TestTorchTrainer::test_train_with_scheduler
  /home/jefflim/EpochProjects/epochalyst/venv/lib/python3.12/site-packages/torch/optim/lr_scheduler.py:143: UserWarning: Detected call of `lr_scheduler.step()` before `optimizer.step()`. In PyTorch 1.1.0 and later, you should call them in the opposite order: `optimizer.step()` before `lr_scheduler.step()`.  Failure to do this will result in PyTorch skipping the first value of the learning rate schedule. See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate
    warnings.warn("Detected call of `lr_scheduler.step()` before `optimizer.step()`. "

tests/pipeline/model/training/test_torch_trainer.py::TestTorchTrainer::test_train_with_scheduler
  /home/jefflim/EpochProjects/epochalyst/venv/lib/python3.12/site-packages/torch/optim/lr_scheduler.py:156: UserWarning: The epoch parameter in `scheduler.step()` was not necessary and is being deprecated where possible. Please use `scheduler.step()` to step the scheduler. During the deprecation, if epoch is different from None, the closed form is used instead of the new chainable form, where available. Please open an issue if you are unable to replicate your use case: https://github.com/pytorch/pytorch/issues/new/choose.
    warnings.warn(EPOCH_DEPRECATION_WARNING, UserWarning)

tests/pipeline/model/training/test_training.py::TestTrainingPipeline::test_training_pipeline_with_steps
tests/pipeline/model/training/test_training.py::TestTrainingPipeline::test_training_pipeline_with_cache
tests/pipeline/model/training/test_training.py::TestTrainingPipeline::test_training_pipeline_with_halfway_cache_not_instance_cacher
  /home/jefflim/EpochProjects/epochalyst/venv/lib/python3.12/site-packages/agogos/training.py:147: UserWarning: The following steps do not exist but were given in the kwargs: set()
    warnings.warn(

tests/pipeline/model/training/test_training.py::TestTrainingPipeline::test_training_pipeline_with_cache
tests/pipeline/model/training/test_training.py::TestTrainingPipeline::test_training_pipeline_with_halfway_cache_not_instance_cacher
  /home/jefflim/EpochProjects/epochalyst/venv/lib/python3.12/site-packages/agogos/training.py:178: UserWarning: The following steps do not exist but were given in the kwargs: set()
    warnings.warn(

tests/pipeline/model/training/test_training.py::TestTrainingPipeline::test_training_pipeline_with_halfway_cache_not_instance_cacher
  /home/jefflim/EpochProjects/epochalyst/venv/lib/python3.12/site-packages/agogos/training.py:178: UserWarning: The following steps do not exist but were given in the kwargs: {'ExampleTrainingBlock'}
    warnings.warn(

tests/pipeline/model/transformation/test_transformation.py::TestTransformationPipeline::test_transformation_pipeline_transform
  /home/jefflim/EpochProjects/epochalyst/venv/lib/python3.12/site-packages/agogos/transforming.py:120: UserWarning: The following steps do not exist but were given in the kwargs: {'transform_args'}
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================================================================================================================================================= 156 passed, 14 warnings in 27.75s =======================================================================================================================================================================
@Jeffrey-Lim Jeffrey-Lim added the 00 - Bug Something isn't working label Jun 21, 2024
@schobbejak
Copy link
Collaborator

@justanotherariel already looked at this. Was there more to do Ariel?

@schobbejak schobbejak added the needs milestone Marks an issue as needing a milestone label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug Something isn't working needs milestone Marks an issue as needing a milestone
Projects
None yet
Development

No branches or pull requests

2 participants