diff --git a/bsoid_app/analysis_subroutines/machine_performance.py b/bsoid_app/analysis_subroutines/machine_performance.py index 2a1f75f6..78fa9868 100644 --- a/bsoid_app/analysis_subroutines/machine_performance.py +++ b/bsoid_app/analysis_subroutines/machine_performance.py @@ -40,7 +40,7 @@ def show_accuracy_plot(self): fig.suptitle('{}-fold group accuracy'.format(self.k)) ax.set_xlabel('Accuracy') ax.set_ylabel('Group number') - col1, col2 = st.beta_columns([2, 2]) + col1, col2 = st.columns([2, 2]) radio = st.radio(label='Change colors?', options=["Yes", "No"], index=1) if radio == 'No': col1.pyplot(fig) diff --git a/bsoid_app/analysis_subroutines/video_analysis.py b/bsoid_app/analysis_subroutines/video_analysis.py index 8f404103..b91db421 100644 --- a/bsoid_app/analysis_subroutines/video_analysis.py +++ b/bsoid_app/analysis_subroutines/video_analysis.py @@ -28,7 +28,7 @@ def __init__(self, working_dir, prefix, features, sampled_features, self.ordered_embeds = self.sampled_embeddings[ordered_ind, :] self.ordered_assigns = self.soft_assignments[ordered_ind] fig, ax = plot_enhanced_umap(self.working_dir, self.prefix, fig_size=(5, 3), save=False) - col1, col2 = st.beta_columns([2, 2]) + col1, col2 = st.columns([2, 2]) col1.pyplot(fig) self.vid_path = st.text_input('Enter corresponding video directory (Absolute path):') try: diff --git a/bsoid_app/bsoid_utilities/visuals.py b/bsoid_app/bsoid_utilities/visuals.py index d1281ff5..16496386 100644 --- a/bsoid_app/bsoid_utilities/visuals.py +++ b/bsoid_app/bsoid_utilities/visuals.py @@ -12,7 +12,7 @@ def plot_bar(sub_threshold): st.write('If the below __% noise__ (y-axis) is unreasonable, consider refining pose-estimation software.') sub_threshold_df = pd.DataFrame(sub_threshold) - col1, col2 = st.beta_columns([3, 2]) + col1, col2 = st.columns([3, 2]) col1.line_chart(sub_threshold_df) col2.write(sub_threshold_df) diff --git a/bsoid_app/clustering.py b/bsoid_app/clustering.py index 1cc481a2..941b5694 100644 --- a/bsoid_app/clustering.py +++ b/bsoid_app/clustering.py @@ -57,7 +57,7 @@ def show_classes(self): fig1, plt1 = visuals.plot_classes(self.sampled_embeddings[self.assignments >= 0], self.assignments[self.assignments >= 0]) plt1.suptitle('HDBSCAN assignment') - col1, col2 = st.beta_columns([2, 2]) + col1, col2 = st.columns([2, 2]) col1.pyplot(fig1) def slider(self, min_=0.5, max_=1.0): diff --git a/bsoid_app/machine_learner.py b/bsoid_app/machine_learner.py index dc61eefe..0a7148ea 100644 --- a/bsoid_app/machine_learner.py +++ b/bsoid_app/machine_learner.py @@ -56,14 +56,14 @@ def randomforest(self): def show_confusion_matrix(self): fig = visuals.plot_confusion(self.validate_clf, self.x_test, self.y_test) - col1, col2 = st.beta_columns([2, 2]) + col1, col2 = st.columns([2, 2]) col1.pyplot(fig[0]) col2.pyplot(fig[1]) st.write('To improve, either _increase_ minimum cluster size, or include _more data_') def show_crossval_score(self): fig, plt = visuals.plot_accuracy(self.validate_score) - col1, col2 = st.beta_columns([2, 2]) + col1, col2 = st.columns([2, 2]) col1.pyplot(fig) st.write('To improve, either _increase_ minimum cluster size, or include _more data_') diff --git a/bsoid_app/video_creator.py b/bsoid_app/video_creator.py index 36bce6eb..34bccfa3 100644 --- a/bsoid_app/video_creator.py +++ b/bsoid_app/video_creator.py @@ -237,7 +237,7 @@ def show_snippets(self): video_bytes.append(data_url) grp_names.append('{}'.format(file.partition('.')[0])) col = [None] * 3 - col[0], col[1], col[2] = st.beta_columns([1, 1, 1]) + col[0], col[1], col[2] = st.columns([1, 1, 1]) for i in range(0, len(video_bytes) + 3, 3): try: col[0].markdown(