Adding new features to existing MinimalExtractionParameters settings #923
Unanswered
utkarshtri1997
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Is anybody else going to answer this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, Firstly Thank you for building this good application for time-series calculation. Can you please help me in adding new features to MinimalExtractionParameters? Please reply ASAP.`@set_property("fctype", "simple")
def flor_ratio(x):
"""
The description of your feature
:param x: the time series to calculate the feature of
:type x: pandas.Series
:return: the value of this feature
:return type: bool, int or float
"""
Calculation of feature as float, int or bool
u=np.max(x)
v=np.min(x)
#flor_ratio = (u-v)/v
return (u-v)/v
fc_parameters = {
'median': None,
'mean': None,
'standard_deviation': None,
'root_mean_square': None,
'maximum': None,
'minimum': None,'flor_ratio':None
from sktime.transformations.panel.tsfresh import TSFreshRelevantFeatureExtractor
from tsfresh.feature_extraction import extract_features
transformer = TSFreshRelevantFeatureExtractor(kind_to_fc_parameters= fc_parameters)
extracted_features = transformer.fit_transform(X_train,y_train)
extracted_features
}` But this doesn't calculate the features I gave it to calculate.
Beta Was this translation helpful? Give feedback.
All reactions