diff --git a/api/run.py b/api/run.py index fc46fa1cb05aa3f63d5b4a671fa144d29a06e5ea..78667ab11fd833ef291c9c160027b3878b816171 100644 --- a/api/run.py +++ b/api/run.py @@ -442,6 +442,14 @@ def forecast_to_date(): return result +@app.route('/get_accuracy',method=["POST"]) +def get_accuracy(): + # model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy']) + # history = model.fit(X, Y, epochs=100) + # print(history.history['loss']) + # print(history.history['accuracy']) + return "accuracy" + @app.route("/forecast_to_range",methods=["POST"]) def forecast_to_range(): global data_set