Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ with st.sidebar:
|
|
| 28 |
test_size = st.slider("Test Size",0.1,0.5,0.05)
|
| 29 |
|
| 30 |
st.header("ANN Hyperparameters")
|
| 31 |
-
hl = st.number_input("Hidden Layers",
|
| 32 |
numbers = st.text_input("Neurons for each hidden layer" ,placeholder="provide comma seperated e.g. 8,16,32")
|
| 33 |
input_func = lambda x: [int(i.strip()) for i in x.split(",") if i.strip() != ""]
|
| 34 |
nn = input_func(numbers)
|
|
@@ -48,16 +48,16 @@ with st.sidebar:
|
|
| 48 |
# with col3:
|
| 49 |
reg = st.selectbox("Regularizer", ["None", "L1", "L2","ElasticNet"])
|
| 50 |
if reg != "None":
|
| 51 |
-
reg_rate = st.slider("Regularization rate", 0.0, 0.1, 0.01
|
| 52 |
# with col4:
|
| 53 |
es = st.selectbox("Early Stopping",["No","Yes"],index=0)
|
| 54 |
if es == "Yes":
|
| 55 |
col3, col4 = st.columns(2)
|
| 56 |
with col3:
|
| 57 |
-
min_delta = st.number_input(0.001,0.9,0.1,value=0.001)
|
| 58 |
|
| 59 |
with col4:
|
| 60 |
-
patience = min_delta = st.number_input(3,20,0.1,value=3)
|
| 61 |
|
| 62 |
# if st.sidebar.button("start trainning"):
|
| 63 |
|
|
|
|
| 28 |
test_size = st.slider("Test Size",0.1,0.5,0.05)
|
| 29 |
|
| 30 |
st.header("ANN Hyperparameters")
|
| 31 |
+
hl = st.number_input("Hidden Layers",2,10,1)
|
| 32 |
numbers = st.text_input("Neurons for each hidden layer" ,placeholder="provide comma seperated e.g. 8,16,32")
|
| 33 |
input_func = lambda x: [int(i.strip()) for i in x.split(",") if i.strip() != ""]
|
| 34 |
nn = input_func(numbers)
|
|
|
|
| 48 |
# with col3:
|
| 49 |
reg = st.selectbox("Regularizer", ["None", "L1", "L2","ElasticNet"])
|
| 50 |
if reg != "None":
|
| 51 |
+
reg_rate = st.slider("Regularization rate", 0.0, 0.1, 0.01)
|
| 52 |
# with col4:
|
| 53 |
es = st.selectbox("Early Stopping",["No","Yes"],index=0)
|
| 54 |
if es == "Yes":
|
| 55 |
col3, col4 = st.columns(2)
|
| 56 |
with col3:
|
| 57 |
+
min_delta = st.number_input(0.001,0.9,step=0.1,value=0.001)
|
| 58 |
|
| 59 |
with col4:
|
| 60 |
+
patience = min_delta = st.number_input(3,20,step=0.1,value=3)
|
| 61 |
|
| 62 |
# if st.sidebar.button("start trainning"):
|
| 63 |
|