metacountregressor 0.1.132__tar.gz → 0.1.133__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.132 → metacountregressor-0.1.133}/PKG-INFO +1 -1
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/helperprocess.py +15 -2
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor.egg-info/PKG-INFO +1 -1
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/LICENSE.txt +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/README.rst +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/__init__.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/_device_cust.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/app_main.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/data_split_helper.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/halton.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/main.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/main_old.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/metaheuristics.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/pareto_file.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/pareto_logger__plot.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/setup.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/single_objective_finder.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/solution.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/test_generated_paper2.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor.egg-info/SOURCES.txt +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor.egg-info/dependency_links.txt +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor.egg-info/not-zip-safe +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor.egg-info/requires.txt +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor.egg-info/top_level.txt +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/setup.cfg +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/setup.py +0 -0
- {metacountregressor-0.1.132 → metacountregressor-0.1.133}/tests/test.py +0 -0
    
        {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/helperprocess.py
    RENAMED
    
    | @@ -192,7 +192,19 @@ def guess_low_medium_high(column_name, series): | |
| 192 192 |  | 
| 193 193 | 
             
                # Define the bins and labels
         | 
| 194 194 | 
             
                bins = [np.min(series) - 1, low_threshold, high_threshold, np.max(series)]
         | 
| 195 | 
            -
                 | 
| 195 | 
            +
                # Handle duplicate bins by adjusting labels
         | 
| 196 | 
            +
                if len(set(bins)) < len(bins):  # Check for duplicate bin edges
         | 
| 197 | 
            +
                    if low_threshold == high_threshold:
         | 
| 198 | 
            +
                        # Collapse to two bins (Low and High)
         | 
| 199 | 
            +
                        bins = [np.min(series) - 1, low_threshold, np.max(series)]
         | 
| 200 | 
            +
                        labels = ['Low', 'High']
         | 
| 201 | 
            +
                    else:
         | 
| 202 | 
            +
                        # Collapse to three unique bins
         | 
| 203 | 
            +
                        bins = sorted(set(bins))  # Remove duplicate edges
         | 
| 204 | 
            +
                        labels = [f'Bin {i + 1}' for i in range(len(bins) - 1)]
         | 
| 205 | 
            +
                else:
         | 
| 206 | 
            +
                    # Standard case: Low, Medium, High
         | 
| 207 | 
            +
                    labels = ['Low', 'Medium', 'High']
         | 
| 196 208 |  | 
| 197 209 | 
             
                return {
         | 
| 198 210 | 
             
                    'type': 'bin',
         | 
| @@ -211,7 +223,8 @@ def transform_dataframe(df, config): | |
| 211 223 | 
             
                            df[column],
         | 
| 212 224 | 
             
                            bins=settings['bins'],
         | 
| 213 225 | 
             
                            labels=settings['labels'],
         | 
| 214 | 
            -
                            right=False
         | 
| 226 | 
            +
                            right=False,
         | 
| 227 | 
            +
             | 
| 215 228 | 
             
                        )
         | 
| 216 229 | 
             
                        # One-hot encode the binned column
         | 
| 217 230 | 
             
                        binned_dummies = pd.get_dummies(binned, prefix=settings['prefix'])
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/_device_cust.py
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/data_split_helper.py
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/metaheuristics.py
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor/pareto_logger__plot.py
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor.egg-info/SOURCES.txt
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
    
        {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor.egg-info/not-zip-safe
    RENAMED
    
    | 
            File without changes
         | 
    
        {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor.egg-info/requires.txt
    RENAMED
    
    | 
            File without changes
         | 
    
        {metacountregressor-0.1.132 → metacountregressor-0.1.133}/metacountregressor.egg-info/top_level.txt
    RENAMED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         |