metacountregressor 0.1.313__tar.gz → 0.1.314__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.
- {metacountregressor-0.1.313/metacountregressor.egg-info → metacountregressor-0.1.314}/PKG-INFO +1 -1
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/solution.py +26 -5
- {metacountregressor-0.1.313 → metacountregressor-0.1.314/metacountregressor.egg-info}/PKG-INFO +1 -1
- metacountregressor-0.1.314/version.txt +1 -0
- metacountregressor-0.1.313/version.txt +0 -1
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/LICENSE.txt +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/MANIFEST.in +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/README.md +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/README.rst +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/__init__.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/_device_cust.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/app_main.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/data_split_helper.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/halton.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/helperprocess.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/main.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/main_old.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/metaheuristics.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/pareto_file.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/pareto_logger__plot.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/setup.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/single_objective_finder.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/test_generated_paper2.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor.egg-info/SOURCES.txt +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor.egg-info/dependency_links.txt +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor.egg-info/not-zip-safe +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor.egg-info/requires.txt +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor.egg-info/top_level.txt +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/setup.cfg +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/setup.py +0 -0
- {metacountregressor-0.1.313 → metacountregressor-0.1.314}/tests/test.py +0 -0
@@ -1035,9 +1035,9 @@ class ObjectiveFunction(object):
|
|
1035
1035
|
|
1036
1036
|
abct = []
|
1037
1037
|
hetro_long = hetro_long + hetro_std
|
1038
|
-
for i in model_nature['
|
1038
|
+
for i in model_nature['transform_hetro']:
|
1039
1039
|
abct = abct + i
|
1040
|
-
for i in model_nature['
|
1040
|
+
for i in model_nature['transform_hetro']:
|
1041
1041
|
abct = abct + ['']
|
1042
1042
|
else:
|
1043
1043
|
big_hetro = []
|
@@ -5971,13 +5971,13 @@ class ObjectiveFunction(object):
|
|
5971
5971
|
Solution object with updated objectives.
|
5972
5972
|
"""
|
5973
5973
|
# Extract relevant data
|
5974
|
-
X, Xr, XG = mod.get('X'), mod.get('Xr'), mod.get('XG')
|
5974
|
+
X, Xr, XG, XH= mod.get('X'), mod.get('Xr'), mod.get('XG'), mod.get('XH')
|
5975
5975
|
distribution = mod.get('dist_fit')
|
5976
5976
|
|
5977
5977
|
# Prepare draws
|
5978
5978
|
draws = self._prepare_draws(Xr, distribution)
|
5979
5979
|
draws_grouped = self._prepare_grouped_draws(XG, mod) if XG is not None else None
|
5980
|
-
|
5980
|
+
mod = self._prepare_hetro(mod)
|
5981
5981
|
# Optimization method and options
|
5982
5982
|
method = self.method_ll if bounds is None else 'L-BFGS-B'
|
5983
5983
|
|
@@ -6451,6 +6451,27 @@ class ObjectiveFunction(object):
|
|
6451
6451
|
return self.prepare_halton(
|
6452
6452
|
n_random_effects, n_samples, self.Ndraws, distribution, long=False, slice_this_way=self.group_halton
|
6453
6453
|
)
|
6454
|
+
|
6455
|
+
def _prepare_hetro(self, mod):
|
6456
|
+
if 'XH' in mod and len(mod.get('hetro_hold')) > 0:
|
6457
|
+
|
6458
|
+
XH = mod.get('XH')
|
6459
|
+
|
6460
|
+
styd = list(mod.get('hetro_hold').keys())
|
6461
|
+
|
6462
|
+
nh, ph, ______ = XH.shape
|
6463
|
+
kgh = len(mod.get('hetro_hold'))
|
6464
|
+
draws_hetro = self.prepare_halton(kgh, nh, self.Ndraws, styd, slice_this_way=self.group_halton)
|
6465
|
+
mod['draws_hetro'] = draws_hetro.copy()
|
6466
|
+
if self.is_multi:
|
6467
|
+
XHtest = mod.get('XH_test')
|
6468
|
+
nht, pht, ______ = XHtest.shape
|
6469
|
+
draws_hetro_test = self.prepare_halton(kgh, nht, self.Ndraws, styd,
|
6470
|
+
slice_this_way=self.group_halton_test)
|
6471
|
+
mod['draws_hetro_test'] = draws_hetro_test.copy()
|
6472
|
+
return mod
|
6473
|
+
|
6474
|
+
|
6454
6475
|
|
6455
6476
|
def _prepare_grouped_draws(self, XG, mod):
|
6456
6477
|
"""
|
@@ -7291,7 +7312,7 @@ class ObjectiveFunction(object):
|
|
7291
7312
|
X_h_test = df_test[:, :, indices_hetro]
|
7292
7313
|
x_h_storage_test.append(X_h_test)
|
7293
7314
|
model_nature['x_h_storage'] = x_h_storage
|
7294
|
-
model_nature['
|
7315
|
+
model_nature['transform_hetro'] = transform_hetro
|
7295
7316
|
model_nature['x_h_storage_test'] = x_h_storage_test
|
7296
7317
|
|
7297
7318
|
if hasattr(self, 'group_dummies'):
|
@@ -0,0 +1 @@
|
|
1
|
+
0.1.314
|
@@ -1 +0,0 @@
|
|
1
|
-
0.1.313
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/_device_cust.py
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/data_split_helper.py
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/helperprocess.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/metaheuristics.py
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor/pareto_logger__plot.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor.egg-info/not-zip-safe
RENAMED
File without changes
|
{metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor.egg-info/requires.txt
RENAMED
File without changes
|
{metacountregressor-0.1.313 → metacountregressor-0.1.314}/metacountregressor.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|