"indices = seq(as.Date(\"2015-01-18\"),as.Date(\"2015-01-24\"),\"days\")\n",
"p_ch_nn = getForecast(data,indices,\"Neighbors\",\"Neighbors\",simtype=\"mix\",same_season=FALSE,mix_strategy=\"mult\")\n",
"p_ch_pz = getForecast(data, indices, \"Persistence\", \"Zero\", same_day=TRUE)\n",
"indices = seq(as.Date(\"2015-01-18\"),as.Date(\"2015-01-24\"),\"days\")\n",
"p_ch_nn = getForecast(data,indices,\"Neighbors\",\"Neighbors\",simtype=\"mix\",same_season=FALSE,mix_strategy=\"mult\")\n",
"p_ch_pz = getForecast(data, indices, \"Persistence\", \"Zero\", same_day=TRUE)\n",
- "p_ch_az = getForecast(data, indices, \"Average\", \"Zero\", memory=183)\n",
+ "p_ch_az = getForecast(data, indices, \"Average\", \"Zero\") #, memory=183)\n",
"#p_ch_zz = getForecast(data, indices, \"Zero\", \"Zero\")\n",
"#p_ch_l = getForecast(data, indices, \"Level\", same_day=FALSE)"
]
"#p_ch_zz = getForecast(data, indices, \"Zero\", \"Zero\")\n",
"#p_ch_l = getForecast(data, indices, \"Level\", same_day=FALSE)"
]
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [],
+ "source": [
+ "par(mfrow=c(1,2))\n",
+ "plotPredReal(data, p_ch_az, 3)\n",
+ "plotPredReal(data, p_ch_az, 4)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Les erreurs sont proches, mais les courbes prédites très différentes : avantage à \"Neighbors\""
+ ]
+ },
"indices = seq(as.Date(\"2015-03-15\"),as.Date(\"2015-03-21\"),\"days\")\n",
"p_ep_nn = getForecast(data,indices,\"Neighbors\",\"Neighbors\",simtype=\"mix\",same_season=FALSE,mix_strategy=\"mult\")\n",
"p_ep_pz = getForecast(data, indices, \"Persistence\", \"Zero\", same_day=TRUE)\n",
"indices = seq(as.Date(\"2015-03-15\"),as.Date(\"2015-03-21\"),\"days\")\n",
"p_ep_nn = getForecast(data,indices,\"Neighbors\",\"Neighbors\",simtype=\"mix\",same_season=FALSE,mix_strategy=\"mult\")\n",
"p_ep_pz = getForecast(data, indices, \"Persistence\", \"Zero\", same_day=TRUE)\n",
- "p_ep_az = getForecast(data, indices, \"Average\", \"Zero\", memory=183)\n",
+ "p_ep_az = getForecast(data, indices, \"Average\", \"Zero\") #, memory=183)\n",
"#p_ep_zz = getForecast(data, indices, \"Zero\", \"Zero\")\n",
"#p_ep_l = getForecast(data, indices, \"Level\", same_day=TRUE)"
]
"#p_ep_zz = getForecast(data, indices, \"Zero\", \"Zero\")\n",
"#p_ep_l = getForecast(data, indices, \"Level\", same_day=TRUE)"
]
"par(mfrow=c(1,2))\n",
"options(repr.plot.width=9, repr.plot.height=4)\n",
"plotPredReal(data, p_ep_nn, 4)\n",
"par(mfrow=c(1,2))\n",
"options(repr.plot.width=9, repr.plot.height=4)\n",
"plotPredReal(data, p_ep_nn, 4)\n",
- "plotPredReal(data, p_ep_nn, 6)"
+ "plotPredReal(data, p_ep_nn, 6)\n",
+ "\n",
+ "#Bleu: prévue, noir: réalisée"
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [],
+ "source": [
+ "par(mfrow=c(1,2))\n",
+ "plotPredReal(data, p_ep_pz, 4)\n",
+ "plotPredReal(data, p_ep_pz, 6)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Bonnes performances de la persistence (par chance...)"
+ ]
+ },
"indices = seq(as.Date(\"2015-04-26\"),as.Date(\"2015-05-02\"),\"days\")\n",
"p_np_nn = getForecast(data,indices,\"Neighbors\",\"Neighbors\",simtype=\"mix\",same_season=FALSE,mix_strategy=\"mult\")\n",
"p_np_pz = getForecast(data, indices, \"Persistence\", \"Zero\", same_day=FALSE)\n",
"indices = seq(as.Date(\"2015-04-26\"),as.Date(\"2015-05-02\"),\"days\")\n",
"p_np_nn = getForecast(data,indices,\"Neighbors\",\"Neighbors\",simtype=\"mix\",same_season=FALSE,mix_strategy=\"mult\")\n",
"p_np_pz = getForecast(data, indices, \"Persistence\", \"Zero\", same_day=FALSE)\n",
- "p_np_az = getForecast(data, indices, \"Average\", \"Zero\", memory=183)\n",
+ "p_np_az = getForecast(data, indices, \"Average\", \"Zero\") #, memory=183)\n",
"#p_np_zz = getForecast(data, indices, \"Zero\", \"Zero\")\n",
"#p_np_l = getForecast(data, indices, \"Level\", same_day=FALSE)"
]
"#p_np_zz = getForecast(data, indices, \"Zero\", \"Zero\")\n",
"#p_np_l = getForecast(data, indices, \"Level\", same_day=FALSE)"
]
"par(mfrow=c(1,2))\n",
"options(repr.plot.width=9, repr.plot.height=4)\n",
"plotPredReal(data, p_np_nn, 3)\n",
"par(mfrow=c(1,2))\n",
"options(repr.plot.width=9, repr.plot.height=4)\n",
"plotPredReal(data, p_np_nn, 3)\n",
- "plotPredReal(data, p_np_nn, 6)"
+ "plotPredReal(data, p_np_nn, 6)\n",
+ "\n",
+ "#Bleu: prévue, noir: réalisée"
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [],
+ "source": [
+ "par(mfrow=c(1,2))\n",
+ "plotPredReal(data, p_np_az, 3)\n",
+ "plotPredReal(data, p_np_az, 6)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Légèrement meilleur ajustement par la méthode \"Average\" ; très net à droite."
+ ]
+ },