metacountregressor 0.1.307__py3-none-any.whl → 0.1.308__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.
- metacountregressor/solution.py +6 -5
- {metacountregressor-0.1.307.dist-info → metacountregressor-0.1.308.dist-info}/METADATA +1 -1
- {metacountregressor-0.1.307.dist-info → metacountregressor-0.1.308.dist-info}/RECORD +6 -6
- {metacountregressor-0.1.307.dist-info → metacountregressor-0.1.308.dist-info}/WHEEL +0 -0
- {metacountregressor-0.1.307.dist-info → metacountregressor-0.1.308.dist-info}/licenses/LICENSE.txt +0 -0
- {metacountregressor-0.1.307.dist-info → metacountregressor-0.1.308.dist-info}/top_level.txt +0 -0
metacountregressor/solution.py
CHANGED
@@ -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
|
@@ -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
|
|
@@ -11,10 +11,10 @@ metacountregressor/pareto_file.py,sha256=whySaoPAUWYjyI8zo0hwAOa3rFk6SIUlHSpqZiL
|
|
11
11
|
metacountregressor/pareto_logger__plot.py,sha256=mEU2QN4wmsM7t39GJ_XhJ_jjsdl09JOmG0U2jICrAkI,30037
|
12
12
|
metacountregressor/setup.py,sha256=5UcQCCLR8Fm5odA3MX78WwahavxFq4mVD6oq0IuQvAY,936
|
13
13
|
metacountregressor/single_objective_finder.py,sha256=jVG7GJBqzSP4_riYr-kMMKy_LE3SlGmKMunNhHYxgRg,8011
|
14
|
-
metacountregressor/solution.py,sha256=
|
14
|
+
metacountregressor/solution.py,sha256=vILgge6nE7U0tLRLAoBMtDGb05JHqOuZ2s8_JHqncKw,317567
|
15
15
|
metacountregressor/test_generated_paper2.py,sha256=pwOoRzl1jJIIOUAAvbkT6HmmTQ81mwpsshn9SLdKOg8,3927
|
16
|
-
metacountregressor-0.1.
|
17
|
-
metacountregressor-0.1.
|
18
|
-
metacountregressor-0.1.
|
19
|
-
metacountregressor-0.1.
|
20
|
-
metacountregressor-0.1.
|
16
|
+
metacountregressor-0.1.308.dist-info/licenses/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
17
|
+
metacountregressor-0.1.308.dist-info/METADATA,sha256=aZBXdSFKdiXo2vXcl-pkUvD5w0O66H1g63phLqyKXFk,23581
|
18
|
+
metacountregressor-0.1.308.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
19
|
+
metacountregressor-0.1.308.dist-info/top_level.txt,sha256=zGG7UC5WIpr76gsFUpwJ4En2aCcoNTONBaS3OewwjR0,19
|
20
|
+
metacountregressor-0.1.308.dist-info/RECORD,,
|
File without changes
|
{metacountregressor-0.1.307.dist-info → metacountregressor-0.1.308.dist-info}/licenses/LICENSE.txt
RENAMED
File without changes
|
File without changes
|