saritha5 commited on
Commit
8c8e68e
1 Parent(s): ef6e275

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -76,7 +76,7 @@ def dynp_method(signal,bkps,n_bkps):
76
  algo = rpt.Dynp(model=model, min_size=3, jump=5).fit(signal)
77
  my_bkps = algo.predict(n_bkps)
78
  # show results
79
- fig,axarr = rpt.show.display(signal, bkps, my_bkps, figsize=(10, 6))
80
  #plt.show()
81
  st.pyplot(fig)
82
  return my_bkps
@@ -88,7 +88,7 @@ def pelt_method(signal,bkps,n_bkps):
88
  my_bkps = algo.predict(pen=3)
89
 
90
  # show results
91
- fig, ax_arr = rpt.display(signal, bkps, my_bkps, figsize=(10, 6))
92
  st.pyplot(fig)
93
  return my_bkps
94
 
@@ -100,7 +100,7 @@ def bin_seg_method(signal,bkps,n_bkps):
100
  my_bkps = algo.predict(n_bkps)
101
 
102
  # show results
103
- fg,axxarr = rpt.show.display(signal, bkps, my_bkps, figsize=(10, 6))
104
  st.pyplot(fig)
105
  return my_bkps
106
 
@@ -111,7 +111,7 @@ def bot_up_seg(signal,bkps,n_bkps):
111
  my_bkps = algo.predict(n_bkps)
112
 
113
  # show results
114
- fig,axxar = rpt.show.display(signal, bkps, my_bkps, figsize=(10, 6))
115
  st.pyplot(fig)
116
  return my_bkps
117
 
@@ -122,7 +122,7 @@ def win_sli_seg(signal,bkps,n_bkps):
122
  my_bkps = algo.predict(n_bkps)
123
 
124
  # show results
125
- fig,axxar= rpt.show.display(signal, bkps, my_bkps, figsize=(10, 6))
126
  st.pyplot(fig)
127
  return my_bkps
128
 
 
76
  algo = rpt.Dynp(model=model, min_size=3, jump=5).fit(signal)
77
  my_bkps = algo.predict(n_bkps)
78
  # show results
79
+ fig,axarr = rpt.show.display(signal, bkps, my_bkps, figsize=(10, 3))
80
  #plt.show()
81
  st.pyplot(fig)
82
  return my_bkps
 
88
  my_bkps = algo.predict(pen=3)
89
 
90
  # show results
91
+ fig, ax_arr = rpt.display(signal, bkps, my_bkps, figsize=(10, 3))
92
  st.pyplot(fig)
93
  return my_bkps
94
 
 
100
  my_bkps = algo.predict(n_bkps)
101
 
102
  # show results
103
+ fg,axxarr = rpt.show.display(signal, bkps, my_bkps, figsize=(10, 3))
104
  st.pyplot(fig)
105
  return my_bkps
106
 
 
111
  my_bkps = algo.predict(n_bkps)
112
 
113
  # show results
114
+ fig,axxar = rpt.show.display(signal, bkps, my_bkps, figsize=(10, 3))
115
  st.pyplot(fig)
116
  return my_bkps
117
 
 
122
  my_bkps = algo.predict(n_bkps)
123
 
124
  # show results
125
+ fig,axxar= rpt.show.display(signal, bkps, my_bkps, figsize=(10, 3))
126
  st.pyplot(fig)
127
  return my_bkps
128