bdext 0.1.67__py3-none-any.whl → 0.1.69__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.
bdeissct_dl/dl_model.py CHANGED
@@ -29,7 +29,7 @@ def relu_plus_one(x):
29
29
  LOSS_FUNCTIONS = {
30
30
  REPRODUCTIVE_NUMBER: "mean_absolute_percentage_error",
31
31
  INFECTION_DURATION: "mean_absolute_percentage_error",
32
- INCUBATION_PERIOD: "mean_absolute_percentage_error",
32
+ INCUBATION_PERIOD: "mae",
33
33
  UPSILON: 'mae',
34
34
  RHO: 'mean_absolute_percentage_error',
35
35
  X_C: "mean_absolute_percentage_error",
@@ -38,30 +38,30 @@ def get_write_handle(path, temp_suffix=''):
38
38
  def scale(Y, SF):
39
39
  for col in (Y.keys() if type(Y) == dict else Y.columns):
40
40
  for rate in RATE_PARAMETERS:
41
- if col.startswith(rate):
41
+ if col == rate:
42
42
  Y[col] *= SF
43
43
  for time in TIME_PARAMETERS:
44
- if col.startswith(time):
44
+ if col == time:
45
45
  Y[col] /= SF
46
46
 
47
47
 
48
48
  def scale_back(Y, SF):
49
49
  for col in (Y.keys() if type(Y) == dict else Y.columns):
50
50
  for rate in RATE_PARAMETERS:
51
- if col.startswith(rate):
51
+ if col == rate:
52
52
  Y[col] /= SF
53
53
  for time in TIME_PARAMETERS:
54
- if col.startswith(time):
54
+ if col == time:
55
55
  Y[col] *= SF
56
56
 
57
57
 
58
58
  def scale_back_array(Y, SF, columns):
59
59
  for i, col in enumerate(columns):
60
60
  for rate in RATE_PARAMETERS:
61
- if col.startswith(rate):
61
+ if col == rate:
62
62
  Y[:, i] /= SF
63
63
  for time in TIME_PARAMETERS:
64
- if col.startswith(time):
64
+ if col == time:
65
65
  Y[:, i] *= SF
66
66
 
67
67
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bdext
3
- Version: 0.1.67
3
+ Version: 0.1.69
4
4
  Summary: Estimation of BDEISS-CT parameters from phylogenetic trees.
5
5
  Home-page: https://github.com/modpath/bdeissct
6
6
  Author: Anna Zhukova
@@ -1,17 +1,17 @@
1
1
  README.md,sha256=Ngj8bt0Yu3LUsvwblmMtUqqjvGyqxv6ku2_cYCb5_DQ,6539
2
2
  bdeissct_dl/__init__.py,sha256=QPEiIP-xVqGQgydeqN_9AZgT26IYWeJC4-JlHnd8Rjo,296
3
3
  bdeissct_dl/bdeissct_model.py,sha256=sQclYN5V8utw6wEMDN0_Ua-0NeuyuWHG_e0_jQIUe8Q,1986
4
- bdeissct_dl/dl_model.py,sha256=CT3tRvH7y7_guyR7SUELv0eLEVpGU_PcXci1lIGIb9M,3705
4
+ bdeissct_dl/dl_model.py,sha256=eXyFHqgJtXovzPFYn9xW5-Th92f28Ci6iuRHEwSd8y0,3678
5
5
  bdeissct_dl/estimator.py,sha256=QBWA8R0pBPZPd3JvItdJS2lN1J3VqvdJqBMzCi-NADs,3336
6
6
  bdeissct_dl/model_serializer.py,sha256=s1yBzQjhtr-w7eT8bTsNkG9_xnYRZrUc3HkeOzNZpQY,2464
7
7
  bdeissct_dl/scaler_fitting.py,sha256=9X0O7-Wc9xGTI-iF-Pfp1PPoW7j01wZUfJVZf8ky-IU,1752
8
8
  bdeissct_dl/sumstat_checker.py,sha256=TQ0nb86-BXmusqgMnOJusLpR4ul3N3Hi886IWUovrMI,1846
9
9
  bdeissct_dl/training.py,sha256=H5wA3V72nhc9Km7kvKmzjCYw0N1itMGDbj9c-Uat5BU,8350
10
- bdeissct_dl/tree_encoder.py,sha256=vH__CDPNVvayhNoK6_Z4xJA9_R78G1RvneG0RY2aj-0,18340
10
+ bdeissct_dl/tree_encoder.py,sha256=V-7_Kis9x9JacI_mF7rWRGGKvxn7AWFCto7LkgRawBw,18286
11
11
  bdeissct_dl/tree_manager.py,sha256=UXxUVmEkxwUhKpJeACVgiXZ8Kp1o_hiv8Qb80b6qmVU,11814
12
- bdext-0.1.67.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
13
- bdext-0.1.67.dist-info/METADATA,sha256=Ky7QOtU9xcrVvo_kjsPpx5jsaIcDwXFOYpoxYoCJaug,7479
14
- bdext-0.1.67.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
15
- bdext-0.1.67.dist-info/entry_points.txt,sha256=lcAwyk-Fc0G_w4Ex7KDivh7h1tzSA99PRMcy971b-nM,208
16
- bdext-0.1.67.dist-info/top_level.txt,sha256=z4dadFfcLghr4lwROy7QR3zEICpa-eCPT6mmcoHeEJY,12
17
- bdext-0.1.67.dist-info/RECORD,,
12
+ bdext-0.1.69.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
13
+ bdext-0.1.69.dist-info/METADATA,sha256=XR1qaonSH4YNjna_G_yMzDwYdCrvFHw75msvPJ2XMUo,7479
14
+ bdext-0.1.69.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
15
+ bdext-0.1.69.dist-info/entry_points.txt,sha256=lcAwyk-Fc0G_w4Ex7KDivh7h1tzSA99PRMcy971b-nM,208
16
+ bdext-0.1.69.dist-info/top_level.txt,sha256=z4dadFfcLghr4lwROy7QR3zEICpa-eCPT6mmcoHeEJY,12
17
+ bdext-0.1.69.dist-info/RECORD,,
File without changes