metacountregressor 0.1.304__tar.gz → 0.1.306__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.304/metacountregressor.egg-info → metacountregressor-0.1.306}/PKG-INFO +1 -1
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/solution.py +9 -8
- {metacountregressor-0.1.304 → metacountregressor-0.1.306/metacountregressor.egg-info}/PKG-INFO +1 -1
- metacountregressor-0.1.306/version.txt +1 -0
- metacountregressor-0.1.304/version.txt +0 -1
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/LICENSE.txt +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/MANIFEST.in +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/README.md +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/README.rst +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/__init__.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/_device_cust.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/app_main.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/data_split_helper.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/halton.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/helperprocess.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/main.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/main_old.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/metaheuristics.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/pareto_file.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/pareto_logger__plot.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/setup.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/single_objective_finder.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/test_generated_paper2.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor.egg-info/SOURCES.txt +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor.egg-info/dependency_links.txt +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor.egg-info/not-zip-safe +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor.egg-info/requires.txt +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor.egg-info/top_level.txt +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/setup.cfg +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/setup.py +0 -0
- {metacountregressor-0.1.304 → metacountregressor-0.1.306}/tests/test.py +0 -0
@@ -611,11 +611,12 @@ class ObjectiveFunction(object):
|
|
611
611
|
Function to for proceccing testing, and finding a suitable initial coefficient (linear intercept)
|
612
612
|
"""
|
613
613
|
if hard_code:
|
614
|
+
# Grouped Terns TODO
|
614
615
|
manual_fit_spec = {
|
615
616
|
'fixed_terms': ['Constant', 'US', 'RSMS', 'MCV'],
|
616
617
|
'rdm_terms': ['RSHS:normal', 'AADT:normal', 'Curve50:normal'],
|
617
618
|
'rdm_cor_terms': [],
|
618
|
-
'
|
619
|
+
'group_rdm': [],
|
619
620
|
'hetro_in_means': [],
|
620
621
|
'transformations': ['no', 'log', 'log', 'no', 'no', 'no', 'no'],
|
621
622
|
'dispersion': 1
|
@@ -637,7 +638,7 @@ class ObjectiveFunction(object):
|
|
637
638
|
'fixed_terms': ['const'],
|
638
639
|
'rdm_terms': [],
|
639
640
|
'rdm_cor_terms': [],
|
640
|
-
'
|
641
|
+
'group_rdm': [],
|
641
642
|
'hetro_in_means': [],
|
642
643
|
'transformations': ['no'],
|
643
644
|
'dispersion': 1
|
@@ -6225,7 +6226,7 @@ class ObjectiveFunction(object):
|
|
6225
6226
|
# Dispersion adds one additional parameter if enabled
|
6226
6227
|
dispersion_param = 1 if dispersion > 0 else 0
|
6227
6228
|
return sum(self.get_num_params()) + dispersion_param
|
6228
|
-
|
6229
|
+
|
6229
6230
|
def _build_initial_params(self, num_coefficients, dispersion):
|
6230
6231
|
"""
|
6231
6232
|
Build the initial parameter array for optimization.
|
@@ -6238,11 +6239,11 @@ class ObjectiveFunction(object):
|
|
6238
6239
|
Initial parameter array.
|
6239
6240
|
"""
|
6240
6241
|
# Generate random initial coefficients
|
6241
|
-
initial_params = np.random.uniform(
|
6242
|
+
initial_params = np.random.uniform(0.0000, 0.01, size=num_coefficients)
|
6242
6243
|
parma_sum = sum(self.get_num_params()[:2])
|
6243
6244
|
|
6244
6245
|
|
6245
|
-
initial_params[parma_sum:-dispersion] =0.
|
6246
|
+
initial_params[parma_sum:-dispersion] =0.0001
|
6246
6247
|
|
6247
6248
|
# Add dispersion parameter if applicable
|
6248
6249
|
if dispersion > 0:
|
@@ -6251,7 +6252,7 @@ class ObjectiveFunction(object):
|
|
6251
6252
|
|
6252
6253
|
return initial_params
|
6253
6254
|
|
6254
|
-
def fitRegression(self, mod, dispersion=0, maxiter=
|
6255
|
+
def fitRegression(self, mod, dispersion=0, maxiter=20000, batch_size=None, num_hess=False, **kwargs):
|
6255
6256
|
"""
|
6256
6257
|
Fits a Poisson regression, NB regression (dispersion=1), or GP regression (dispersion=2).
|
6257
6258
|
|
@@ -6296,7 +6297,7 @@ class ObjectiveFunction(object):
|
|
6296
6297
|
log_lik, aic, bic, stderr, zvalues, pvalues, in_sample_mae, out_sample_mae = self._postprocess_results(
|
6297
6298
|
optimization_result, XX, XX_test, y, mod.get('y_test'), dispersion, mod
|
6298
6299
|
)
|
6299
|
-
|
6300
|
+
|
6300
6301
|
# Extract other outputs
|
6301
6302
|
betas = optimization_result['x'] if optimization_result is not None else None
|
6302
6303
|
is_halton = Xr is not None and Xr.size > 0 # Halton draws used if `Xr` is not empty
|
@@ -7345,7 +7346,7 @@ class ObjectiveFunction(object):
|
|
7345
7346
|
obj_1[self._obj_1] = 10 ** 100
|
7346
7347
|
|
7347
7348
|
else:
|
7348
|
-
print('
|
7349
|
+
print('Did not converge')
|
7349
7350
|
obj_1[self._obj_1] = 10 ** 100
|
7350
7351
|
|
7351
7352
|
self.significant = 3
|
@@ -0,0 +1 @@
|
|
1
|
+
0.1.306
|
@@ -1 +0,0 @@
|
|
1
|
-
0.1.304
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/_device_cust.py
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/data_split_helper.py
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/helperprocess.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/metaheuristics.py
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor/pareto_logger__plot.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor.egg-info/not-zip-safe
RENAMED
File without changes
|
{metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor.egg-info/requires.txt
RENAMED
File without changes
|
{metacountregressor-0.1.304 → metacountregressor-0.1.306}/metacountregressor.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|