File size: 660 Bytes
2648181
238c1b2
 
 
 
 
 
 
 
 
2648181
 
 
9c4dbd0
 
 
 
 
 
 
 
 
 
 
 
 
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
from statsmodels.tsa.statespace.varmax import VARMAX
import matplotlib.pyplot as plt
import statsmodels.api as sm
import pandas as pd
import numpy as np

import warnings
warnings.filterwarnings('ignore')

import streamlit as st
import joblib


fitted_model = joblib.load('modelling_all.sav')
predict=fitted_model.get_prediction(start=1401,end=1430, dynamic=True)

predictions=predict.predicted_mean
predictions['Harga Bawang']=predictions['Harga Bawang'].round()
predictions.columns=['Prediction Harga Bawang',
    'Prediction T2M',
     'Prediction RH2M',
    'Prediction WS10M_RANGE',
     'Prediction PRECTOTCORR']
predictions=predictions.abs()

predictions