renewenergy.plot_rmse

Module Contents

Functions

plot_rmse(training_data_path, test_data_path, output_path)

Perform linear regression and plot the results on a graph containing Expected vs Predicted.

renewenergy.plot_rmse.plot_rmse(training_data_path, test_data_path, output_path)[source]

Perform linear regression and plot the results on a graph containing Expected vs Predicted.

Parameters:
  • training_data_path (str) – Path to training data .csv file

  • test_data_path (str) – Path to test data .csv file

  • output_path (str) – Directory to which the figure should be saved to.

Returns:

Figure containing the Predicted vs Expected Values of the linear regression.

Return type:

results.png

Examples

>>> plot_rmse("data/energy_train.csv", "data/energy_test.csv", "results/" )