Skip to content

Commit

Permalink
fixed ipynb(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeoli committed Mar 5, 2021
1 parent 94b2896 commit bc788ef
Show file tree
Hide file tree
Showing 8 changed files with 1,936 additions and 2,448 deletions.
580 changes: 301 additions & 279 deletions notebooks/ml/CM_SVC_report_experiments.ipynb

Large diffs are not rendered by default.

3,701 changes: 1,546 additions & 2,155 deletions notebooks/ml/CM_SVR_report_experiments.ipynb

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions notebooks/ml/tex/experiments/linear_dual_svr.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
\begin{tabular}{lllrrrrr}
\toprule
optimizer & C & epsilon & fit\_time & train\_r2 & test\_r2 & nr\_train\_sv & nr\_test\_sv \\
\midrule
cvxopt & 1 & 0.1 & 0.016043 & 0.917772 & 0.914479 & 67 & 67 \\
cvxopt & 1 & 0.2 & 0.013932 & 0.918341 & 0.915058 & 67 & 67 \\
cvxopt & 1 & 0.3 & 0.013713 & 0.918942 & 0.915614 & 66 & 66 \\
libsvm & 1 & 0.1 & 0.001461 & 0.301059 & 0.267819 & 66 & 66 \\
libsvm & 1 & 0.2 & 0.001329 & 0.301044 & 0.267620 & 66 & 66 \\
libsvm & 1 & 0.3 & 0.001335 & 0.301096 & 0.267529 & 66 & 66 \\
smo & 1 & 0.1 & 0.015769 & 0.917773 & 0.914442 & 66 & 66 \\
smo & 1 & 0.2 & 0.014345 & 0.918341 & 0.915019 & 66 & 66 \\
smo & 1 & 0.3 & 0.036733 & 0.918942 & 0.915576 & 66 & 66 \\
cvxopt & 10 & 0.1 & 0.011870 & 0.977920 & 0.972466 & 67 & 67 \\
cvxopt & 10 & 0.2 & 0.011431 & 0.977926 & 0.972474 & 67 & 67 \\
cvxopt & 10 & 0.3 & 0.010734 & 0.977954 & 0.972562 & 66 & 66 \\
libsvm & 10 & 0.1 & 0.001118 & 0.854129 & 0.822864 & 66 & 66 \\
libsvm & 10 & 0.2 & 0.001050 & 0.854232 & 0.822988 & 66 & 66 \\
libsvm & 10 & 0.3 & 0.001065 & 0.854309 & 0.823114 & 65 & 65 \\
smo & 10 & 0.1 & 0.066876 & 0.977920 & 0.972445 & 66 & 66 \\
smo & 10 & 0.2 & 0.132380 & 0.977926 & 0.972457 & 65 & 65 \\
smo & 10 & 0.3 & 0.056308 & 0.977953 & 0.972544 & 65 & 65 \\
cvxopt & 100 & 0.1 & 0.010851 & 0.977788 & 0.974150 & 67 & 67 \\
cvxopt & 100 & 0.2 & 0.009956 & 0.977742 & 0.974033 & 67 & 67 \\
cvxopt & 100 & 0.3 & 0.010245 & 0.977737 & 0.973956 & 67 & 67 \\
libsvm & 100 & 0.1 & 0.001248 & 0.972911 & 0.957216 & 66 & 66 \\
libsvm & 100 & 0.2 & 0.001488 & 0.972980 & 0.957519 & 66 & 66 \\
libsvm & 100 & 0.3 & 0.001417 & 0.973084 & 0.957948 & 65 & 65 \\
smo & 100 & 0.1 & 0.503398 & 0.977788 & 0.974139 & 66 & 66 \\
smo & 100 & 0.2 & 0.232309 & 0.977742 & 0.974022 & 66 & 66 \\
smo & 100 & 0.3 & 0.464860 & 0.977737 & 0.973939 & 66 & 66 \\
\bottomrule
\end{tabular}
22 changes: 8 additions & 14 deletions notebooks/ml/tex/experiments/linear_lagrangian_dual_svc.tex
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
\begin{tabular}{lllrrrrr}
\begin{tabular}{llrrrrr}
\toprule
ld & kernel & C & fit\_time & train\_accuracy & test\_accuracy & nr\_train\_sv & nr\_test\_sv \\
ld & C & fit\_time & train\_accuracy & test\_accuracy & nr\_train\_sv & nr\_test\_sv \\
\midrule
bcqp & poly & 1 & 3.186200 & 0.853759 & 0.728145 & 212 & 212 \\
bcqp & rbf & 1 & 0.044137 & 1.000000 & 1.000000 & 205 & 205 \\
qp & poly & 1 & 0.117401 & 0.823787 & 0.738095 & 163 & 163 \\
qp & rbf & 1 & 1.696029 & 1.000000 & 0.997494 & 143 & 143 \\
bcqp & poly & 10 & 2.776435 & 0.853759 & 0.728145 & 212 & 212 \\
bcqp & rbf & 10 & 0.035251 & 1.000000 & 1.000000 & 205 & 205 \\
qp & poly & 10 & 0.134212 & 0.823787 & 0.738095 & 163 & 163 \\
qp & rbf & 10 & 1.086226 & 0.998752 & 0.997494 & 142 & 142 \\
bcqp & poly & 100 & 2.888524 & 0.853759 & 0.728145 & 212 & 212 \\
bcqp & rbf & 100 & 0.035742 & 1.000000 & 1.000000 & 205 & 205 \\
qp & poly & 100 & 0.048170 & 0.823787 & 0.738095 & 163 & 163 \\
qp & rbf & 100 & 0.941620 & 1.000000 & 0.997494 & 142 & 142 \\
bcqp & 1 & 0.017351 & 0.982512 & 0.990050 & 130 & 130 \\
qp & 1 & 0.013105 & 0.967512 & 0.965023 & 129 & 129 \\
bcqp & 10 & 0.005850 & 0.982512 & 0.990050 & 130 & 130 \\
qp & 10 & 0.010758 & 0.967512 & 0.965023 & 129 & 129 \\
bcqp & 100 & 0.013462 & 0.982512 & 0.990050 & 130 & 130 \\
qp & 100 & 0.007632 & 0.967512 & 0.965023 & 129 & 129 \\
\bottomrule
\end{tabular}
24 changes: 24 additions & 0 deletions notebooks/ml/tex/experiments/linear_lagrangian_dual_svr.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
\begin{tabular}{lllrrrrr}
\toprule
ld & C & epsilon & fit\_time & train\_r2 & test\_r2 & nr\_train\_sv & nr\_test\_sv \\
\midrule
bcqp & 1 & 0.1 & 0.668861 & 0.731073 & 0.721200 & 67 & 67 \\
bcqp & 1 & 0.2 & 0.691504 & 0.731073 & 0.721199 & 67 & 67 \\
bcqp & 1 & 0.3 & 0.596748 & 0.731073 & 0.721199 & 67 & 67 \\
qp & 1 & 0.1 & 0.690563 & 0.876534 & 0.870926 & 67 & 67 \\
qp & 1 & 0.2 & 0.701201 & 0.876534 & 0.870927 & 67 & 67 \\
qp & 1 & 0.3 & 0.763102 & 0.876534 & 0.870927 & 67 & 67 \\
bcqp & 10 & 0.1 & 0.695531 & 0.733638 & 0.723925 & 67 & 67 \\
bcqp & 10 & 0.2 & 0.632475 & 0.733638 & 0.723924 & 67 & 67 \\
bcqp & 10 & 0.3 & 0.641617 & 0.733638 & 0.723924 & 67 & 67 \\
qp & 10 & 0.1 & 0.511339 & 0.731825 & 0.722021 & 67 & 67 \\
qp & 10 & 0.2 & 0.527950 & 0.731825 & 0.722021 & 67 & 67 \\
qp & 10 & 0.3 & 0.532688 & 0.731825 & 0.722020 & 67 & 67 \\
bcqp & 100 & 0.1 & 0.533398 & 0.733638 & 0.723925 & 67 & 67 \\
bcqp & 100 & 0.2 & 0.518986 & 0.733638 & 0.723924 & 67 & 67 \\
bcqp & 100 & 0.3 & 0.472809 & 0.733638 & 0.723924 & 67 & 67 \\
qp & 100 & 0.1 & 0.517064 & 0.731825 & 0.722021 & 67 & 67 \\
qp & 100 & 0.2 & 0.470327 & 0.731825 & 0.722021 & 67 & 67 \\
qp & 100 & 0.3 & 0.360726 & 0.731825 & 0.722020 & 67 & 67 \\
\bottomrule
\end{tabular}
24 changes: 24 additions & 0 deletions notebooks/ml/tex/experiments/primal_svr_eps.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
\begin{tabular}{lllrrrrr}
\toprule
optimizer & C & epsilon & fit\_time & train\_r2 & test\_r2 & nr\_train\_sv & nr\_test\_sv \\
\midrule
custom & 1 & 0.1 & 1.618582 & 0.976982 & 0.973644 & 65 & 33 \\
custom & 1 & 0.2 & 1.657855 & 0.976942 & 0.973629 & 64 & 33 \\
custom & 1 & 0.3 & 1.639000 & 0.976998 & 0.973540 & 64 & 33 \\
liblinear & 1 & 0.1 & 0.000767 & 0.918801 & 0.916815 & 66 & 33 \\
liblinear & 1 & 0.2 & 0.000742 & 0.918801 & 0.916649 & 65 & 32 \\
liblinear & 1 & 0.3 & 0.000614 & 0.919287 & 0.917071 & 65 & 32 \\
custom & 10 & 0.1 & 1.657637 & 0.977600 & 0.974204 & 66 & 33 \\
custom & 10 & 0.2 & 1.788188 & 0.977597 & 0.974061 & 66 & 33 \\
custom & 10 & 0.3 & 1.738749 & 0.977586 & 0.973981 & 66 & 33 \\
liblinear & 10 & 0.1 & 0.000816 & 0.977849 & 0.972088 & 66 & 33 \\
liblinear & 10 & 0.2 & 0.001422 & 0.977851 & 0.972025 & 64 & 33 \\
liblinear & 10 & 0.3 & 0.000802 & 0.977868 & 0.972106 & 65 & 33 \\
custom & 100 & 0.1 & 1.831985 & 0.977606 & 0.974266 & 66 & 33 \\
custom & 100 & 0.2 & 1.726564 & 0.977645 & 0.974097 & 66 & 33 \\
custom & 100 & 0.3 & 1.231514 & 0.977660 & 0.974156 & 66 & 33 \\
liblinear & 100 & 0.1 & 0.001054 & 0.977723 & 0.974270 & 66 & 33 \\
liblinear & 100 & 0.2 & 0.001119 & 0.977661 & 0.974127 & 65 & 33 \\
liblinear & 100 & 0.3 & 0.001370 & 0.977660 & 0.974047 & 65 & 33 \\
\bottomrule
\end{tabular}
Binary file added notebooks/ml/tex/img/svr_eps_loss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/ml/tex/img/svr_hyperplane.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bc788ef

Please sign in to comment.