Skip to content
Snippets Groups Projects
Commit 86ac83db authored by DIANE's avatar DIANE
Browse files

joblib dump

parent e460b7e4
No related branches found
No related tags found
No related merge requests found
...@@ -320,7 +320,7 @@ def report(*args): ...@@ -320,7 +320,7 @@ def report(*args):
latex_report += r""" latex_report += r"""
\begin{figure}[H] \begin{figure}[H]
\centering \centering
\includegraphics[width=1\linewidth]{Histogram.png} \includegraphics[width=1\linewidth]{kdeplot.png}
\caption{Kde plot visualizing the distribution of the target variable, a subset of training, and testing sets} \caption{Kde plot visualizing the distribution of the target variable, a subset of training, and testing sets}
\label{fig:Histogram} \label{fig:Histogram}
\end{figure} \end{figure}
...@@ -351,16 +351,17 @@ def report(*args): ...@@ -351,16 +351,17 @@ def report(*args):
latex_report += df1.style.format("${:.2f}$").to_latex(position_float = 'centering', hrules = True, caption = 'Model performances summary', label= 'table:reg_perf') latex_report += df1.style.format("${:.2f}$").to_latex(position_float = 'centering', hrules = True, caption = 'Model performances summary', label= 'table:reg_perf')
if "PLS" in to_report: if "PLS" in to_report:
latex_report += r"""To identify the most important and influential spectral regions in the model, Selectivity ratio (SR) \cite{kvalheim2020variable, farres2015comparison} test applied, and the important variables in the model were # latex_report += r"""To identify the most important and influential spectral regions in the model, Selectivity ratio (SR) \cite{kvalheim2020variable, farres2015comparison} test applied, and the important variables in the model were
visualized in \cref{fig:importance}. \par # visualized in \cref{fig:importance}. \par
\begin{figure}[h] # \begin{figure}[h]
\centering # \centering
\includegraphics[width=1\linewidth]{Variable_importance.png} # \includegraphics[width=1\linewidth]{Variable_importance.png}
\caption{Visualizing important spectral regions identified in the PLS model on the raw and preprocessed average spectrum} # \caption{Visualizing important spectral regions identified in the PLS model on the raw and preprocessed average spectrum}
\label{fig:importance} # \label{fig:importance}
\end{figure} # \end{figure}
""" # """
pass
elif "LW-PLS" in to_report: elif "LW-PLS" in to_report:
latex_report += r"""The average of raw and preprocessed spectra is visualized in \cref{fig:importance}. \par latex_report += r"""The average of raw and preprocessed spectra is visualized in \cref{fig:importance}. \par
......
...@@ -45,7 +45,7 @@ import pyodbc ...@@ -45,7 +45,7 @@ import pyodbc
import json import json
# save models # save models
from joblib import dump, load, hash from joblib import load, hash
st.set_option('deprecation.showPyplotGlobalUse', False) st.set_option('deprecation.showPyplotGlobalUse', False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment