metacountregressor 0.1.309__tar.gz → 0.1.310__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 (31) hide show
  1. {metacountregressor-0.1.309/metacountregressor.egg-info → metacountregressor-0.1.310}/PKG-INFO +1 -1
  2. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/solution.py +25 -26
  3. {metacountregressor-0.1.309 → metacountregressor-0.1.310/metacountregressor.egg-info}/PKG-INFO +1 -1
  4. metacountregressor-0.1.310/version.txt +1 -0
  5. metacountregressor-0.1.309/version.txt +0 -1
  6. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/LICENSE.txt +0 -0
  7. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/MANIFEST.in +0 -0
  8. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/README.md +0 -0
  9. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/README.rst +0 -0
  10. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/__init__.py +0 -0
  11. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/_device_cust.py +0 -0
  12. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/app_main.py +0 -0
  13. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/data_split_helper.py +0 -0
  14. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/halton.py +0 -0
  15. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/helperprocess.py +0 -0
  16. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/main.py +0 -0
  17. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/main_old.py +0 -0
  18. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/metaheuristics.py +0 -0
  19. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/pareto_file.py +0 -0
  20. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/pareto_logger__plot.py +0 -0
  21. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/setup.py +0 -0
  22. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/single_objective_finder.py +0 -0
  23. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor/test_generated_paper2.py +0 -0
  24. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor.egg-info/SOURCES.txt +0 -0
  25. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor.egg-info/dependency_links.txt +0 -0
  26. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor.egg-info/not-zip-safe +0 -0
  27. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor.egg-info/requires.txt +0 -0
  28. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/metacountregressor.egg-info/top_level.txt +0 -0
  29. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/setup.cfg +0 -0
  30. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/setup.py +0 -0
  31. {metacountregressor-0.1.309 → metacountregressor-0.1.310}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metacountregressor
3
- Version: 0.1.309
3
+ Version: 0.1.310
4
4
  Summary: Extensive Testing for Estimation of Data Count Models
5
5
  Home-page: https://github.com/zahern/CountDataEstimation
6
6
  Author: Zeke Ahern
@@ -3549,37 +3549,27 @@ class ObjectiveFunction(object):
3549
3549
 
3550
3550
  return inv_hess
3551
3551
 
3552
+ def _correlated_pos(self, correlation, varnames):
3553
+ if (isinstance(correlation, list)):
3554
+ correlationpos = [varnames.tolist().index(x) for x in
3555
+ varnames if x in correlation]
3556
+ uncorrelatedpos = [varnames.tolist().index(x) for x in
3557
+ varnames if x not in correlation]
3558
+ return
3559
+
3552
3560
  def _chol_mat(self, correlationLength, br, Br_w, correlation):
3553
3561
  # if correlation = True correlation pos is randpos, if list get correct pos
3554
- dont_run = 0
3555
- if dont_run:
3556
- correlationpos = []
3557
- varnames = ['a', 'b', 'c', 'd', 'e', 'f']
3558
- varnames = np.asarray(varnames)
3559
- randvars = ['c', 'd', 'e', 'f']
3560
- correlation = ['e', 'f']
3561
- if randvars:
3562
- # Position of correlated variables within randvars
3563
- correlationpos = [varnames.tolist().index(x)
3564
- for x in varnames if x in randvars]
3565
- if (isinstance(correlation, list)):
3566
- self.correlationpos = [varnames.tolist().index(x) for x in
3567
- varnames if x in correlation]
3568
- self.uncorrelatedpos = [varnames.tolist().index(x) for x in
3569
- varnames if x not in correlation]
3570
- # if correlation = True correlation pos is randpos, if list get correct pos
3571
- correlationpos = []
3572
- else:
3573
- varnames = self.none_handler(
3562
+
3563
+
3564
+
3565
+ varnames = self.none_handler(
3574
3566
  self.rdm_fit) + self.none_handler(self.rdm_cor_fit)
3575
3567
 
3576
- if (isinstance(correlation, list)):
3568
+
3577
3569
  # Kchol, permutations of specified params in correlation list
3578
- Kchol = int((len(correlation) *
3570
+ Kchol = int((len(correlation) *
3579
3571
  (len(correlation) + 1)) / 2)
3580
- else:
3581
- # i.e. correlation = True, Kchol permutations of random paramaters
3582
- Kchol = int((len(br) * (len(br) + 1)) / 2)
3572
+
3583
3573
 
3584
3574
  # creating cholesky matrix for the variance-covariance matrix
3585
3575
  # all random variables not included in correlation will only
@@ -3608,7 +3598,16 @@ class ObjectiveFunction(object):
3608
3598
  is_correlated = True
3609
3599
  else:
3610
3600
  is_correlated = False
3611
- rv_val = chol[chol_count] if is_correlated else br_w[rv_count]
3601
+ try:
3602
+ rv_val = chol[chol_count] if is_correlated else br_w[rv_count]
3603
+ except:
3604
+ print(self.rdm_cor_fit, 'rdm_cor_fit')
3605
+ print(self.rdm_fit, 'rdm_fit')
3606
+ print('varnames', varnames)
3607
+ print(br, 'br')
3608
+ print(Br_w, 'Br_w')
3609
+ print(chol, 'chol')
3610
+ print(br_w, 'br_w')
3612
3611
  chol_mat_temp[rv_count_all, rv_count_all] = rv_val
3613
3612
  rv_count_all += 1
3614
3613
  if is_correlated:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metacountregressor
3
- Version: 0.1.309
3
+ Version: 0.1.310
4
4
  Summary: Extensive Testing for Estimation of Data Count Models
5
5
  Home-page: https://github.com/zahern/CountDataEstimation
6
6
  Author: Zeke Ahern
@@ -0,0 +1 @@
1
+ 0.1.310
@@ -1 +0,0 @@
1
- 0.1.309