metacountregressor 0.1.138__tar.gz → 0.1.139__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.138 → metacountregressor-0.1.139}/PKG-INFO +1 -1
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/helperprocess.py +1 -2
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/solution.py +12 -2
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor.egg-info/PKG-INFO +1 -1
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/LICENSE.txt +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/README.rst +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/__init__.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/_device_cust.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/app_main.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/data_split_helper.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/halton.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/main.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/main_old.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/metaheuristics.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/pareto_file.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/pareto_logger__plot.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/setup.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/single_objective_finder.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/test_generated_paper2.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor.egg-info/SOURCES.txt +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor.egg-info/dependency_links.txt +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor.egg-info/not-zip-safe +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor.egg-info/requires.txt +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor.egg-info/top_level.txt +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/setup.cfg +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/setup.py +0 -0
- {metacountregressor-0.1.138 → metacountregressor-0.1.139}/tests/test.py +0 -0
    
        {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/helperprocess.py
    RENAMED
    
    | @@ -1,12 +1,11 @@ | |
| 1 1 | 
             
            from os.path import exists
         | 
| 2 | 
            -
             | 
| 3 2 | 
             
            import numpy as np
         | 
| 4 3 | 
             
            import pandas as pd
         | 
| 5 4 | 
             
            import csv
         | 
| 6 5 | 
             
            import matplotlib.pyplot as plt
         | 
| 7 6 | 
             
            from scipy import stats as st
         | 
| 8 7 | 
             
            from sklearn.preprocessing import StandardScaler
         | 
| 9 | 
            -
             | 
| 8 | 
            +
             | 
| 10 9 |  | 
| 11 10 | 
             
            plt.style.use('https://github.com/dhaitz/matplotlib-stylesheets/raw/master/pitayasmoothie-dark.mplstyle')
         | 
| 12 11 |  | 
| @@ -32,7 +32,7 @@ from sklearn.metrics import mean_squared_error as MSPE | |
| 32 32 | 
             
            from statsmodels.tools.numdiff import approx_fprime, approx_hess
         | 
| 33 33 | 
             
            from sklearn.preprocessing import StandardScaler, MinMaxScaler
         | 
| 34 34 | 
             
            from texttable import Texttable
         | 
| 35 | 
            -
             | 
| 35 | 
            +
            import time
         | 
| 36 36 | 
             
            try:
         | 
| 37 37 | 
             
                from ._device_cust import device as dev
         | 
| 38 38 | 
             
                from .pareto_file import Pareto, Solution
         | 
| @@ -204,12 +204,17 @@ class ObjectiveFunction(object): | |
| 204 204 | 
             
                    if 'instance_number' in kwargs:
         | 
| 205 205 | 
             
                        self.instance_number = str(kwargs['instance_number'])
         | 
| 206 206 | 
             
                    else:
         | 
| 207 | 
            +
                        
         | 
| 208 | 
            +
                        print('no name set, setting name as 0')
         | 
| 207 209 | 
             
                        self.instance_number = str(0)  # set an arbitrary instance number
         | 
| 208 210 |  | 
| 209 211 | 
             
                    if not os.path.exists(self.instance_number):
         | 
| 210 | 
            -
                         | 
| 212 | 
            +
                        if kwargs.get('make_directory', True):
         | 
| 213 | 
            +
                            print('Making a Directory, if you want to stop from storing the files to this directory set argumet: make_directory:False')
         | 
| 214 | 
            +
                            os.makedirs(self.instance_number)
         | 
| 211 215 |  | 
| 212 216 | 
             
                    if not hasattr(self, '_obj_1'):
         | 
| 217 | 
            +
                        print('_obj_1 required, define as bic, aic, ll')
         | 
| 213 218 | 
             
                        raise Exception
         | 
| 214 219 |  | 
| 215 220 | 
             
                    self.pvalue_penalty = float(kwargs.get('pvalue_penalty', 0.5))
         | 
| @@ -238,6 +243,9 @@ class ObjectiveFunction(object): | |
| 238 243 | 
             
                        self.test_percentage = float(kwargs.get('test_percentage', 0))
         | 
| 239 244 | 
             
                        self.val_percentage = float(kwargs.get('val_percentage', 0))
         | 
| 240 245 | 
             
                        if self.test_percentage == 0:
         | 
| 246 | 
            +
                            print('test percentage is 0, please enter arg test_percentage as decimal, eg 0.8')
         | 
| 247 | 
            +
                            print('continuing single objective')
         | 
| 248 | 
            +
                            time.sleep(2)
         | 
| 241 249 | 
             
                            self.is_multi = False
         | 
| 242 250 |  | 
| 243 251 | 
             
                        if 'panels' in kwargs and not (kwargs.get('panels') == None):
         | 
| @@ -348,6 +356,7 @@ class ObjectiveFunction(object): | |
| 348 356 |  | 
| 349 357 |  | 
| 350 358 | 
             
                    else:
         | 
| 359 | 
            +
                        print('No Panels. Grouped Random Paramaters Will not be estimated')
         | 
| 351 360 | 
             
                        self.G = None
         | 
| 352 361 | 
             
                        self._Gnum = 1
         | 
| 353 362 | 
             
                        self._max_group_all_means = 0
         | 
| @@ -413,6 +422,7 @@ class ObjectiveFunction(object): | |
| 413 422 | 
             
                        print('Setup Complete...')
         | 
| 414 423 | 
             
                    else:
         | 
| 415 424 | 
             
                        print('No Panels Supplied')
         | 
| 425 | 
            +
                        print('Setup Complete...')
         | 
| 416 426 | 
             
                        self._characteristics_names = list(self._x_data.columns)
         | 
| 417 427 | 
             
                    # define the variables
         | 
| 418 428 | 
             
                    # self._transformations = ["no", "sqrt", "log", "exp", "fact", "arcsinh", 2, 3]
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/_device_cust.py
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/data_split_helper.py
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/metaheuristics.py
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor/pareto_logger__plot.py
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor.egg-info/SOURCES.txt
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor.egg-info/not-zip-safe
    RENAMED
    
    | 
            File without changes
         | 
    
        {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor.egg-info/requires.txt
    RENAMED
    
    | 
            File without changes
         | 
    
        {metacountregressor-0.1.138 → metacountregressor-0.1.139}/metacountregressor.egg-info/top_level.txt
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         |