From e2903e7fad0d8808a314039e9e9b941670e85fc7 Mon Sep 17 00:00:00 2001 From: Pattrigue Date: Wed, 12 Jun 2024 16:34:13 +0200 Subject: [PATCH 1/3] fix table captions --- baseline/experiment_analysis/experiment_analysis.ipynb | 2 +- report_thesis/src/sections/appendix/index.tex | 6 +++--- .../src/sections/appendix/tables/Al2O3_overview.tex | 2 +- report_thesis/src/sections/appendix/tables/CaO_overview.tex | 2 +- .../src/sections/appendix/tables/FeOT_overview.tex | 2 +- report_thesis/src/sections/appendix/tables/K2O_overview.tex | 2 +- report_thesis/src/sections/appendix/tables/MgO_overview.tex | 2 +- .../src/sections/appendix/tables/Na2O_overview.tex | 2 +- .../src/sections/appendix/tables/SiO2_overview.tex | 2 +- .../src/sections/appendix/tables/TiO2_overview.tex | 2 +- report_thesis/src/sections/background/data_overview.tex | 2 +- report_thesis/src/sections/baseline_replica.tex | 2 +- report_thesis/src/sections/experiments/data_preparation.tex | 4 ++-- .../experiments/inital_experiments/init_results_table.tex | 2 +- .../experiments/inital_experiments/initial_results.tex | 6 +++--- .../experiments/optimization_experiment/optuna_ranges.tex | 4 ++-- .../src/sections/experiments/stacking_ensemble.tex | 6 +++--- report_thesis/src/sections/introduction.tex | 2 +- .../src/sections/proposed_approach/model_selection.tex | 2 +- .../src/sections/results/oxide_comparison_table.tex | 6 +++--- 20 files changed, 30 insertions(+), 30 deletions(-) diff --git a/baseline/experiment_analysis/experiment_analysis.ipynb b/baseline/experiment_analysis/experiment_analysis.ipynb index fc1a45b2..1abdcaa4 100644 --- a/baseline/experiment_analysis/experiment_analysis.ipynb +++ b/baseline/experiment_analysis/experiment_analysis.ipynb @@ -2380,8 +2380,8 @@ " with open(path, \"w\") as file:\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(latex_table)\n", " file.write(\"\\\\label{tab:\" + oxide + \"_overview}\\n\")\n", " file.write(\"\\\\end{table}\\n\")\n" ] diff --git a/report_thesis/src/sections/appendix/index.tex b/report_thesis/src/sections/appendix/index.tex index bfa93394..7b88fa86 100644 --- a/report_thesis/src/sections/appendix/index.tex +++ b/report_thesis/src/sections/appendix/index.tex @@ -53,6 +53,7 @@ \subsection{Cross-Validation Fold Plots for Major Oxides}\label{subsec:cv_plots} \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_experiment_hyperparameters} \begin{table}[!htb] \centering +\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.} \begin{tabular}{@{}llp{0.5\textwidth}@{}} \toprule \textbf{Model} & \textbf{Hyperparameter} & \textbf{Value} \\ @@ -102,7 +103,6 @@ \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_expe & \texttt{random\_state} & 42 \\ \midrule \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} @@ -110,6 +110,7 @@ \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_expe \begin{table}[!htb] \centering +\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.} \begin{tabular}{@{}llp{0.5\textwidth}@{}} \toprule \textbf{Model} & \textbf{Hyperparameter} & \textbf{Value} \\ @@ -149,7 +150,6 @@ \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_expe & \texttt{eval\_metric} & rmse \\ \bottomrule \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} @@ -181,6 +181,7 @@ \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_expe \begin{table}[!htb] \centering + \caption{Summary of the Convolutional Neural Network Architecture} \begin{tabular}{lll} \toprule \textbf{Layer} & \textbf{Output Shape} & \textbf{Hyperparameter} \\ \midrule @@ -211,7 +212,6 @@ \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_expe \multicolumn{3}{l}{\textbf{Learning Rate:} 0.001} \\ \bottomrule \end{tabular} - \caption{Summary of the Convolutional Neural Network Architecture} \label{tab:cnn_architecture} \end{table} diff --git a/report_thesis/src/sections/appendix/tables/Al2O3_overview.tex b/report_thesis/src/sections/appendix/tables/Al2O3_overview.tex index b02094e0..02b15773 100644 --- a/report_thesis/src/sections/appendix/tables/Al2O3_overview.tex +++ b/report_thesis/src/sections/appendix/tables/Al2O3_overview.tex @@ -1,5 +1,6 @@ \begin{table}[!htb] \centering +\caption{Overview of model types for \ce{Al2O3} oxide} \begin{tabular}{llllllll} \toprule \ce{Al2O3} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ @@ -16,6 +17,5 @@ & \texttt{random\_forest} & \texttt{power\_transformer} & \texttt{none} & \texttt{max\_abs\_scaler} & 2.302 & 2.295 & 2.111 \\ \bottomrule \end{tabular} -\caption{Overview of model types for \ce{Al2O3} oxide} \label{tab:Al2O3_overview} \end{table} diff --git a/report_thesis/src/sections/appendix/tables/CaO_overview.tex b/report_thesis/src/sections/appendix/tables/CaO_overview.tex index a054f1d3..d537c1dc 100644 --- a/report_thesis/src/sections/appendix/tables/CaO_overview.tex +++ b/report_thesis/src/sections/appendix/tables/CaO_overview.tex @@ -1,5 +1,6 @@ \begin{table}[!htb] \centering +\caption{Overview of model types for \ce{CaO} oxide} \begin{tabular}{llllllll} \toprule \ce{CaO} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ @@ -16,6 +17,5 @@ & \texttt{lasso} & \texttt{power\_transformer} & \texttt{none} & \texttt{min\_max\_scaler} & 1.529 & 1.514 & 1.684 \\ \bottomrule \end{tabular} -\caption{Overview of model types for \ce{CaO} oxide} \label{tab:CaO_overview} \end{table} diff --git a/report_thesis/src/sections/appendix/tables/FeOT_overview.tex b/report_thesis/src/sections/appendix/tables/FeOT_overview.tex index 16950aa1..61c0b907 100644 --- a/report_thesis/src/sections/appendix/tables/FeOT_overview.tex +++ b/report_thesis/src/sections/appendix/tables/FeOT_overview.tex @@ -1,5 +1,6 @@ \begin{table}[!htb] \centering +\caption{Overview of model types for \ce{FeO_T} oxide} \begin{tabular}{llllllll} \toprule \ce{FeO_T} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ @@ -16,6 +17,5 @@ & \texttt{random\_forest} & \texttt{quantile\_transformer} & \texttt{none} & \texttt{norm3\_scaler} & 3.079 & 3.044 & 2.018 \\ \bottomrule \end{tabular} -\caption{Overview of model types for \ce{FeO_T} oxide} \label{tab:FeOT_overview} \end{table} diff --git a/report_thesis/src/sections/appendix/tables/K2O_overview.tex b/report_thesis/src/sections/appendix/tables/K2O_overview.tex index 438c528d..d27e17c3 100644 --- a/report_thesis/src/sections/appendix/tables/K2O_overview.tex +++ b/report_thesis/src/sections/appendix/tables/K2O_overview.tex @@ -1,5 +1,6 @@ \begin{table}[!htb] \centering +\caption{Overview of model types for \ce{K2O} oxide} \begin{tabular}{llllllll} \toprule \ce{K2O} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ @@ -16,6 +17,5 @@ & \texttt{extra\_trees} & \texttt{power\_transformer} & \texttt{none} & \texttt{robust\_scaler} & 0.714 & 0.709 & 0.464 \\ \bottomrule \end{tabular} -\caption{Overview of model types for \ce{K2O} oxide} \label{tab:K2O_overview} \end{table} diff --git a/report_thesis/src/sections/appendix/tables/MgO_overview.tex b/report_thesis/src/sections/appendix/tables/MgO_overview.tex index 9719c367..5d75916a 100644 --- a/report_thesis/src/sections/appendix/tables/MgO_overview.tex +++ b/report_thesis/src/sections/appendix/tables/MgO_overview.tex @@ -1,5 +1,6 @@ \begin{table}[!htb] \centering +\caption{Overview of model types for \ce{MgO} oxide} \begin{tabular}{llllllll} \toprule \ce{MgO} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ @@ -16,6 +17,5 @@ & \texttt{random\_forest} & \texttt{quantile\_transformer} & \texttt{none} & \texttt{norm3\_scaler} & 1.640 & 1.630 & 0.973 \\ \bottomrule \end{tabular} -\caption{Overview of model types for \ce{MgO} oxide} \label{tab:MgO_overview} \end{table} diff --git a/report_thesis/src/sections/appendix/tables/Na2O_overview.tex b/report_thesis/src/sections/appendix/tables/Na2O_overview.tex index 3fc2965b..9c480f27 100644 --- a/report_thesis/src/sections/appendix/tables/Na2O_overview.tex +++ b/report_thesis/src/sections/appendix/tables/Na2O_overview.tex @@ -1,5 +1,6 @@ \begin{table}[!htb] \centering +\caption{Overview of model types for \ce{Na2O} oxide} \begin{tabular}{llllllll} \toprule \ce{Na2O} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ @@ -16,6 +17,5 @@ & \texttt{ridge} & \texttt{quantile\_transformer} & \texttt{none} & \texttt{norm3\_scaler} & 1.011 & 1.001 & 0.467 \\ \bottomrule \end{tabular} -\caption{Overview of model types for \ce{Na2O} oxide} \label{tab:Na2O_overview} \end{table} diff --git a/report_thesis/src/sections/appendix/tables/SiO2_overview.tex b/report_thesis/src/sections/appendix/tables/SiO2_overview.tex index cfea6e01..d5bde400 100644 --- a/report_thesis/src/sections/appendix/tables/SiO2_overview.tex +++ b/report_thesis/src/sections/appendix/tables/SiO2_overview.tex @@ -1,5 +1,6 @@ \begin{table}[!htb] \centering +\caption{Overview of model types for \ce{SiO2} oxide} \begin{tabular}{llllllll} \toprule \ce{SiO2} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ @@ -16,6 +17,5 @@ & \texttt{random\_forest} & \texttt{none} & \texttt{none} & \texttt{norm3\_scaler} & 5.204 & 5.192 & 3.788 \\ \bottomrule \end{tabular} -\caption{Overview of model types for \ce{SiO2} oxide} \label{tab:SiO2_overview} \end{table} diff --git a/report_thesis/src/sections/appendix/tables/TiO2_overview.tex b/report_thesis/src/sections/appendix/tables/TiO2_overview.tex index 5348d0be..eb5e40fe 100644 --- a/report_thesis/src/sections/appendix/tables/TiO2_overview.tex +++ b/report_thesis/src/sections/appendix/tables/TiO2_overview.tex @@ -1,5 +1,6 @@ \begin{table}[!htb] \centering +\caption{Overview of model types for \ce{TiO2} oxide} \begin{tabular}{llllllll} \toprule \ce{TiO2} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ @@ -16,6 +17,5 @@ & \texttt{pls} & \texttt{power\_transformer} & \texttt{kernel\_pca} & \texttt{robust\_scaler} & 0.441 & 0.441 & 0.411 \\ \bottomrule \end{tabular} -\caption{Overview of model types for \ce{TiO2} oxide} \label{tab:TiO2_overview} \end{table} diff --git a/report_thesis/src/sections/background/data_overview.tex b/report_thesis/src/sections/background/data_overview.tex index b90991ed..d30d5bc0 100644 --- a/report_thesis/src/sections/background/data_overview.tex +++ b/report_thesis/src/sections/background/data_overview.tex @@ -5,6 +5,7 @@ \subsection{Data Overview}\label{sec:data-overview} \begin{table*} \centering +\caption{Example of CCS data for a single location (from \citet{p9_paper})} \begin{tabular}{llllllll} \toprule wave & shot1 & shot2 & $\cdots$ & shot49 & shot50 & median & mean \\ @@ -16,7 +17,6 @@ \subsection{Data Overview}\label{sec:data-overview} 905.57349 & 1.9864713e+10 & 1.2956832e+10 & $\cdots$ & 1.9785415e+10 & 7.1994239e+09 & 1.1311150e+10 & 1.2201224e+10 \\ \bottomrule \end{tabular} -\caption{Example of CCS data for a single location (from \citet{p9_paper})} \label{tab:ccs_data_example} \end{table*} diff --git a/report_thesis/src/sections/baseline_replica.tex b/report_thesis/src/sections/baseline_replica.tex index 3b7bab71..bb352dd8 100644 --- a/report_thesis/src/sections/baseline_replica.tex +++ b/report_thesis/src/sections/baseline_replica.tex @@ -62,6 +62,7 @@ \section{Baseline \& Replica}\label{sec:baseline_replica} \begin{table*} \centering + \caption{\gls{rmse}s of the original and our replicas of the \gls{pls1-sm}, \gls{ica}, and \gls{moc} models.} \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lllllll} \toprule Element & \gls{pls1-sm} (original) & PLS1-SM (replica) & \gls{ica} (original) & ICA (replica) & \gls{moc} (original) & \gls{moc} (replica) \\ @@ -76,7 +77,6 @@ \section{Baseline \& Replica}\label{sec:baseline_replica} \ce{K2O} & 0.72 & 0.72 & 0.98 & 1.38 & 0.82 & 1.91 \\ \bottomrule \end{tabular*} - \caption{\gls{rmse}s of the original and our replicas of the \gls{pls1-sm}, \gls{ica}, and \gls{moc} models.} \label{tab:replica_results_rmses} \end{table*} diff --git a/report_thesis/src/sections/experiments/data_preparation.tex b/report_thesis/src/sections/experiments/data_preparation.tex index c184abe5..4beba7d8 100644 --- a/report_thesis/src/sections/experiments/data_preparation.tex +++ b/report_thesis/src/sections/experiments/data_preparation.tex @@ -27,6 +27,7 @@ \subsection{Data Preparation}\label{sec:data-preparation} \begin{table*} \centering +\caption{Excerpt from the composition dataset (from \citet{p9_paper})} \begin{tabular}{lllllllllllll} \toprule Target & Spectrum Name & Sample Name & \ce{SiO2} & \ce{TiO2} & \ce{Al2O3} & \ce{FeO_T} & \ce{MnO} & \ce{MgO} & \ce{CaO} & \ce{Na2O} & \ce{K2O} & \ce{MOC total} \\ @@ -38,7 +39,6 @@ \subsection{Data Preparation}\label{sec:data-preparation} TB2 & --- & --- & 60.4 & 0.93 & 20.5 & 11.6536 & 0.047 & 1.86 & 0.2 & 1.29 & 3.86 & 100.7406 \\ \bottomrule \end{tabular} -\caption{Excerpt from the composition dataset (from \citet{p9_paper})} \label{tab:composition_data_example} \end{table*} @@ -48,6 +48,7 @@ \subsection{Data Preparation}\label{sec:data-preparation} \begin{table*} \centering +\caption{Excerpt from the final dataset (values have been rounded to two decimal places for brevity).} \footnotesize \begin{tabular}{llllllllllllllllllllll} \toprule @@ -66,6 +67,5 @@ \subsection{Data Preparation}\label{sec:data-preparation} $\vdots$ & $\cdots$ & $\vdots$ & $\vdots$ & $\cdots$ & $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ \\ \midrule \end{tabular} -\caption{Excerpt from the final dataset (values have been rounded to two decimal places for brevity).} \label{tab:final_dataset_example} \end{table*} \ No newline at end of file diff --git a/report_thesis/src/sections/experiments/inital_experiments/init_results_table.tex b/report_thesis/src/sections/experiments/inital_experiments/init_results_table.tex index 4bc62cdd..8f9387d1 100644 --- a/report_thesis/src/sections/experiments/inital_experiments/init_results_table.tex +++ b/report_thesis/src/sections/experiments/inital_experiments/init_results_table.tex @@ -1,5 +1,6 @@ \begin{table*}[] \centering +\caption{Initial results for the different models and metrics.} \resizebox{1\textwidth}{!}{% \begin{tabular}{l|cccc|cccc|cccc} Model & \multicolumn{4}{c}{Ridge} & \multicolumn{4}{c}{\gls{lasso}} & \multicolumn{4}{c}{\gls{enet}} \\ @@ -60,6 +61,5 @@ \hline \end{tabular}% } -\caption{Initial results for the different models and metrics.} \label{tab:init_results} \end{table*} diff --git a/report_thesis/src/sections/experiments/inital_experiments/initial_results.tex b/report_thesis/src/sections/experiments/inital_experiments/initial_results.tex index 9c6d9750..98d23c5d 100644 --- a/report_thesis/src/sections/experiments/inital_experiments/initial_results.tex +++ b/report_thesis/src/sections/experiments/inital_experiments/initial_results.tex @@ -46,6 +46,7 @@ \subsection{Initial Results} \end{figure*} \begin{table} +\caption{Relative performance of each model compared to the best performing model, measured by normalized RMSECV and multiplied by 100 for percentage. A higher percentage indicates worse performance. The 'Diff. vs Prev.' column shows the difference in performance compared to the next best model, measured in percentage points.} \begin{tabular}{lrr} \toprule Model & Relative Performance (\%) & Diff. vs Prev. \\ @@ -64,7 +65,6 @@ \subsection{Initial Results} CNN & 143.18 & 15.36 \\ \bottomrule \end{tabular} -\caption{Relative performance of each model compared to the best performing model, measured by normalized RMSECV and multiplied by 100 for percentage. A higher percentage indicates worse performance. The 'Diff. vs Prev.' column shows the difference in performance compared to the next best model, measured in percentage points.} \label{tab:relative_performance} \end{table} @@ -74,15 +74,15 @@ \subsection{Initial Results} \centering \begin{minipage}{.7\textwidth} \centering - \input{sections/experiments/inital_experiments/best_results_table.tex} \caption{Lowest metric and corresponding model for each oxide.} + \input{sections/experiments/inital_experiments/best_results_table.tex} \label{tab:best_results} \end{minipage}% \hspace{0.03\textwidth} \begin{minipage}{.25\textwidth} \centering - \input{sections/experiments/inital_experiments/best_model_occurrences_table.tex} \caption{Occurrences of the best model for each oxide.} + \input{sections/experiments/inital_experiments/best_model_occurrences_table.tex} \label{tab:best_model_occurrences} \end{minipage} \end{table*} diff --git a/report_thesis/src/sections/experiments/optimization_experiment/optuna_ranges.tex b/report_thesis/src/sections/experiments/optimization_experiment/optuna_ranges.tex index cdd13460..df7ce9c6 100644 --- a/report_thesis/src/sections/experiments/optimization_experiment/optuna_ranges.tex +++ b/report_thesis/src/sections/experiments/optimization_experiment/optuna_ranges.tex @@ -1,5 +1,6 @@ \begin{table*} \centering +\caption{Optuna preprocessing configuration ranges.} \begin{tabular}{@{}l>{\ttfamily}lp{0.5\textwidth}@{}} \toprule \textbf{Model} & \textbf{Parameter} & \textbf{Range} \\ \midrule @@ -22,13 +23,13 @@ MaxAbsScaler & - & - \\ \midrule Norm3Scaler & - & - \\ \midrule \end{tabular} -\caption{Optuna preprocessing configuration ranges.} \label{tab:optuna_preprocessing_configurations} \end{table*} \begin{table*} \centering +\caption{Optuna model configuration ranges.} \begin{tabular}{@{}l>{\ttfamily}lp{0.5\textwidth}@{}} \toprule \textbf{Model} & \textbf{Parameter} & \textbf{Range} \\ \midrule @@ -76,6 +77,5 @@ & min\_samples\_leaf & 1 - 10 \\ \cmidrule{2-3} & max\_features & \{sqrt, log2\} \\ \bottomrule \end{tabular} -\caption{Optuna model configuration ranges.} \label{tab:optuna_model_configurations} \end{table*} \ No newline at end of file diff --git a/report_thesis/src/sections/experiments/stacking_ensemble.tex b/report_thesis/src/sections/experiments/stacking_ensemble.tex index fd9c34d8..7f44000c 100644 --- a/report_thesis/src/sections/experiments/stacking_ensemble.tex +++ b/report_thesis/src/sections/experiments/stacking_ensemble.tex @@ -79,6 +79,7 @@ \subsubsection{Results}\label{subsec:stacking_ensemble_results} \begin{table} \centering +\caption{Stacking ensemble results using the \gls{enet} model as the meta-learner with default hyperparameters.} \begin{tabular}{lcccc} \toprule Oxide & \gls{rmsep} & STDDEV & \gls{rmsecv} & Std. Dev. CV \\ @@ -94,11 +95,11 @@ \subsubsection{Results}\label{subsec:stacking_ensemble_results} \bottomrule \end{tabular} \label{tab:stacking_ensemble_results_enet} -\caption{Stacking ensemble results using the \gls{enet} model as the meta-learner with default hyperparameters.} \end{table} \begin{table} \centering +\caption{Stacking ensemble results using the \gls{enet} model as the meta-learner with $\alpha = 0.1$.} \begin{tabular}{lcccc} \toprule Oxide & \gls{rmsep} & STDDEV & \gls{rmsecv} & Std. Dev. CV \\ @@ -114,11 +115,11 @@ \subsubsection{Results}\label{subsec:stacking_ensemble_results} \bottomrule \end{tabular} \label{tab:stacking_ensemble_results_enet_01} -\caption{Stacking ensemble results using the \gls{enet} model as the meta-learner with $\alpha = 0.1$.} \end{table} \begin{table} \centering +\caption{Stacking ensemble results using the \gls{svr} model as the meta-learner with default hyperparameters.} \begin{tabular}{lcccc} \toprule Oxide & \gls{rmsep} & STDDEV & \gls{rmsecv} & Std. Dev. CV \\ @@ -134,7 +135,6 @@ \subsubsection{Results}\label{subsec:stacking_ensemble_results} \bottomrule \end{tabular} \label{tab:stacking_ensemble_results_svr} -\caption{Stacking ensemble results using the \gls{svr} model as the meta-learner with default hyperparameters.} \end{table} \begin{figure*} diff --git a/report_thesis/src/sections/introduction.tex b/report_thesis/src/sections/introduction.tex index b7a760ee..cf2df94b 100644 --- a/report_thesis/src/sections/introduction.tex +++ b/report_thesis/src/sections/introduction.tex @@ -55,6 +55,7 @@ \section{Introduction}\label{sec:introduction} \begin{table} \centering +\caption{Table of Terms} \begin{tabularx}{\columnwidth}{lX} % l for left, X for the cell that should be wrapped \toprule Term & Definition \\ @@ -65,6 +66,5 @@ \section{Introduction}\label{sec:introduction} Extreme Concentration Values & The concentration values of oxides in the targets that are significantly higher or lower than the majority of the data. \\ \bottomrule \end{tabularx} -\caption{Table of Terms} \label{tab:terms} \end{table} \ No newline at end of file diff --git a/report_thesis/src/sections/proposed_approach/model_selection.tex b/report_thesis/src/sections/proposed_approach/model_selection.tex index 81907fb2..66e9b2d9 100644 --- a/report_thesis/src/sections/proposed_approach/model_selection.tex +++ b/report_thesis/src/sections/proposed_approach/model_selection.tex @@ -46,6 +46,7 @@ \subsection{Model and Preprocessing Selection}\label{sec:model_selection} \begin{table} \centering +\caption{Overview of Preprocessing Techniques and Models} \begin{tabularx}{\columnwidth}{>{\raggedright\arraybackslash}X} \toprule \textbf{Normalization / Scaling:} \\ @@ -84,7 +85,6 @@ \subsection{Model and Preprocessing Selection}\label{sec:model_selection} \quad Artificial Neural Networks \\ \quad Convolutional Neural Networks \\\bottomrule \end{tabularx} -\caption{Overview of Preprocessing Techniques and Models} \label{tab:preprocessing-models} \end{table} diff --git a/report_thesis/src/sections/results/oxide_comparison_table.tex b/report_thesis/src/sections/results/oxide_comparison_table.tex index 534dac55..016f2607 100644 --- a/report_thesis/src/sections/results/oxide_comparison_table.tex +++ b/report_thesis/src/sections/results/oxide_comparison_table.tex @@ -1,5 +1,6 @@ \begin{table*} \centering + \caption{Comparison of different scalers across the eight major oxides.} \begin{tabular}{lccccccccc} \toprule \textbf{Oxide} & \texttt{MaxAbsScaler} & \texttt{MinMaxScaler} & \texttt{Norm3Scaler} & \texttt{RobustScaler} & \texttt{StandardScaler} \\ @@ -15,13 +16,13 @@ Total across oxides & 2458 & 2855 & 5090 & 3167 & 2373 \\ \bottomrule \end{tabular} - \caption{Comparison of different scalers across the eight major oxides.} \label{tab:scalers_comparison} \end{table*} \begin{table*} \centering + \caption{Comparison of different PCA types across the eight major oxides.} \begin{tabular}{lccccccccc} \toprule \textbf{Oxide} & \texttt{None} & \texttt{KernelPCA} & \texttt{PCA} \\ @@ -37,13 +38,13 @@ Total across oxides & 9419 & 3368 & 3156 \\ \bottomrule \end{tabular} - \caption{Comparison of different PCA types across the eight major oxides.} \label{tab:pca_comparison} \end{table*} \begin{table*} \centering + \caption{Comparison of different transformers across the eight major oxides.} \begin{tabular}{lccccccccc} \toprule \textbf{Oxide} & \texttt{None} & \texttt{PowerTransformer} & \texttt{QuantileTransformer} \\ @@ -59,6 +60,5 @@ Total across oxides & 4956 & 5277 & 5710 \\ \bottomrule \end{tabular} - \caption{Comparison of different transformers across the eight major oxides.} \label{tab:transformers_comparison} \end{table*} \ No newline at end of file From b5f82f710442570d470d32863b67382c1e483183 Mon Sep 17 00:00:00 2001 From: Pattrigue Date: Wed, 12 Jun 2024 16:36:28 +0200 Subject: [PATCH 2/3] add missing hlines --- .../inital_experiments/best_model_occurrences_table.tex | 1 + .../experiments/inital_experiments/best_results_table.tex | 1 + 2 files changed, 2 insertions(+) diff --git a/report_thesis/src/sections/experiments/inital_experiments/best_model_occurrences_table.tex b/report_thesis/src/sections/experiments/inital_experiments/best_model_occurrences_table.tex index bb17cf1e..5e7588d3 100644 --- a/report_thesis/src/sections/experiments/inital_experiments/best_model_occurrences_table.tex +++ b/report_thesis/src/sections/experiments/inital_experiments/best_model_occurrences_table.tex @@ -8,5 +8,6 @@ \gls{pls} & 4 \\ \gls{gbr} & 3 \\ \gls{ngboost} & 2 \\ +\hline \end{tabular} \label{tab:best_model_occurrences} diff --git a/report_thesis/src/sections/experiments/inital_experiments/best_results_table.tex b/report_thesis/src/sections/experiments/inital_experiments/best_results_table.tex index 51c6ac5a..28f6aa64 100644 --- a/report_thesis/src/sections/experiments/inital_experiments/best_results_table.tex +++ b/report_thesis/src/sections/experiments/inital_experiments/best_results_table.tex @@ -9,5 +9,6 @@ $\ce{CaO}$ & 1.626 (\gls{svr}) & 1.467 (\gls{xgboost}) & 1.594 (\gls{svr}) & 1.457 (\gls{xgboost}) \\ $\ce{Na2O}$ & 0.387 (\gls{xgboost}) & 0.908 (\gls{pls}) & 0.387 (\gls{xgboost}) & 0.906 (\gls{pls}) \\ $\ce{K2O}$ & 0.524 (\gls{rf}) & 0.609 (\gls{gbr}) & 0.476 (\gls{rf}) & 0.610 (\gls{gbr}) \\ +\hline \end{tabular}% \label{tab:best_results} From 9c39fe4cb811f86e07635588d338ec1b32f67b2b Mon Sep 17 00:00:00 2001 From: Pattrigue Date: Wed, 12 Jun 2024 16:39:19 +0200 Subject: [PATCH 3/3] fix periods --- baseline/experiment_analysis/experiment_analysis.ipynb | 2 +- report_thesis/src/sections/appendix/index.tex | 4 ++-- report_thesis/src/sections/appendix/tables/Al2O3_overview.tex | 2 +- report_thesis/src/sections/appendix/tables/CaO_overview.tex | 2 +- report_thesis/src/sections/appendix/tables/FeOT_overview.tex | 2 +- report_thesis/src/sections/appendix/tables/K2O_overview.tex | 2 +- report_thesis/src/sections/appendix/tables/MgO_overview.tex | 2 +- report_thesis/src/sections/appendix/tables/Na2O_overview.tex | 2 +- report_thesis/src/sections/appendix/tables/SiO2_overview.tex | 2 +- report_thesis/src/sections/appendix/tables/TiO2_overview.tex | 2 +- report_thesis/src/sections/background/data_overview.tex | 2 +- report_thesis/src/sections/experiments/data_preparation.tex | 2 +- report_thesis/src/sections/introduction.tex | 2 +- .../src/sections/proposed_approach/model_selection.tex | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-) diff --git a/baseline/experiment_analysis/experiment_analysis.ipynb b/baseline/experiment_analysis/experiment_analysis.ipynb index 1abdcaa4..d58b7cdb 100644 --- a/baseline/experiment_analysis/experiment_analysis.ipynb +++ b/baseline/experiment_analysis/experiment_analysis.ipynb @@ -2380,7 +2380,7 @@ " with open(path, \"w\") as file:\n", " file.write(\"\\\\begin{table}[!htb]\\n\")\n", " file.write(\"\\\\centering\\n\")\n", - " file.write(\"\\\\caption{Overview of model types for \\\\ce{\" + oxide_name + \"} oxide}\\n\")\n", + " file.write(\"\\\\caption{Overview of model types for \\\\ce{\" + oxide_name + \"} oxide}.\\n\")\n", " file.write(latex_table)\n", " file.write(\"\\\\label{tab:\" + oxide + \"_overview}\\n\")\n", " file.write(\"\\\\end{table}\\n\")\n" diff --git a/report_thesis/src/sections/appendix/index.tex b/report_thesis/src/sections/appendix/index.tex index 7b88fa86..f8671376 100644 --- a/report_thesis/src/sections/appendix/index.tex +++ b/report_thesis/src/sections/appendix/index.tex @@ -173,7 +173,7 @@ \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_expe \multicolumn{3}{l}{\textbf{Learning Rate:} 0.001} \\ \bottomrule \end{tabular} - \caption{Summary of the Neural Network Architecture} + \caption{Summary of the \gls{ann} architecture.} \label{tab:nn_architecture} \end{table} @@ -181,7 +181,7 @@ \subsection{Initial Experiment: Model Hyperparameters}\label{subsec:initial_expe \begin{table}[!htb] \centering - \caption{Summary of the Convolutional Neural Network Architecture} + \caption{Summary of the \gls{cnn} architecture.} \begin{tabular}{lll} \toprule \textbf{Layer} & \textbf{Output Shape} & \textbf{Hyperparameter} \\ \midrule diff --git a/report_thesis/src/sections/appendix/tables/Al2O3_overview.tex b/report_thesis/src/sections/appendix/tables/Al2O3_overview.tex index 02b15773..2b3650fc 100644 --- a/report_thesis/src/sections/appendix/tables/Al2O3_overview.tex +++ b/report_thesis/src/sections/appendix/tables/Al2O3_overview.tex @@ -1,6 +1,6 @@ \begin{table}[!htb] \centering -\caption{Overview of model types for \ce{Al2O3} oxide} +\caption{Overview of model types for \ce{Al2O3} oxide.} \begin{tabular}{llllllll} \toprule \ce{Al2O3} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ diff --git a/report_thesis/src/sections/appendix/tables/CaO_overview.tex b/report_thesis/src/sections/appendix/tables/CaO_overview.tex index d537c1dc..2683a1c3 100644 --- a/report_thesis/src/sections/appendix/tables/CaO_overview.tex +++ b/report_thesis/src/sections/appendix/tables/CaO_overview.tex @@ -1,6 +1,6 @@ \begin{table}[!htb] \centering -\caption{Overview of model types for \ce{CaO} oxide} +\caption{Overview of model types for \ce{CaO} oxide.} \begin{tabular}{llllllll} \toprule \ce{CaO} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ diff --git a/report_thesis/src/sections/appendix/tables/FeOT_overview.tex b/report_thesis/src/sections/appendix/tables/FeOT_overview.tex index 61c0b907..2e3710b7 100644 --- a/report_thesis/src/sections/appendix/tables/FeOT_overview.tex +++ b/report_thesis/src/sections/appendix/tables/FeOT_overview.tex @@ -1,6 +1,6 @@ \begin{table}[!htb] \centering -\caption{Overview of model types for \ce{FeO_T} oxide} +\caption{Overview of model types for \ce{FeO_T} oxide.} \begin{tabular}{llllllll} \toprule \ce{FeO_T} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ diff --git a/report_thesis/src/sections/appendix/tables/K2O_overview.tex b/report_thesis/src/sections/appendix/tables/K2O_overview.tex index d27e17c3..2bbb3f70 100644 --- a/report_thesis/src/sections/appendix/tables/K2O_overview.tex +++ b/report_thesis/src/sections/appendix/tables/K2O_overview.tex @@ -1,6 +1,6 @@ \begin{table}[!htb] \centering -\caption{Overview of model types for \ce{K2O} oxide} +\caption{Overview of model types for \ce{K2O} oxide.} \begin{tabular}{llllllll} \toprule \ce{K2O} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ diff --git a/report_thesis/src/sections/appendix/tables/MgO_overview.tex b/report_thesis/src/sections/appendix/tables/MgO_overview.tex index 5d75916a..c61cf8be 100644 --- a/report_thesis/src/sections/appendix/tables/MgO_overview.tex +++ b/report_thesis/src/sections/appendix/tables/MgO_overview.tex @@ -1,6 +1,6 @@ \begin{table}[!htb] \centering -\caption{Overview of model types for \ce{MgO} oxide} +\caption{Overview of model types for \ce{MgO} oxide.} \begin{tabular}{llllllll} \toprule \ce{MgO} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ diff --git a/report_thesis/src/sections/appendix/tables/Na2O_overview.tex b/report_thesis/src/sections/appendix/tables/Na2O_overview.tex index 9c480f27..cab6458b 100644 --- a/report_thesis/src/sections/appendix/tables/Na2O_overview.tex +++ b/report_thesis/src/sections/appendix/tables/Na2O_overview.tex @@ -1,6 +1,6 @@ \begin{table}[!htb] \centering -\caption{Overview of model types for \ce{Na2O} oxide} +\caption{Overview of model types for \ce{Na2O} oxide.} \begin{tabular}{llllllll} \toprule \ce{Na2O} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ diff --git a/report_thesis/src/sections/appendix/tables/SiO2_overview.tex b/report_thesis/src/sections/appendix/tables/SiO2_overview.tex index d5bde400..8df95e56 100644 --- a/report_thesis/src/sections/appendix/tables/SiO2_overview.tex +++ b/report_thesis/src/sections/appendix/tables/SiO2_overview.tex @@ -1,6 +1,6 @@ \begin{table}[!htb] \centering -\caption{Overview of model types for \ce{SiO2} oxide} +\caption{Overview of model types for \ce{SiO2} oxide.} \begin{tabular}{llllllll} \toprule \ce{SiO2} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ diff --git a/report_thesis/src/sections/appendix/tables/TiO2_overview.tex b/report_thesis/src/sections/appendix/tables/TiO2_overview.tex index eb5e40fe..55ea01e9 100644 --- a/report_thesis/src/sections/appendix/tables/TiO2_overview.tex +++ b/report_thesis/src/sections/appendix/tables/TiO2_overview.tex @@ -1,6 +1,6 @@ \begin{table}[!htb] \centering -\caption{Overview of model types for \ce{TiO2} oxide} +\caption{Overview of model types for \ce{TiO2} oxide.} \begin{tabular}{llllllll} \toprule \ce{TiO2} & Model Type & Transformer Type & PCA Type & Scaler Type & \gls{rmsecv} & Std. dev. CV & \gls{rmsep} \\ diff --git a/report_thesis/src/sections/background/data_overview.tex b/report_thesis/src/sections/background/data_overview.tex index d30d5bc0..81eb09c5 100644 --- a/report_thesis/src/sections/background/data_overview.tex +++ b/report_thesis/src/sections/background/data_overview.tex @@ -5,7 +5,7 @@ \subsection{Data Overview}\label{sec:data-overview} \begin{table*} \centering -\caption{Example of CCS data for a single location (from \citet{p9_paper})} +\caption{Example of CCS data for a single location (from \citet{p9_paper}).} \begin{tabular}{llllllll} \toprule wave & shot1 & shot2 & $\cdots$ & shot49 & shot50 & median & mean \\ diff --git a/report_thesis/src/sections/experiments/data_preparation.tex b/report_thesis/src/sections/experiments/data_preparation.tex index 4beba7d8..420b6728 100644 --- a/report_thesis/src/sections/experiments/data_preparation.tex +++ b/report_thesis/src/sections/experiments/data_preparation.tex @@ -27,7 +27,7 @@ \subsection{Data Preparation}\label{sec:data-preparation} \begin{table*} \centering -\caption{Excerpt from the composition dataset (from \citet{p9_paper})} +\caption{Excerpt from the composition dataset (from \citet{p9_paper}).} \begin{tabular}{lllllllllllll} \toprule Target & Spectrum Name & Sample Name & \ce{SiO2} & \ce{TiO2} & \ce{Al2O3} & \ce{FeO_T} & \ce{MnO} & \ce{MgO} & \ce{CaO} & \ce{Na2O} & \ce{K2O} & \ce{MOC total} \\ diff --git a/report_thesis/src/sections/introduction.tex b/report_thesis/src/sections/introduction.tex index cf2df94b..9f9f9e31 100644 --- a/report_thesis/src/sections/introduction.tex +++ b/report_thesis/src/sections/introduction.tex @@ -55,7 +55,7 @@ \section{Introduction}\label{sec:introduction} \begin{table} \centering -\caption{Table of Terms} +\caption{Table of terminology.} \begin{tabularx}{\columnwidth}{lX} % l for left, X for the cell that should be wrapped \toprule Term & Definition \\ diff --git a/report_thesis/src/sections/proposed_approach/model_selection.tex b/report_thesis/src/sections/proposed_approach/model_selection.tex index 66e9b2d9..480f2ab9 100644 --- a/report_thesis/src/sections/proposed_approach/model_selection.tex +++ b/report_thesis/src/sections/proposed_approach/model_selection.tex @@ -46,7 +46,7 @@ \subsection{Model and Preprocessing Selection}\label{sec:model_selection} \begin{table} \centering -\caption{Overview of Preprocessing Techniques and Models} +\caption{Overview of preprocessing techniques and models.} \begin{tabularx}{\columnwidth}{>{\raggedright\arraybackslash}X} \toprule \textbf{Normalization / Scaling:} \\