From 41fd575b0e4f69a6e0bac36cf98c30d73c110a32 Mon Sep 17 00:00:00 2001 From: Sofiane HADDAD Date: Mon, 16 Jun 2025 19:49:17 +0200 Subject: [PATCH 1/2] cosmetics: build on github action differ with the one locally --- userday2025/userday2025gpr/userday2025gpr.tex | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/userday2025/userday2025gpr/userday2025gpr.tex b/userday2025/userday2025gpr/userday2025gpr.tex index 8bdac22..dfcc7cd 100644 --- a/userday2025/userday2025gpr/userday2025gpr.tex +++ b/userday2025/userday2025gpr/userday2025gpr.tex @@ -6,9 +6,6 @@ %\setbeameroption{show only notes} \include{macros} -\usepackage{adjustbox} -\usepackage[normalem]{ulem} -\usepackage{listings} \usepackage{hyperref} \title[OpenTURNS]{OpenTURNS release highlights : the new Gaussian Process API} @@ -50,8 +47,7 @@ \section{Kriging implementation : current limitations} \frametitle{Kriging implementation: basic example} \begin{small} -\lstset{language=python} -\begin{lstlisting} +\begin{lstlisting}[language=Python] import openturns as ot ... # Call kriging @@ -63,7 +59,6 @@ \section{Kriging implementation : current limitations} func = kriging_result.getMetaModel() # Conditional variance cond_var = kriging_result.getConditionalVariance(new_X) - \end{lstlisting} \end{small} @@ -80,8 +75,7 @@ \section{Kriging implementation : current limitations} \begin{frame}[containsverbatim] \frametitle{Kriging implementation: change some parameters} \begin{small} -\lstset{language=python} -\begin{lstlisting} +\begin{lstlisting}[language=Python] import openturns as ot # Set optimizer @@ -106,8 +100,6 @@ \section{Kriging implementation : current limitations} func = kriging_result.getMetaModel() # Conditional variance cond_var = kriging_result.getConditionalVariance(new_X) - - \end{lstlisting} \end{small} @@ -173,8 +165,7 @@ \section{New API} \begin{small} -\lstset{language=python} -\begin{lstlisting} +\begin{lstlisting}[language=Python] # Call fitter fitter_algo = otexp.GaussianProcessFitter(X_train, Y_train, covarianceModel, basis) fitter_algo.run() @@ -195,8 +186,7 @@ \section{New API} \begin{small} -\lstset{language=python} -\begin{lstlisting} +\begin{lstlisting}[language=Python] # trend function trend_function = ot.SymbolicFunction("x", "-3.1710410094572903") # Covariance @@ -217,8 +207,7 @@ \section{New API} \begin{frame}[containsverbatim] \frametitle{Post-processing : conditional covariance} \begin{small} -\lstset{language=python} -\begin{lstlisting} +\begin{lstlisting}[language=Python] # Call fitter fitter_algo = otexp.GaussianProcessFitter(X_train, Y_train, covarianceModel, basis) fitter_algo.run() From eaf85181a7b3d3d16045b4471a4158c066b9033b Mon Sep 17 00:00:00 2001 From: Sofiane HADDAD Date: Mon, 16 Jun 2025 20:06:35 +0200 Subject: [PATCH 2/2] Add missing macros --- userday2025/userday2025gpr/macros.tex | 70 +++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 userday2025/userday2025gpr/macros.tex diff --git a/userday2025/userday2025gpr/macros.tex b/userday2025/userday2025gpr/macros.tex new file mode 100644 index 0000000..2d6ac26 --- /dev/null +++ b/userday2025/userday2025gpr/macros.tex @@ -0,0 +1,70 @@ +% Copyright (C) 2012 - EDF R&D - Michael Baudin + +% TIKZ +\usepackage{tikz} +\usetikzlibrary{shapes.geometric, arrows, backgrounds, fit, positioning} + +% TIKZ STYLE +\tikzstyle{elips} = [ellipse, minimum width=3cm, minimum height=1cm,text centered, text width=3.5cm , draw=black] +\tikzstyle{rect} = [rectangle, text centered, text width=3.5cm , draw=black] +\tikzstyle{boxe} = [rectangle, rounded corners, text centered, draw=black] +\tikzstyle{dot} = [rectangle, text centered] +\tikzstyle{wbox} = [rectangle, fill=green!100] +\tikzstyle{arrow} = [thick,->,>=stealth] + +\tikzstyle{otbox} = [draw=otgreen, fill=otgreen!20, thick, ellipse] +\tikzstyle{mybox} = [text=white, fill=otgreen, thick, rectangle, rounded corners] +\tikzstyle{mybox1} = [text=otgreen, draw=otgreen, fill=white, thick, ellipse] +\tikzstyle{mybox2} = [text=white, fill=ofonce!90, thick, rectangle, rounded corners] +\tikzstyle{modeltitle}=[fill=gray, text=white] + +\usetheme{Darmstadt} % http://tex.stackexchange.com/questions/177042/beamer-latex-customized-formats + +% \useoutertheme[subsection=false,footline=authortitle]{miniframes} +\beamertemplatenavigationsymbolsempty + +% RGB scaled on 0-255 scale (section 17.1.1), colors pulled from title block +\usecolortheme[RGB={44, 131, 82}]{structure} + +% hide header: +\setbeamertemplate{headline}{} + +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} + +\def\bx{{\bf x}} +\def\RR{\mathbb{R}} + +\newcommand{\pyvar}[1]{\texttt{#1}} + +\def \ot {OpenTURNS} + +\hypersetup{colorlinks=true} + +% To highlight source code +\usepackage{listings} +\definecolor{darkgreen}{rgb}{0,0.5,0} +\definecolor{violet}{rgb}{0.5,0,1} +\definecolor{otgreen}{HTML}{32822d} + +\definecolor{ofonce}{HTML}{FE5716} +\definecolor{omoyen}{HTML}{FF861D} +\definecolor{oclair}{HTML}{FFB210} + +\lstset{ + % general command to set parameter(s) + basicstyle=\scriptsize\ttfamily, % + keywordstyle=\color{violet}\bfseries,% + commentstyle=\color{darkgreen}\bfseries,% + showspaces=false,% + stringstyle=\color{red}\bfseries, + otherkeywords={Gumbel, TruncatedDistribution, LatentVariableModel, % + SmoothedUniformFactory, Uniform, PythonFunction, ComposedDistribution, % + StudentCopula, StudentCopulaFactory, RankSobolSensitivityAlgorithm, % + MonteCarlo, IntervalMesher, PointToFieldFunctionalChaosAlgorithm, % + FieldFunctionalChaosSobolIndices, HistogramFactory, % + Graph, BoxCoxFactory, CompositeProcess, WhittleFactory, ARMAFactory, % + Basis, TrendFactory, BoxCoxTransform, SpatialFunction, TimeSeries, % + WelchFactory, GreaterOrEqual, IndependentCopula, % + SystemFORM, UnionEvent, IntersectionEvent, QuantileConfidence}, +}