-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove google sheets dependency from notebook example and update setu…
…p.py
- Loading branch information
Showing
2 changed files
with
27 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,11 +184,7 @@ | |
"source": [ | ||
"# Feature Extraction\n", | ||
"\n", | ||
"Through **Feature Extraction** methodologies, the data is translated into a feature vector containing information about the signal properties of each window. These properties can be classified according to their domain as Time, Frequency and Statistical features and allow to characterise the signal compactly, enhancing its characteristics. This features will be used as input to the machine learning classifier, thus, the chosen set of features can strongly influence the classification output.\n", | ||
"\n", | ||
"The features to extract are defined in the [google sheet](https://docs.google.com/spreadsheets/d/13u7L_5IX3XxFuq_SnbOZF1dXQfcBB0wR3PXhvevhPYA/edit?usp=sharing). Save a copy on your local drive and share it with [email protected].\n", | ||
"\n", | ||
"**Change your google sheet file name and the googleSheet_name variable to your name so both have the same name.**" | ||
"Through **Feature Extraction** methodologies, the data is translated into a feature vector containing information about the signal properties of each window. These properties can be classified according to their domain as Time, Frequency and Statistical features and allow to characterise the signal compactly, enhancing its characteristics. This features will be used as input to the machine learning classifier, thus, the chosen set of features can strongly influence the classification output." | ||
] | ||
}, | ||
{ | ||
|
@@ -279,9 +275,10 @@ | |
], | ||
"source": [ | ||
"#@title Feature Extraction\n", | ||
"googleSheet_name = \"Features_dev\"\n", | ||
"# Extract excel info\n", | ||
"cfg_file = tsfel.extract_sheet(googleSheet_name)\n", | ||
"cfg_file = tsfel.get_features_by_domain() # All features \n", | ||
"# cfg_file = tsfel.get_features_by_domain('statistical') # Only statistical features\n", | ||
"# cfg_file = tsfel.get_features_by_domain('temporal') # Only temporal features\n", | ||
"# cfg_file = tsfel.get_features_by_domain('spectral') # Only spectral features\n", | ||
"\n", | ||
"# Get features\n", | ||
"X_train = tsfel.time_series_features_extractor(cfg_file, x_train_sig, fs=fs)\n", | ||
|
@@ -461,7 +458,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.8.5" | ||
"version": "3.6.9" | ||
} | ||
}, | ||
"nbformat": 4, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters