tsfresh是开源的提取时序数据特征的python包,能够提取出超过4000种特征 .
1. 查看数据
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
from tsfresh.example.robot_execution_failures import download_robot_execution_failures, load_robot_execution_failures
from tsfresh import extract_features, extract_relevant_features, select_features
from tsfresh.utilities.dataframe_functions import impute
from tsfresh.feature_extraction import ComprehensiveFCParameters
from sklearn.tree import DecisionTreeClassifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
download_robot_execution_failures()
df, y = load_robot_execution_failures()
df.head()
df[