File size: 3,115 Bytes
83b406a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from flask import Blueprint

from controllers.PredictController import PredictController

Predict = Blueprint('Predict', __name__)

Predict.route('/lr/temp', methods = ['POST'])(PredictController.predictLRTemp)
Predict.route('/lr/humi', methods = ['POST'])(PredictController.predictLRHumi)
Predict.route('/lr/co2', methods = ['POST'])(PredictController.predictLRCO2)
Predict.route('/lr/co', methods = ['POST'])(PredictController.predictLRCO)
Predict.route('/lr/uv', methods = ['POST'])(PredictController.predictLRUV)
Predict.route('/lr/pm25', methods = ['POST'])(PredictController.predictLRPM25)

Predict.route('/prophet/temp', methods = ['POST'])(PredictController.predictTempProphet)
Predict.route('/prophet/humi', methods = ['POST'])(PredictController.predictHumiProphet)
Predict.route('/prophet/co2', methods = ['POST'])(PredictController.predictCO2Prophet)
Predict.route('/prophet/co', methods = ['POST'])(PredictController.predictCOProphet)
Predict.route('/prophet/uv', methods = ['POST'])(PredictController.predictUVProphet)
Predict.route('/prophet/pm25', methods = ['POST'])(PredictController.predictPM25Prophet)

Predict.route('/prophet-lstm/temp', methods = ['POST'])(PredictController.predictTempProphetLSTM)

Predict.route('/lstm/temp', methods = ['POST'])(PredictController.predictTempLSTM)
Predict.route('/lstm/humi', methods = ['POST'])(PredictController.predictHumiLSTM)
Predict.route('/lstm/co2', methods = ['POST'])(PredictController.predictCO2LSTM)
Predict.route('/lstm/co', methods = ['POST'])(PredictController.predictCOLSTM)
Predict.route('/lstm/uv', methods = ['POST'])(PredictController.predictUVLSTM)
Predict.route('/lstm/pm25', methods = ['POST'])(PredictController.predictPM25LSTM)

Predict.route('/gb/temp', methods = ['POST'])(PredictController.predictGBTemp)
Predict.route('/gb/humi', methods = ['POST'])(PredictController.predictGBHumi)
Predict.route('/gb/co2', methods = ['POST'])(PredictController.predictGBCO2)
Predict.route('/gb/co', methods = ['POST'])(PredictController.predictGBCO)
Predict.route('/gb/uv', methods = ['POST'])(PredictController.predictGBUV)
Predict.route('/gb/pm25', methods = ['POST'])(PredictController.predictGBPM25)

Predict.route('/xgb/temp', methods = ['POST'])(PredictController.predictXGBTemp)
Predict.route('/xgb/humi', methods = ['POST'])(PredictController.predictXGBHumi)
Predict.route('/xgb/co2', methods = ['POST'])(PredictController.predictXGBCO2)
Predict.route('/xgb/co', methods = ['POST'])(PredictController.predictXGBCO)
Predict.route('/xgb/uv', methods = ['POST'])(PredictController.predictXGBUV)
Predict.route('/xgb/pm25', methods = ['POST'])(PredictController.predictXGBPM25)

Predict.route('/rf/temp', methods = ['POST'])(PredictController.predictRFTemp)
Predict.route('/rf/humi', methods = ['POST'])(PredictController.predictRFHumi)
Predict.route('/rf/co2', methods = ['POST'])(PredictController.predictRFCO2)
Predict.route('/rf/co', methods = ['POST'])(PredictController.predictRFCO)
Predict.route('/rf/uv', methods = ['POST'])(PredictController.predictRFUV)
Predict.route('/rf/pm25', methods = ['POST'])(PredictController.predictRFPM25)