Skip to content

Commit

Permalink
*0.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyToluna committed Jun 27, 2022
1 parent 6c9908f commit 8476f2a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
==========

0.4.7 (27/06/2022)
-----------------
* Bug fix in case validation samples are empty


0.4.6 (21/06/2022)
-----------------
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ There are 2 types of ``lpd`` packagaes available
pip install lpd-nodeps
```

<b>[v0.4.6-beta](https://github.com/RoySadaka/lpd/releases) Release - contains the following:</b>
<b>[v0.4.7-beta](https://github.com/RoySadaka/lpd/releases) Release - contains the following:</b>
* Bug fix in case validation samples are empty


Expand Down
5 changes: 3 additions & 2 deletions lpd/trainer_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ def add_value(self, value, count):
self.last = value

def get_value(self):
if self.count == 0:
return torch.tensor(0.0)

if self.metric_method == MetricMethod.MEAN:
if self.count == 0:
return torch.tensor(0.0)
return self.sum/self.count

elif self.metric_method == MetricMethod.SUM:
Expand Down
4 changes: 2 additions & 2 deletions misc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Steps:
>> python setup-nodeps.py bdist_wheel -d .
Publish pypi package cmd:
>> pipenv shell
>> twine upload lpd-0.4.6-py3-none-any.whl
>> twine upload lpd_nodeps-0.4.6-py3-none-any.whl
>> twine upload lpd-0.4.7-py3-none-any.whl
>> twine upload lpd_nodeps-0.4.7-py3-none-any.whl
2 changes: 1 addition & 1 deletion setup-nodeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

setup(
name='lpd-nodeps',
version='0.4.6',
version='0.4.7',
description='A Fast, Flexible Trainer with Callbacks and Extensions for PyTorch',
long_description_content_type='text/markdown',
long_description=README_md,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

setup(
name='lpd',
version='0.4.6',
version='0.4.7',
description='A Fast, Flexible Trainer with Callbacks and Extensions for PyTorch',
long_description_content_type='text/markdown',
long_description=README_md,
Expand Down

0 comments on commit 8476f2a

Please sign in to comment.