mirror of https://github.com/MISP/misp-training
Merge branch 'master' of github.com:MISP/misp-training
commit
dfd9c12daa
|
@ -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}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue