Skip to content

Commit

Permalink
graphs loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJDecastro committed Jun 4, 2019
1 parent f417d89 commit 4523e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboards/solarplus-ui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def extractData_plotTwoQueries(filename, startDate, endDate, feature1, feature2)
@crossdomain(origin="*")
def MLPredictionModel(day1, day2, day3, day4, day5, day6, day7):
print(day1, day2, day3, day4, day5, day6, day7)
filename = 'trained_model.sav'
filename = './solarplus-ui/trained_model.sav'
loaded_model = pickle.load(open(filename, 'rb'))

X_pred = [[float(day1)],[float(day2)],[float(day3)],[float(day4)],[float(day5)],[float(day6)],[float(day7)]]
Expand Down

0 comments on commit 4523e88

Please sign in to comment.