Manually Finding a Motif #508
              
                Unanswered
              
          
                  
                    
                      GChims
                    
                  
                
                  asked this question in
                Help: Coding & Implementations
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Sean
PLEASE KINDLY IGNORE THE QUESTION BELOW AS IT IS CLEARLY EXPLAINED IN THE TUTORIALS BUT I MISSED THE DETAILS. THANKS
This question was asked before but I am not sure it has been answered sufficiently here.
I am struggling to understand the values 643 and 8724 on the piece of code below. I understand 640 is the sub-sequence length and so I guess 643 is obtained by adding the sub-sequence length and the 3 seconds sampling? However, I am completely lost in trying to figure out how the value of 8724 came about.
My apologies if it has been answered already and maybe I didn't see it already. Thanks
m = 640
fig, axs = plt.subplots(2)
plt.suptitle('Steamgen Dataset', fontsize='30')
axs[0].set_ylabel("Steam Flow", fontsize='20')
axs[0].plot(steam_df['steam flow'], alpha=0.5, linewidth=1)
axs[0].plot(steam_df['steam flow'].iloc[643:643+m])
axs[0].plot(steam_df['steam flow'].iloc[8724:8724+m])
rect = Rectangle((643, 0), m, 40, facecolor='lightgrey')
axs[0].add_patch(rect)
rect = Rectangle((8724, 0), m, 40, facecolor='lightgrey')
axs[0].add_patch(rect)
axs[1].set_xlabel("Time", fontsize='20')
axs[1].set_ylabel("Steam Flow", fontsize='20')
axs[1].plot(steam_df['steam flow'].values[643:643+m], color='C1')
axs[1].plot(steam_df['steam flow'].values[8724:8724+m], color='C2')
plt.show()
Beta Was this translation helpful? Give feedback.
All reactions