Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perform appendectomy #216

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions baseline/experiment_analysis/experiment_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2378,12 +2378,12 @@
" latex_table = unique_model_types_df.to_latex(index=False, escape=False)\n",
"\n",
" with open(path, \"w\") as file:\n",
" file.write(\"\\\\begin{table*}[htbp]\\n\")\n",
" file.write(\"\\\\begin{table}[!htb]\\n\")\n",
" file.write(\"\\\\centering\\n\")\n",
" file.write(latex_table)\n",
" file.write(\"\\\\caption{Overview of model types for \\\\ce{\" + oxide_name + \"} oxide}\\n\")\n",
" file.write(\"\\\\label{tab:\" + oxide + \"_overview}\\n\")\n",
" file.write(\"\\\\end{table*}\\n\")\n"
" file.write(\"\\\\end{table}\\n\")\n"
]
},
{
Expand Down Expand Up @@ -4963,9 +4963,7 @@
"sns.boxplot(x='params.model_type', y='metrics.std_dev_cv', data=filtered_runs_target)\n",
"plt.title(f'{analysis_target}: Standard Deviation of Errors (CV) by Model Type')\n",
"plt.ylabel('Standard Deviation of Errors (CV)')\n",
"plt.show()\n",
"\n",
"\n"
"plt.show()\n"
]
},
{
Expand Down Expand Up @@ -5233,9 +5231,7 @@
" for p in top_configurations.patches:\n",
" width = p.get_width()\n",
" plt.text(width + 0.01, p.get_y()+0.2 + p.get_height() / 2, f'{width:.2f}', ha='left', va='center')\n",
" plt.show()\n",
"\n",
"\n"
" plt.show()\n"
]
},
{
Expand Down
46 changes: 24 additions & 22 deletions report_thesis/src/sections/appendix/index.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ \section*{Appendix}
\addcontentsline{toc}{section}{Appendix}

\subsection{Web-Based Platform for Data Partitioning Evaluation}\label{subsec:web_platform}

\begin{figure*}
\begin{figure}[!htb]
\centering
\includegraphics[width=0.7\textwidth]{images/web_platform.png}
\includegraphics[width=0.585\textwidth]{images/web_platform.png}
\caption{Web-based platform used to determine the optimal value of $p$ for the data partitioning algorithm.}
\label{fig:web_platform}
\end{figure*}
\end{figure}

\newpage
\FloatBarrier

\subsection{Cross-Validation Fold Plots for Major Oxides}\label{subsec:cv_plots}
Expand All @@ -19,39 +19,39 @@ \subsection{Cross-Validation Fold Plots for Major Oxides}\label{subsec:cv_plots}
\foreach \oxide in {SiO2, TiO2, Al2O3, FeOT, MgO, CaO, Na2O, K2O} {
\subsubsection{\oxide}

\begin{figure*}
\begin{figure}[!htb]
\centering
\includegraphics[width=\textwidth]{images/\oxide/histogram_grid_plot.png}
\caption{Histogram and \gls{kde} of \ce{\oxide} distribution in each fold. The y-axis represents the count of samples per bin, and the x-axis represents \ce{\oxide} concentration. The notation in the legend indicates the amount of instances in the training/validation sets.}
\label{fig:histogram_grid_plot_\oxide}
\end{figure*}
\end{figure}

\begin{figure*}
\begin{figure}[!htb]
\centering
\includegraphics[width=\textwidth]{images/\oxide/histogram_kde_plot.png}
\caption{Combined Histogram and \gls{kde} of \ce{\oxide} distribution in each fold. The y-axis represents the count of samples per bin, and the x-axis represents \ce{\oxide} concentration. The notation in the legend indicates the amount of instances in the training/validation sets.}
\label{fig:histogram_kde_plot_\oxide}
\end{figure*}
\end{figure}

\begin{figure*}
\begin{figure}[!htb]
\centering
\includegraphics[width=\textwidth]{images/\oxide/original_and_post_fold.png}
\caption{Distribution of \ce{\oxide} concentrations before and after fold assignment. The left plot shows the original distribution of \ce{\oxide}, while the right plot shows the distribution with folds assigned, color-coded to indicate the different folds.}
\label{fig:original_and_post_fold_plot_\oxide}
\end{figure*}
\end{figure}

\begin{figure*}
\begin{figure}[!htb]
\centering
\includegraphics[width=\textwidth]{images/\oxide/distribution_plot.png}
\caption{Distribution of \ce{\oxide} concentrations across cross-validation folds, training set, test set, and the entire dataset. The mean and standard deviation statistics for each partition are indicated figure.}
\label{fig:distribution_plot_\oxide}
\end{figure*}
\end{figure}
}

\FloatBarrier

\subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_experiment_hyperparameters}
\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{@{}llp{0.5\textwidth}@{}}
\toprule
Expand Down Expand Up @@ -104,11 +104,11 @@ \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_expe
\end{tabular}
\caption{Explictly set hyperparameters for the \gls{pls}, \gls{svr}, ridge, \gls{lasso}, \gls{enet}, \gls{rf}, and \gls{etr} models. When not explicitly set, the default hyperparameters provided by the libraries listed in Section~\ref{sec:experimental_setup} are used.}
\label{tab:combined_hyperparameters}
\end{table*}
\end{table}

\FloatBarrier

\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{@{}llp{0.5\textwidth}@{}}
\toprule
Expand Down Expand Up @@ -151,11 +151,11 @@ \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_expe
\end{tabular}
\caption{Explictly set hyperparameters for the \gls{gbr} and \gls{xgboost} models. When not explicitly set, the default hyperparameters provided by the libraries listed in Section~\ref{sec:experimental_setup} are used. The \gls{ngboost} model does not have any explicitly set hyperparameters.}
\label{tab:combined_hyperparameters}
\end{table*}
\end{table}

\FloatBarrier

\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{lll}
\toprule
Expand All @@ -175,9 +175,11 @@ \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_expe
\end{tabular}
\caption{Summary of the Neural Network Architecture}
\label{tab:nn_architecture}
\end{table*}
\end{table}

\FloatBarrier

\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{lll}
\toprule
Expand Down Expand Up @@ -211,10 +213,12 @@ \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_expe
\end{tabular}
\caption{Summary of the Convolutional Neural Network Architecture}
\label{tab:cnn_architecture}
\end{table*}
\end{table}

\FloatBarrier

\clearpage

\subsection{Overview of best performing model configurations}\label{subsec:best_model_configurations}
\input{sections/appendix/tables/SiO2_overview.tex}
\input{sections/appendix/tables/TiO2_overview.tex}
Expand All @@ -224,5 +228,3 @@ \subsection{Overview of best performing model configurations}\label{subsec:best_
\input{sections/appendix/tables/CaO_overview.tex}
\input{sections/appendix/tables/Na2O_overview.tex}
\input{sections/appendix/tables/K2O_overview.tex}

\FloatBarrier
4 changes: 2 additions & 2 deletions report_thesis/src/sections/appendix/tables/Al2O3_overview.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{llllllll}
\toprule
Expand All @@ -18,4 +18,4 @@
\end{tabular}
\caption{Overview of model types for \ce{Al2O3} oxide}
\label{tab:Al2O3_overview}
\end{table*}
\end{table}
4 changes: 2 additions & 2 deletions report_thesis/src/sections/appendix/tables/CaO_overview.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{llllllll}
\toprule
Expand All @@ -18,4 +18,4 @@
\end{tabular}
\caption{Overview of model types for \ce{CaO} oxide}
\label{tab:CaO_overview}
\end{table*}
\end{table}
4 changes: 2 additions & 2 deletions report_thesis/src/sections/appendix/tables/FeOT_overview.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{llllllll}
\toprule
Expand All @@ -18,4 +18,4 @@
\end{tabular}
\caption{Overview of model types for \ce{FeO_T} oxide}
\label{tab:FeOT_overview}
\end{table*}
\end{table}
4 changes: 2 additions & 2 deletions report_thesis/src/sections/appendix/tables/K2O_overview.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{llllllll}
\toprule
Expand All @@ -18,4 +18,4 @@
\end{tabular}
\caption{Overview of model types for \ce{K2O} oxide}
\label{tab:K2O_overview}
\end{table*}
\end{table}
4 changes: 2 additions & 2 deletions report_thesis/src/sections/appendix/tables/MgO_overview.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{llllllll}
\toprule
Expand All @@ -18,4 +18,4 @@
\end{tabular}
\caption{Overview of model types for \ce{MgO} oxide}
\label{tab:MgO_overview}
\end{table*}
\end{table}
4 changes: 2 additions & 2 deletions report_thesis/src/sections/appendix/tables/Na2O_overview.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{llllllll}
\toprule
Expand All @@ -18,4 +18,4 @@
\end{tabular}
\caption{Overview of model types for \ce{Na2O} oxide}
\label{tab:Na2O_overview}
\end{table*}
\end{table}
4 changes: 2 additions & 2 deletions report_thesis/src/sections/appendix/tables/SiO2_overview.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{llllllll}
\toprule
Expand All @@ -18,4 +18,4 @@
\end{tabular}
\caption{Overview of model types for \ce{SiO2} oxide}
\label{tab:SiO2_overview}
\end{table*}
\end{table}
4 changes: 2 additions & 2 deletions report_thesis/src/sections/appendix/tables/TiO2_overview.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\begin{table*}
\begin{table}[!htb]
\centering
\begin{tabular}{llllllll}
\toprule
Expand All @@ -18,4 +18,4 @@
\end{tabular}
\caption{Overview of model types for \ce{TiO2} oxide}
\label{tab:TiO2_overview}
\end{table*}
\end{table}
Loading