Skip to content

Commit

Permalink
Update tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermo-navas-palencia committed Jan 14, 2024
1 parent 591e224 commit 323cb1e
Show file tree
Hide file tree
Showing 20 changed files with 1,969 additions and 1,475 deletions.
864 changes: 433 additions & 431 deletions doc/source/tutorials/tutorial_binary.ipynb

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions doc/source/tutorials/tutorial_binary_large_scale.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"optbinning (Version 0.18.0)\n",
"Copyright (c) 2019-2023 Guillermo Navas-Palencia, Apache License 2.0\n",
"optbinning (Version 0.19.0)\n",
"Copyright (c) 2019-2024 Guillermo Navas-Palencia, Apache License 2.0\n",
"\n",
" Name : REGION_POPULATION_RELATIVE \n",
" Status : OPTIMAL \n",
Expand All @@ -147,18 +147,18 @@
" Solver statistics\n",
" Type cp\n",
" Number of booleans 3148\n",
" Number of branches 120892\n",
" Number of conflicts 34005\n",
" Number of branches 131879\n",
" Number of conflicts 34480\n",
" Objective value 37758\n",
" Best objective bound 37758\n",
"\n",
" Timing\n",
" Total time 154.53 sec\n",
" Pre-processing 0.01 sec ( 0.01%)\n",
" Pre-binning 0.48 sec ( 0.31%)\n",
" Solver 154.03 sec ( 99.68%)\n",
" model generation 25.98 sec ( 16.87%)\n",
" optimizer 128.06 sec ( 83.13%)\n",
" Total time 145.75 sec\n",
" Pre-processing 0.02 sec ( 0.02%)\n",
" Pre-binning 0.47 sec ( 0.32%)\n",
" Solver 145.25 sec ( 99.66%)\n",
" model generation 25.35 sec ( 17.45%)\n",
" optimizer 119.90 sec ( 82.55%)\n",
" Post-processing 0.00 sec ( 0.00%)\n",
"\n"
]
Expand Down Expand Up @@ -309,8 +309,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"optbinning (Version 0.18.0)\n",
"Copyright (c) 2019-2023 Guillermo Navas-Palencia, Apache License 2.0\n",
"optbinning (Version 0.19.0)\n",
"Copyright (c) 2019-2024 Guillermo Navas-Palencia, Apache License 2.0\n",
"\n",
" Name : REGION_POPULATION_RELATIVE \n",
" Status : OPTIMAL \n",
Expand All @@ -322,18 +322,18 @@
" Solver statistics\n",
" Type cp\n",
" Number of booleans 424\n",
" Number of branches 874\n",
" Number of conflicts 9\n",
" Number of branches 872\n",
" Number of conflicts 8\n",
" Objective value 37758\n",
" Best objective bound 37758\n",
"\n",
" Timing\n",
" Total time 9.77 sec\n",
" Pre-processing 0.00 sec ( 0.03%)\n",
" Pre-binning 0.43 sec ( 4.38%)\n",
" Solver 9.34 sec ( 95.54%)\n",
" model generation 8.65 sec ( 92.58%)\n",
" optimizer 0.69 sec ( 7.42%)\n",
" Total time 9.79 sec\n",
" Pre-processing 0.00 sec ( 0.04%)\n",
" Pre-binning 0.46 sec ( 4.69%)\n",
" Solver 9.32 sec ( 95.22%)\n",
" model generation 8.63 sec ( 92.60%)\n",
" optimizer 0.69 sec ( 7.40%)\n",
" Post-processing 0.00 sec ( 0.01%)\n",
"\n"
]
Expand Down Expand Up @@ -381,7 +381,7 @@
" 4 5 14.925402 1.118468e-04 9.999989e-01 1.123668e-06\n",
" 5 6 3.969732 4.632513e-02 9.768847e-01 2.311530e-02\n",
" 6 7 40.662233 1.809509e-10 1.000000e+00 3.330669e-16\n",
" 7 8 29.296187 6.211781e-08 1.000000e+00 4.795253e-11\n",
" 7 8 29.296187 6.211781e-08 1.000000e+00 4.795264e-11\n",
" 8 9 10.992632 9.147483e-04 9.997649e-01 2.351244e-04\n",
"\n"
]
Expand Down
20 changes: 10 additions & 10 deletions doc/source/tutorials/tutorial_binary_under_uncertainty.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"optbinning (Version 0.18.0)\n",
"Copyright (c) 2019-2023 Guillermo Navas-Palencia, Apache License 2.0\n",
"optbinning (Version 0.19.0)\n",
"Copyright (c) 2019-2024 Guillermo Navas-Palencia, Apache License 2.0\n",
"\n",
" Begin options\n",
" name * d\n",
Expand Down Expand Up @@ -338,18 +338,18 @@
" Solver statistics\n",
" Type cp\n",
" Number of booleans 40\n",
" Number of branches 80\n",
" Number of conflicts 0\n",
" Number of branches 91\n",
" Number of conflicts 1\n",
" Objective value 2736534\n",
" Best objective bound 2736534\n",
"\n",
" Timing\n",
" Total time 1.22 sec\n",
" Pre-processing 0.01 sec ( 0.87%)\n",
" Pre-binning 0.71 sec ( 58.34%)\n",
" Solver 0.49 sec ( 40.61%)\n",
" model generation 0.45 sec ( 90.75%)\n",
" optimizer 0.05 sec ( 9.25%)\n",
" Total time 1.21 sec\n",
" Pre-processing 0.01 sec ( 0.90%)\n",
" Pre-binning 0.70 sec ( 58.18%)\n",
" Solver 0.49 sec ( 40.72%)\n",
" model generation 0.44 sec ( 90.22%)\n",
" optimizer 0.05 sec ( 9.78%)\n",
" Post-processing 0.00 sec ( 0.10%)\n",
"\n"
]
Expand Down
349 changes: 167 additions & 182 deletions doc/source/tutorials/tutorial_binning_2d.ipynb

Large diffs are not rendered by default.

426 changes: 415 additions & 11 deletions doc/source/tutorials/tutorial_binning_process_FICO_update_binning.ipynb

Large diffs are not rendered by default.

41 changes: 33 additions & 8 deletions doc/source/tutorials/tutorial_binning_process_FICO_xAI.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"outputs": [],
"source": [
"from optbinning import BinningProcess\n",
"from tests.datasets import load_boston\n",
"\n",
"from sklearn.datasets import load_boston\n",
"from sklearn.linear_model import LinearRegression\n",
"from sklearn.metrics import mean_squared_error, mean_absolute_error, r2_score\n",
"from sklearn.model_selection import train_test_split\n",
Expand Down Expand Up @@ -111,8 +111,10 @@
"text/plain": [
"Pipeline(steps=[('binning_process',\n",
" BinningProcess(categorical_variables=['CHAS'],\n",
" variable_names=array(['CRIM', 'ZN', 'INDUS', 'CHAS', 'NOX', 'RM', 'AGE', 'DIS', 'RAD',\n",
" 'TAX', 'PTRATIO', 'B', 'LSTAT'], dtype='<U7'))),\n",
" variable_names=['CRIM', 'ZN', 'INDUS', 'CHAS',\n",
" 'NOX', 'RM', 'AGE', 'DIS',\n",
" 'RAD', 'TAX', 'PTRATIO', 'B',\n",
" 'LSTAT'])),\n",
" ('regressor', LinearRegression())])"
]
},
Expand Down Expand Up @@ -204,8 +206,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"optbinning (Version 0.18.0)\n",
"Copyright (c) 2019-2023 Guillermo Navas-Palencia, Apache License 2.0\n",
"optbinning (Version 0.19.0)\n",
"Copyright (c) 2019-2024 Guillermo Navas-Palencia, Apache License 2.0\n",
"\n",
" Statistics\n",
" Number of records 404\n",
Expand All @@ -216,7 +218,7 @@
" Number of categorical 1\n",
" Number of selected 13\n",
"\n",
" Time 1.7762 sec\n",
" Time 2.1547 sec\n",
"\n"
]
}
Expand Down
10 changes: 5 additions & 5 deletions doc/source/tutorials/tutorial_binning_process_telco_churn.ipynb

Large diffs are not rendered by default.

155 changes: 81 additions & 74 deletions doc/source/tutorials/tutorial_continuous.ipynb

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions doc/source/tutorials/tutorial_continuous_2d.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 323cb1e

Please sign in to comment.