deeplotx 0.2.17__py3-none-any.whl → 0.2.18__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.
@@ -25,9 +25,8 @@ class BaseNeuralNetwork(nn.Module):
25
25
  return l2_reg
26
26
  return _lambda * _l2()
27
27
 
28
- def elastic_net(self, alpha: float = 1e-4, rho: float = 0.5,
29
- lambda_l1: float = 1e-4, lambda_l2: float = 1e-4) -> torch.Tensor:
30
- return alpha * rho * self.l1(_lambda=lambda_l1) + alpha * (1 - rho) * self.l2(_lambda=lambda_l2) / 2.
28
+ def elastic_net(self, alpha: float = 1e-4, rho: float = 0.5) -> torch.Tensor:
29
+ return alpha * rho * self.l1(_lambda=1.) + alpha * (1 - rho) * self.l2(_lambda=1.) / 2.
31
30
 
32
31
  def forward(self, x) -> torch.Tensor: ...
33
32
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deeplotx
3
- Version: 0.2.17
3
+ Version: 0.2.18
4
4
  Summary: Easy-2-use long text classifier trainers.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -3,7 +3,7 @@ deeplotx/encoder/__init__.py,sha256=x7k8IE0FXvDl7kCJGWPsetOHFdvNCiCXHbYOdvo7_JQ,
3
3
  deeplotx/encoder/bert_encoder.py,sha256=rdT8YgZzvRoqYqtzPW95ilagSQTAQgUl7mMVetGKxCY,1822
4
4
  deeplotx/encoder/long_text_encoder.py,sha256=yEEtTVZYHJ0W3OSbh7BHm6xI33nJmVYlSrgD5RVcJLY,2967
5
5
  deeplotx/nn/__init__.py,sha256=9gh8rhKqVWtJyvryU_wHPTLEQIorwOBhAQRc0DtNamM,153
6
- deeplotx/nn/base_neural_network.py,sha256=UzslQwxuQ1KKker4EMrymSnZbHsfv2m6o7lB2cpnRq4,1665
6
+ deeplotx/nn/base_neural_network.py,sha256=EjBqW_8DMNX9TqNzOaLsLi5RzgsCyBaCgwuVque4jwk,1580
7
7
  deeplotx/nn/linear_regression.py,sha256=D4mEWVOq6q1Fm2otm57rgZ_E06HJLZBV5k636PprAf4,1520
8
8
  deeplotx/nn/logistic_regression.py,sha256=QAtZp2oyqOW8-1pJWVcahsSM83bzfA68EHObg-wSHHY,463
9
9
  deeplotx/nn/softmax_regression.py,sha256=eUn3mVNlye9ewVdw3McPHZuKbUvvaamsUgFIJMVMgBU,487
@@ -13,8 +13,8 @@ deeplotx/trainer/text_binary_classification_trainer.py,sha256=SEisKhDhcOoV87N0xL
13
13
  deeplotx/util/__init__.py,sha256=JxqAK_WOOHcYVSTHBT1-WuBwWrPEVDTV3titeVWvNUM,74
14
14
  deeplotx/util/hash.py,sha256=wwsC6kOQvbpuvwKsNQOARd78_wePmW9i3oaUuXRUnpc,352
15
15
  deeplotx/util/read_file.py,sha256=ptzouvEQeeW8KU5BrWNJlXw-vFXVrpS9SkAUxsu6A8A,612
16
- deeplotx-0.2.17.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
17
- deeplotx-0.2.17.dist-info/METADATA,sha256=vLT0JEIABm8g2FPaXgYSKve8ikucXUqN_6-wIJljKFw,1573
18
- deeplotx-0.2.17.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
19
- deeplotx-0.2.17.dist-info/top_level.txt,sha256=hKg4pVDXZ-WWxkRfJFczRIll1Sv7VyfKCmzHLXbuh1U,9
20
- deeplotx-0.2.17.dist-info/RECORD,,
16
+ deeplotx-0.2.18.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
17
+ deeplotx-0.2.18.dist-info/METADATA,sha256=fn9tKJrvY8_JnnnpMG4N6EajaTI3HgN2iRrFodc5SE0,1573
18
+ deeplotx-0.2.18.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
19
+ deeplotx-0.2.18.dist-info/top_level.txt,sha256=hKg4pVDXZ-WWxkRfJFczRIll1Sv7VyfKCmzHLXbuh1U,9
20
+ deeplotx-0.2.18.dist-info/RECORD,,