fadzwan commited on
Commit
2433312
·
verified ·
1 Parent(s): 0515eda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -8
app.py CHANGED
@@ -86,14 +86,25 @@ def main():
86
  pca.fit(scaler.transform(X_train))
87
  save_model_artifacts(regressor, scaler, pca)
88
 
89
- cement = st.number_input("Cement (kg/m^3)", min_value=0.0, step=1.0)
90
- blast_furnace_slag = st.number_input("Blast Furnace Slag (kg/m^3)", min_value=0.0, step=1.0)
91
- fly_ash = st.number_input("Fly Ash (kg/m^3)", min_value=0.0, step=1.0)
92
- water = st.number_input("Water (kg/m^3)", min_value=0.0, step=1.0)
93
- superplasticizer = st.number_input("Superplasticizer (kg/m^3)", min_value=0.0, step=1.0)
94
- coarse_aggregate = st.number_input("Coarse Aggregate (kg/m^3)", min_value=0.0, step=1.0)
95
- fine_aggregate = st.number_input("Fine Aggregate (kg/m^3)", min_value=0.0, step=1.0)
96
- FLOW = st.number_input("FLOW (cm)", min_value=0.0, step=1.0)
 
 
 
 
 
 
 
 
 
 
 
97
 
98
  if st.button("Predict Slump Strength"):
99
  slump_prediction = predict_slump(cement, blast_furnace_slag, fly_ash, water, superplasticizer, coarse_aggregate, fine_aggregate, FLOW)
 
86
  pca.fit(scaler.transform(X_train))
87
  save_model_artifacts(regressor, scaler, pca)
88
 
89
+ # cement = st.number_input("Cement (kg/m^3)", min_value=0.0, step=1.0)
90
+ # blast_furnace_slag = st.number_input("Blast Furnace Slag (kg/m^3)", min_value=0.0, step=1.0)
91
+ # fly_ash = st.number_input("Fly Ash (kg/m^3)", min_value=0.0, step=1.0)
92
+ # water = st.number_input("Water (kg/m^3)", min_value=0.0, step=1.0)
93
+ # superplasticizer = st.number_input("Superplasticizer (kg/m^3)", min_value=0.0, step=1.0)
94
+ # coarse_aggregate = st.number_input("Coarse Aggregate (kg/m^3)", min_value=0.0, step=1.0)
95
+ # fine_aggregate = st.number_input("Fine Aggregate (kg/m^3)", min_value=0.0, step=1.0)
96
+ # FLOW = st.number_input("FLOW (cm)", min_value=0.0, step=1.0)
97
+
98
+ cement = 0.5532916014826834
99
+ blast_furnace_slag =-0.005227944774632739
100
+ fly_ash = -0.13155706473691084
101
+ water = -0.8899452596015911
102
+ superplasticizer = -0.8533594548721104
103
+ coarse_aggregate = 0.7873497318642375
104
+ fine_aggregate = 0.08018932948598978
105
+ FLOW = 0.06250289692348374
106
+
107
+
108
 
109
  if st.button("Predict Slump Strength"):
110
  slump_prediction = predict_slump(cement, blast_furnace_slag, fly_ash, water, superplasticizer, coarse_aggregate, fine_aggregate, FLOW)