metacountregressor 0.1.114__tar.gz → 0.1.116__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.114 → metacountregressor-0.1.116}/PKG-INFO +1 -1
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/solution.py +16 -13
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor.egg-info/PKG-INFO +1 -1
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/LICENSE.txt +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/README.rst +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/__init__.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/_device_cust.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/app_main.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/data_split_helper.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/halton.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/helperprocess.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/main.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/main_old.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/metaheuristics.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/pareto_file.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/pareto_logger__plot.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/setup.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/single_objective_finder.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/test_generated_paper2.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor.egg-info/SOURCES.txt +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor.egg-info/dependency_links.txt +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor.egg-info/not-zip-safe +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor.egg-info/requires.txt +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor.egg-info/top_level.txt +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/setup.cfg +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/setup.py +0 -0
- {metacountregressor-0.1.114 → metacountregressor-0.1.116}/tests/test.py +0 -0
|
@@ -159,7 +159,7 @@ class ObjectiveFunction(object):
|
|
|
159
159
|
self.full_model = None
|
|
160
160
|
self.GP_parameter = 0
|
|
161
161
|
self.is_multi = kwargs.get('is_multi', False)
|
|
162
|
-
self.complexity_level = 6
|
|
162
|
+
self.complexity_level = self.get('complexity_level', 6)
|
|
163
163
|
self._max_iterations_improvement = 10000
|
|
164
164
|
self.generated_sln = set()
|
|
165
165
|
self.ave_mae = 0
|
|
@@ -1716,6 +1716,11 @@ class ObjectiveFunction(object):
|
|
|
1716
1716
|
vector[get_rdm_i] -= 1
|
|
1717
1717
|
only_ints_vals[get_rdm_i] -= 1
|
|
1718
1718
|
|
|
1719
|
+
elif vector[get_rdm_i] == 1:
|
|
1720
|
+
vector[get_rdm_i] -= 1
|
|
1721
|
+
only_ints_vals[get_rdm_i] -= 1
|
|
1722
|
+
|
|
1723
|
+
|
|
1719
1724
|
if vector.count(5) == 1:
|
|
1720
1725
|
idx = vector.index(5)
|
|
1721
1726
|
vector[idx] = 0
|
|
@@ -2373,14 +2378,14 @@ class ObjectiveFunction(object):
|
|
|
2373
2378
|
vector) # just added to grab the fixed fit TODO: Clean up
|
|
2374
2379
|
dispersion = model_nature.get('dispersion')
|
|
2375
2380
|
self.define_selfs_fixed_rdm_cor(model_nature)
|
|
2376
|
-
|
|
2381
|
+
|
|
2377
2382
|
try:
|
|
2378
2383
|
self.repair(vector)
|
|
2379
2384
|
except Exception as e:
|
|
2380
2385
|
print('problem repairing here')
|
|
2381
2386
|
print(vector)
|
|
2382
2387
|
print(e)
|
|
2383
|
-
|
|
2388
|
+
|
|
2384
2389
|
layout = vector.copy()
|
|
2385
2390
|
trial_run = 0
|
|
2386
2391
|
max_trial = 0
|
|
@@ -4777,14 +4782,12 @@ class ObjectiveFunction(object):
|
|
|
4777
4782
|
Bf = betas[0:Kf] # Fixed betas
|
|
4778
4783
|
|
|
4779
4784
|
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
print('check this')
|
|
4785
|
+
# Bf_new, Br_new, Br_std_new, Br_rema = self.extract_parameters(betas, Kf, Kr, Kchol_a, Kr_b_a)
|
|
4786
|
+
|
|
4783
4787
|
|
|
4784
4788
|
Vdf = dev.np.einsum('njk,k -> nj', Xdf, Bf, dtype=np.float64) # (N, P)
|
|
4785
4789
|
br = betas[Kf:Kf + Kr]
|
|
4786
|
-
|
|
4787
|
-
print('why')
|
|
4790
|
+
|
|
4788
4791
|
|
|
4789
4792
|
|
|
4790
4793
|
#i have an array of betas, Kf represents the first kf of the betas array
|
|
@@ -4804,8 +4807,7 @@ class ObjectiveFunction(object):
|
|
|
4804
4807
|
|
|
4805
4808
|
|
|
4806
4809
|
brstd = betas[Kf + Kr:Kf + Kr + Kr_b + Kchol]
|
|
4807
|
-
|
|
4808
|
-
print('okay')
|
|
4810
|
+
|
|
4809
4811
|
# initialises size matrix
|
|
4810
4812
|
proba = [] # Temp batching storage
|
|
4811
4813
|
|
|
@@ -4820,7 +4822,7 @@ class ObjectiveFunction(object):
|
|
|
4820
4822
|
# Br = self._transform_rand_betas(br, np.abs(
|
|
4821
4823
|
# brstd), draws_) # Get random coefficients, old method
|
|
4822
4824
|
#TODO
|
|
4823
|
-
|
|
4825
|
+
|
|
4824
4826
|
Br = self._transform_rand_betas(br,
|
|
4825
4827
|
brstd, draws_) # Get random coefficients
|
|
4826
4828
|
self.naming_for_printing(betas, dispersion=dispersion, model_nature=model_nature)
|
|
@@ -6276,8 +6278,9 @@ class ObjectiveFunction(object):
|
|
|
6276
6278
|
transform, distribution, None, dispersion=dispersion)
|
|
6277
6279
|
|
|
6278
6280
|
def get_named_indices(self, names):
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
+
# Change substrings issue
|
|
6282
|
+
indices = [i for i, name in enumerate(self._characteristics_names) if name == names]
|
|
6283
|
+
indices = [i for i, name in enumerate(self._characteristics_names) if name in names and isinstance(name, str)]
|
|
6281
6284
|
return indices
|
|
6282
6285
|
|
|
6283
6286
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/_device_cust.py
RENAMED
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/data_split_helper.py
RENAMED
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/helperprocess.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/metaheuristics.py
RENAMED
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor/pareto_logger__plot.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor.egg-info/requires.txt
RENAMED
|
File without changes
|
{metacountregressor-0.1.114 → metacountregressor-0.1.116}/metacountregressor.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|