I have the following python script I keep getting AxisError at the First Derivative in time

0 votes

# Creating Features Space
features = {}

# Raw Time Feature
features['raw'] = X[:,0], X[:,0]

# First Derivative in Time
features['derivative'] = normalize(np.gradient(X[:,0], axis = 2)), normalize(np.gradient(X[:,1], axis = 2))

# Integral in Time
features['integral']   = normalize(np.cumsum(X[:,0], axis = 2)), normalize(np.cumsum(X[:,1], axis = 2))

# All Together Feature Spae
def extract_features(*arguments):
    
    desired = ()            
    for arg in arguments:
        desired += features[arg]
    
    return np.stack(desired, axis = 2)






Aug 3, 2021 in Python by Edureka

edited 5 days ago 9 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP