初識tsfresh in Python
-
tsfresh
對時間序列資料進行特徵提取這個過程,進行模組化操作的工具.
tsfresh
is a python package. It automatically calculates a large number of time series characteristics, the so called features. Further the package contains methods to evaluate the explaining power and importance of such charateristics for regression or classification tasks. -
Coding paradigms
-
Keep it simple
We believe that “Programs should be written for people to read, and only incidentally for machines to execute”
-
keep it documented
By at least including a docstring for each method and class. Do not describe what you are doing but why you are doing it.
-
Keep it tested
We aim for a high test coverage.
-
-
Feature Calculator Naming
tsfresh enforces a strict naming of the created features, which you have to follow whenever you create new feature calculators.
This is due to the
tsfresh.feature_extraction.settings.from_columns()
method which needs to deduce the following information from the feature name:-
the time series that was used to calculate the feature
-
the feature calculator method that was used to derive the feature
-
all parameters that have been used to calculate the feature (optional)
The features will be named in the following format:
{time_series_name}__{feature_name}__{parameter_name_1}_{parameter_value_1}__[..]_{parameter_name_k}_{parameter_value_k}
-
-
Quick Start
執行文章中的教程,可能出現下述錯誤:
《(20201125已解決)tsfresh下載案例資料出錯[Errno 111] Connection refused》
簡單梳理案例想要告訴我們的,給你一組資料,裡面表示的是不同機器人在6個維度上的時間序列資料,你可以把每個機器人的6個時間序列都畫出來,人工肉眼可以看出failure與否的機器人,不同維度上的圖有所區別。
人工之外,總要有些資料用來說明機器人是否failure吧?好,tsfresh就是幹這個的,它可以從這6維資料中自動提取出1200多個特徵。
然後,就可以把這1200多個特徵塞到模型中進行訓練了。
相關文章
- 初識pythonPython
- Python基礎初識Python
- python初識引數Python
- 筆記:初識Python筆記Python
- Python之Numpy初識Python
- 1.5.1 Python函式初識Python函式
- python 初識物件導向Python物件
- 初識psycopg In Python on PostgreSQLPythonSQL
- 初識Python裝飾器Python
- 初識python web框架-- DjangoPythonWeb框架Django
- 2.1.0 Python初識物件導向Python物件
- Python教程學習:初識Python-01Python
- 初識python必知的6個知識點Python
- Python GUI介面程式設計-初識PythonGUI程式設計
- 08-Python之路---初識函式Python函式
- Python正規表示式初識(四)Python
- 初識 Python:Hello World 和字串操作Python字串
- R1-001 初識PythonPython
- 【python介面自動化】初識unittest框架Python框架
- 初識python你應該知道的6個知識點!Python
- python綜合學習七之TensorFlow初識Python
- python非同步程式設計之asyncio初識Python非同步程式設計
- 初識MybatisMyBatis
- 初識 DockerDocker
- rocketmq初識MQ
- 初識 reduxRedux
- 初識GitGit
- Express初識Express
- Kafka 初識Kafka
- 初識 “HTML”HTML
- 初識GolangGolang
- 初識dockerDocker
- 初識RedisRedis
- 初識GOGo
- 初識promisePromise
- 初識VueVue
- 初識JSJS
- 初識jQueryjQuery