Merge branch 'master' of github.com:MISP/misp-training

changes-actionable
iglocska 2019-10-25 02:19:00 +02:00
commit dfd9c12daa
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 29 additions and 2 deletions

View File

@ -239,7 +239,7 @@
\item \textbf{User-friendly UI} to manually set \textit{Model} configuration (lifetime, decay, etc.) \item \textbf{User-friendly UI} to manually set \textit{Model} configuration (lifetime, decay, etc.)
\item \textbf{Simulation} tool \item \textbf{Simulation} tool
\item Interaction through the \textbf{API} \item Interaction through the \textbf{API}
\item Opportunity to create your \textbf{own} formula or algorythm \item Opportunity to create your \textbf{own} formula or algorithm
\end{itemize} \end{itemize}
\end{frame} \end{frame}
@ -315,6 +315,33 @@
\end{lstlisting} \end{lstlisting}
\end{frame} \end{frame}
\lstset{language=PHP}
\begin{frame}[fragile]
\frametitle{Creating a new decay algorithm}
\lstset{basicstyle=\scriptsize}
\begin{lstlisting}
<?php
include_once 'Base.php';
class Polynomial extends DecayingModelBase
{
public const DESCRIPTION = 'The description of your new decaying algorithm';
public function computeScore($model, $attribute, $base_score, $elapsed_time)
{
// algorithm returning a numerical score
}
public function isDecayed($model, $attribute, $score)
{
// algorithm returning a boolean stating
// if the attribute is expired or not
}
}
?>
\end{lstlisting}
\end{frame}
\begin{frame} \begin{frame}
\frametitle{Decaying Models 2.0} \frametitle{Decaying Models 2.0}
\begin{itemize} \begin{itemize}

View File

@ -224,7 +224,7 @@
\item \textbf{User-friendly UI} to manually set \textit{Model} configuration (lifetime, decay, etc.) \item \textbf{User-friendly UI} to manually set \textit{Model} configuration (lifetime, decay, etc.)
\item \textbf{Simulation} tool \item \textbf{Simulation} tool
\item Interaction through the \textbf{API} \item Interaction through the \textbf{API}
\item Opportunity to create your \textbf{own} formula or algorythm \item Opportunity to create your \textbf{own} formula or algorithm
\end{itemize} \end{itemize}
\end{frame} \end{frame}