This pull request introduces two significant changes:
Modification in apps/train.py:
Context: Compatibility issues with the latest version of Torch Lightning.
Changes Made:
Updated the Train class to accommodate changes in variable handling due to the updated torch lightning version.
Adjusted parameters including gpus and weights_summary.
Note: The parameter auto_scale_batch_size remains unchanged.
Update in src/make_it_dense/utils/data.py:
Issue: Encountered a ValueError related to the random.sample() method, indicating a sample size larger than the population or negative.
Resolution: Replaced random.sample() with random.choices() to prevent this error and ensure more robust sampling, especially in cases with smaller datasets.
These changes aim to enhance compatibility with newer library versions and improve the robustness of the data handling process.
This pull request introduces two significant changes:
Modification in
apps/train.py
:Train
class to accommodate changes in variable handling due to the updated torch lightning version.gpus
andweights_summary
.auto_scale_batch_size
remains unchanged.Update in
src/make_it_dense/utils/data.py
:ValueError
related to therandom.sample()
method, indicating a sample size larger than the population or negative.random.sample()
withrandom.choices()
to prevent this error and ensure more robust sampling, especially in cases with smaller datasets.These changes aim to enhance compatibility with newer library versions and improve the robustness of the data handling process.