delete np
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import streamlit as st
|
import streamlit as st
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
from sklearn.cluster import DBSCAN
|
from sklearn.cluster import DBSCAN
|
||||||
import numpy as np
|
|
||||||
|
|
||||||
st.header("Clustering: dbscan")
|
st.header("Clustering: dbscan")
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@ if "data" in st.session_state:
|
|||||||
|
|
||||||
with st.form("my_form"):
|
with st.form("my_form"):
|
||||||
row1 = st.columns([1,1,1])
|
row1 = st.columns([1,1,1])
|
||||||
n_clusters = row1[0].selectbox("Number of clusters", range(1, data.shape[0]))
|
n_clusters = row1[0].selectbox("Number of clusters", range(1,data.shape[0]))
|
||||||
data_name = row1[1].multiselect("Data Name",data.select_dtypes(include="number").columns, max_selections=2)
|
data_name = row1[1].multiselect("Data Name",data.select_dtypes(include="number").columns, max_selections=2)
|
||||||
n_init = row1[2].number_input("n_init",step=1,min_value=1)
|
n_init = row1[2].number_input("n_init",step=1,min_value=1)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user