From ef29c794c54d6a1a5c0a5ec42e797e48582085b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Tue, 11 Jun 2019 16:57:58 -0300 Subject: [PATCH] Update ResidualAnalysis.py --- pyFTS/benchmarks/ResidualAnalysis.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pyFTS/benchmarks/ResidualAnalysis.py b/pyFTS/benchmarks/ResidualAnalysis.py index 98070c5..af6a85b 100644 --- a/pyFTS/benchmarks/ResidualAnalysis.py +++ b/pyFTS/benchmarks/ResidualAnalysis.py @@ -58,7 +58,7 @@ def compare_residuals(data, models, alpha=.05): return pd.DataFrame(rows, columns=columns) -def plot_residuals(targets, models, tam=[8, 8], save=False, file=None): +def plot_residuals_by_model(targets, models, tam=[8, 8], save=False, file=None): import scipy as sp fig, axes = plt.subplots(nrows=len(models), ncols=4, figsize=tam) @@ -97,13 +97,11 @@ def plot_residuals(targets, models, tam=[8, 8], save=False, file=None): Util.show_and_save_image(fig, file, save) -def single_plot_residuals(targets, forecasts, order, tam=[10, 7], save=False, file=None): + def single_plot_residuals(res, order, tam=[10, 7], save=False, file=None): import scipy as sp fig, ax = plt.subplots(nrows=2, ncols=2, figsize=tam) - res = residuals(targets, forecasts, order) - ax[0][0].set_title("Residuals", size='large') ax[0][0].plot(res)