From 9d4405f56b0325e8619e716f2366e8b330fbb0af Mon Sep 17 00:00:00 2001 From: amilashanaka <dsa.amilashanaka@gmail.com> Date: Sun, 8 Jan 2023 19:47:08 +0000 Subject: [PATCH] Update run.py --- api/run.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/run.py b/api/run.py index fc46fa1..78667ab 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 -- GitLab