1 \documentclass[12pt]{article}
12 \setlength{\parindent}{0pt}
13 \usepackage[utf8]{inputenc}
14 \usepackage[french]{babel}
16 \renewcommand{\familydefault}{\sfdefault}
17 \usepackage{amsmath,amsfonts,amssymb}
23 %\setcounter{section}{9}
27 <<setup, include=FALSE, cache=FALSE, echo=FALSE>>=
28 opts_chunk$set(fig.path="figs/", fig.align="center", fig.show="hold", echo=FALSE)
29 options(replace.assign=TRUE,width=90)
34 station = "STATIONNAME"
35 experts = aggexp:::expertsArray[EXPERTSINDICES]
39 \cprotect\section{\verb|STATIONNAME| - Résumé des données}
42 <<plotCurves, out.width="12cm", out.height="9cm">>=
43 mock_r = list(data = getData(experts, station), experts=experts, stations=station)
48 \cprotect\section{\verb|STATIONNAME| - Performances en prédiction}
51 <<computePredictions>>=
52 r_ml = runAlgorithm("ml", experts=experts, stations=station, alpha=0.2, H=183, grad=TRUE)
53 r_rr = runAlgorithm("rr", experts=experts, stations=station, H=183)
55 be = which.max(getBestExpert(r_ml))
56 r_be$data[,"Prediction"] = r_be$data[,experts[be]]
59 <<plotPredictionClouds, out.width="6cm", out.height="6cm">>=
60 plotCloud(r_be, 30, c(30,50,80), main=paste("Nuage Meilleur Expert (",experts[be],")",sep=""))
61 plotCloud(r_ml, 30, c(30,50,80), main="Nuage ML")
62 plotCloud(r_rr, 30, c(30,50,80), main="Nuage RR")
66 \cprotect\section{\verb|STATIONNAME| - Indicateurs d'alertes}
69 <<computeAlertIndicators>>=
70 indicators = matrix(nrow=5, ncol=4+K)
71 indicators[,1] = as.numeric(getIndicators(r_ml, thresh=30))
72 indicators[,2] = as.numeric(getIndicators(r_rr, thresh=30))
74 r_be$data[,"Prediction"] = r_be$data[,experts[i]]
75 indicators[,i+2] = as.numeric(getIndicators(r_be, thresh=30))
77 indicators = as.data.frame(indicators, row.names=c("TS","FA","MA","RMSE","EV"))
78 names(indicators) = c("ML","RR", experts)
81 <<plotAlertIndicators, results="asis">>=
83 splitIndex = ifelse(length(experts) < 10, 7, 8)
84 xtable(indicators[,1:splitIndex], caption="Indicateurs d'alertes ; partie 1")
85 xtable(indicators[,(splitIndex+1):(2+K)], caption="Indicateurs d'alertes ; partie 2")