Skip to content
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
70 changes: 70 additions & 0 deletions userday2025/userday2025gpr/macros.tex
Original file line number Diff line number Diff line change
@@ -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},
}
21 changes: 5 additions & 16 deletions userday2025/userday2025gpr/userday2025gpr.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand All @@ -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}

Expand All @@ -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
Expand All @@ -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}

Expand Down Expand Up @@ -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()
Expand All @@ -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
Expand All @@ -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()
Expand Down