bdext 0.1.63__tar.gz → 0.1.65__tar.gz

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.
Files changed (26) hide show
  1. {bdext-0.1.63 → bdext-0.1.65}/PKG-INFO +1 -1
  2. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/bdeissct_model.py +2 -3
  3. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/scaler_fitting.py +2 -3
  4. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/train_ct.py +4 -4
  5. {bdext-0.1.63 → bdext-0.1.65}/bdext.egg-info/PKG-INFO +1 -1
  6. {bdext-0.1.63 → bdext-0.1.65}/setup.py +7 -7
  7. {bdext-0.1.63 → bdext-0.1.65}/LICENSE +0 -0
  8. {bdext-0.1.63 → bdext-0.1.65}/README.md +0 -0
  9. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/__init__.py +0 -0
  10. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/dl_model.py +0 -0
  11. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/estimator.py +0 -0
  12. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/estimator_ct.py +0 -0
  13. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/main_covid.py +0 -0
  14. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/model_finder.py +0 -0
  15. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/model_serializer.py +0 -0
  16. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/pinball_loss.py +0 -0
  17. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/sumstat_checker.py +0 -0
  18. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/training.py +0 -0
  19. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/tree_encoder.py +0 -0
  20. {bdext-0.1.63 → bdext-0.1.65}/bdeissct_dl/tree_manager.py +0 -0
  21. {bdext-0.1.63 → bdext-0.1.65}/bdext.egg-info/SOURCES.txt +0 -0
  22. {bdext-0.1.63 → bdext-0.1.65}/bdext.egg-info/dependency_links.txt +0 -0
  23. {bdext-0.1.63 → bdext-0.1.65}/bdext.egg-info/entry_points.txt +0 -0
  24. {bdext-0.1.63 → bdext-0.1.65}/bdext.egg-info/requires.txt +0 -0
  25. {bdext-0.1.63 → bdext-0.1.65}/bdext.egg-info/top_level.txt +0 -0
  26. {bdext-0.1.63 → bdext-0.1.65}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bdext
3
- Version: 0.1.63
3
+ Version: 0.1.65
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
@@ -7,7 +7,6 @@ RHO = 'rho'
7
7
  INFECTIOUS_TIME = 'd_I'
8
8
  REPRODUCTIVE_NUMBER = 'R'
9
9
  INFECTION_DURATION = 'd'
10
- SAMPLING_FRACTION = 'p'
11
10
 
12
11
  F_E = 'f_E'
13
12
  MU = 'mu'
@@ -129,5 +128,5 @@ for model in (BDEISSCT, BDEISSCT1, BDEISSCT2, BDEISSCT2000):
129
128
 
130
129
 
131
130
 
132
- CT_EPI_COLUMNS = [REPRODUCTIVE_NUMBER, INFECTION_DURATION, SAMPLING_FRACTION, LA, F_E, F_S, X_S, UPSILON, X_C]
133
- CT_RATE_COLUMNS = [PSI, RHO]
131
+ CT_EPI_COLUMNS = [REPRODUCTIVE_NUMBER, LA, RHO, F_E, F_S, X_S, UPSILON, X_C]
132
+ CT_RATE_COLUMNS = [PSI]
@@ -11,12 +11,11 @@ from bdeissct_dl.training import get_data_characteristics
11
11
 
12
12
 
13
13
  def fit_scalers(paths, x_indices, scaler_x=None):
14
- # First pass: calculate mean and var
15
- for path in paths:
14
+ for path in paths:
16
15
  df = pd.read_csv(path)
17
16
  if scaler_x:
18
17
  X = df.iloc[:, x_indices].to_numpy(dtype=float, na_value=0)
19
- scaler_x.partial_fit(X)
18
+ scaler_x.fit(X)
20
19
 
21
20
 
22
21
  def main():
@@ -74,8 +74,8 @@ def main():
74
74
 
75
75
  os.makedirs(params.model_path, exist_ok=True)
76
76
 
77
- # R,d,p,f_E,f_S,X_S,upsilon,X_C,kappa,la are given
78
- # psi,rho are to be predicted
77
+ # R,f_E,f_S,X_S,upsilon,X_C,kappa,la are given
78
+ # psi is to be predicted
79
79
 
80
80
  feature_columns = CT_EPI_COLUMNS
81
81
  target_columns = CT_RATE_COLUMNS
@@ -87,8 +87,8 @@ def main():
87
87
 
88
88
 
89
89
  x_indices, y_col2index = get_data_characteristics(paths=params.train_data,
90
- feature_columns=feature_columns,
91
- target_columns=target_columns)
90
+ feature_columns=feature_columns,
91
+ target_columns=target_columns)
92
92
 
93
93
  scaler_x = StandardScaler()
94
94
  fit_scalers(paths=params.train_data, x_indices=x_indices, scaler_x=scaler_x)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bdext
3
- Version: 0.1.63
3
+ Version: 0.1.65
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
@@ -9,12 +9,12 @@ setup(
9
9
  long_description_content_type='text/markdown',
10
10
  include_package_data=True,
11
11
  package_data={'bdeissct_dl': [os.path.join('..', 'README.md'),
12
- os.path.join('models', '*.keras'),
13
- os.path.join('models', '*.h5'),
14
- os.path.join('models', '*.json'),
15
- os.path.join('models', '*.txt'),
16
- os.path.join('models', '*.npy'),
17
- os.path.join('models', '*.gz'),
12
+ # os.path.join('models', '*.keras'),
13
+ # os.path.join('models', '*.h5'),
14
+ # os.path.join('models', '*.json'),
15
+ # os.path.join('models', '*.txt'),
16
+ # os.path.join('models', '*.npy'),
17
+ # os.path.join('models', '*.gz'),
18
18
  os.path.join('..', 'LICENCE')]},
19
19
  classifiers=[
20
20
  'Development Status :: 4 - Beta',
@@ -24,7 +24,7 @@ setup(
24
24
  'Topic :: Software Development',
25
25
  'Topic :: Software Development :: Libraries :: Python Modules',
26
26
  ],
27
- version='0.1.63',
27
+ version='0.1.65',
28
28
  description='Estimation of BDEISS-CT parameters from phylogenetic trees.',
29
29
  author='Anna Zhukova',
30
30
  author_email='anna.zhukova@pasteur.fr',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes