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

Extract relevant features from different domain. #57

Closed
sanbuddhacharyas opened this issue Sep 7, 2020 · 2 comments
Closed

Extract relevant features from different domain. #57

sanbuddhacharyas opened this issue Sep 7, 2020 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@sanbuddhacharyas
Copy link

It takes a long time to extract all domain features so, How can I extract only relevant features from all three domains?
Please help!!!

@dmfolgado dmfolgado self-assigned this Sep 7, 2020
@dmfolgado dmfolgado added the help wanted Extra attention is needed label Sep 7, 2020
@dmfolgado
Copy link
Member

dmfolgado commented Sep 7, 2020

Can you elaborate on what do you understand by "relevant features"?
Usually, relevant features can be selected before feature extraction if you have some domain-knowledge on the most adequate features for your data. Alternatively, relevant features can also be selected after the feature extraction by applying feature selection methods.

@dmfolgado
Copy link
Member

  1. Download the features.json and select each feature you want to use by changing the use parameter (yes or no value).

  2. Load the customized json using the tsfel.load_json method.

import tsfel
import pandas as pd
 
# load dataset
df = pd.read_csv('Dataset.txt')
 
# Retrieves your pre-defined feature configuration file
cfg = tsfel.load_json(your_json_path)

# Extract features
X = tsfel.time_series_features_extractor(cfg, df)

@dmfolgado dmfolgado reopened this Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants