Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to extract certain feats from a domain #99

Closed
saydeking opened this issue Sep 23, 2021 · 4 comments
Closed

How to extract certain feats from a domain #99

saydeking opened this issue Sep 23, 2021 · 4 comments
Assignees

Comments

@saydeking
Copy link

Hi, thanks for this tool! It's a huge help. I'm struggling with how I go about extracting some but not all features from the spectral domain.

To extract all we use something like this:
cfg_file = tsfel.get_features_by_domain('spectral')
data = tsfel.time_series_features_extractor(cfg_file, data, fs=fs)

Which function can we use to extract a list of chosen features?
Thanks!

@mbarandas
Copy link
Collaborator

Hi! Thanks for your interest in our package.

Instead of cfg_file = tsfel.get_features_by_domain('spectral') you can use cfg_file = tsfel.load_json(your_json_file_path)

You can download feature_extraction\features.json and set the use key (values: 'yes' or 'no') according to your preferences.

@mbarandas mbarandas self-assigned this Sep 23, 2021
@saydeking
Copy link
Author

Awesome! I'll give this a go, thank you so much for your swift response.

@espjose
Copy link

espjose commented Oct 1, 2021

hola deseo extraer solo algunas caracteristicas en el dominio, pero no entiendo como hacerlo me podria explicar mas detalladamiente por favor
features_TEST_H_a2 = tsfel.time_series_features_extractor(tsfel.get_features_by_domain('statistical'),D_test_h["a2"], fs=30, window_size=703)
features_TEST_H_a2

@saydeking saydeking reopened this Oct 4, 2021
@mbarandas
Copy link
Collaborator

Hi @espjose!

In your example you are extracting statistical features and it seems to be correct.
Can you elaborate on your issue please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants