homa 0.0.19__py3-none-any.whl → 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ class Trainable:
16
16
  def train_tensors(self, x: Tensor, y: Tensor):
17
17
  self.network.train()
18
18
  self.optimizer.zero_grad()
19
- loss = self.criterion(x, y)
19
+ loss = self.criterion(y, self.network(x).float())
20
20
  loss.backward()
21
21
  self.optimizer.step()
22
22
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: homa
3
- Version: 0.0.19
3
+ Version: 0.1.1
4
4
  Summary: A curated list of machine learning and deep learning helpers.
5
5
  Author-email: Taha Shieenavaz <tahashieenavaz@gmail.com>
6
6
  Requires-Python: >=3.7
@@ -39,13 +39,13 @@ homa/vision/Resnet.py,sha256=Kh5QLYp8X8o9vFHYqTeOs1uRb6n36FsENdHTIiFZTAs,409
39
39
  homa/vision/StochasticResnet.py,sha256=mLgKBfqRJtOgWdgfVHHTnIJVg2SHQDYz4ywXiTWqcIY,241
40
40
  homa/vision/__init__.py,sha256=9M65-r8ykfncoPS3UYJC536vi2ytyzHAf4ZZ4ZlMz1g,99
41
41
  homa/vision/utils.py,sha256=O58TkXooa31mXJ1JQTykO2OXzmUm9H8Qvvk9lsIZnZ0,623
42
- homa/vision/concerns/Trainable.py,sha256=pgwFoesMLNuz4ejPyHAoJLO0NPYhRsbBjNbtBYZgiRs,813
42
+ homa/vision/concerns/Trainable.py,sha256=trnacyt3W3FrPON09uOTHeb06KT-uEi_oMzJonTwjL0,835
43
43
  homa/vision/concerns/__init__.py,sha256=UnZfL_YH4IwNqip1wokoWJHe6fn4pE0ePtchTuykxJY,33
44
44
  homa/vision/modules/ResnetModule.py,sha256=eFudBnILD6OmgQtcW_CQQ8aZ62NEa4HyZ15-lobTtt0,712
45
45
  homa/vision/modules/StochasticResnetModule.py,sha256=zSfx6FW5c5NfHMDGw7MTbaxQ3EmyKV1WVnWqH7G7CDc,298
46
46
  homa/vision/modules/__init__.py,sha256=kGlcc0BvYjuT_pBijI54VXLoWluPMfLzif1eO_9RoJc,98
47
- homa-0.0.19.dist-info/METADATA,sha256=jut1aYkO2ByRxiuJbSLpjT9_F70lleWcUb261_wBhcs,540
48
- homa-0.0.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
49
- homa-0.0.19.dist-info/entry_points.txt,sha256=tJZzjs-f2QvFe3ES8Qta8IE5sAbeE8-cyZ_UtbgqG4s,51
50
- homa-0.0.19.dist-info/top_level.txt,sha256=tmOfy2tuaAwc3W5-i6j61_vYJsXgR4ivBWkhJ3ZtJDc,5
51
- homa-0.0.19.dist-info/RECORD,,
47
+ homa-0.1.1.dist-info/METADATA,sha256=b5C7qLYoMVkSisQwDbn07_6E3yE6Roxrz4651KKebRM,539
48
+ homa-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
49
+ homa-0.1.1.dist-info/entry_points.txt,sha256=tJZzjs-f2QvFe3ES8Qta8IE5sAbeE8-cyZ_UtbgqG4s,51
50
+ homa-0.1.1.dist-info/top_level.txt,sha256=tmOfy2tuaAwc3W5-i6j61_vYJsXgR4ivBWkhJ3ZtJDc,5
51
+ homa-0.1.1.dist-info/RECORD,,
File without changes