saritha5 commited on
Commit
a27ba06
1 Parent(s): 07a27fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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, 3))
80
  #plt.show()
81
  st.pyplot(fig)
82
  return my_bkps
@@ -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, 3))
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, 3))
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, 3))
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, 2))
80
  #plt.show()
81
  st.pyplot(fig)
82
  return my_bkps
 
100
  my_bkps = algo.predict(n_bkps)
101
 
102
  # show results
103
+ fg,axxarr = rpt.show.display(signal, bkps, my_bkps, figsize=(10, 2))
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, 2))
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, 2))
126
  st.pyplot(fig)
127
  return my_bkps
128