load_from_ucr_tsv_to_dataframe#

load_from_ucr_tsv_to_dataframe(full_file_path_and_name, return_separate_X_and_y=True)[源代码]#

从 .tsv 文件加载数据到 Pandas DataFrame。

参数:
full_file_path_and_name: str

要读取的 .tsv 文件的完整路径名。

return_separate_X_and_y: bool

如果为 True,则 X 和 Y 值应作为单独的 DataFrame (X) 和 numpy 数组 (y) 返回,否则返回 False。这仅与数据相关。

返回:
DataFrame, ndarray

如果 return_separate_X_and_y 为 True,则返回一个元组,包含一个 DataFrame(时间序列)和一个 numpy 数组(对应的类别值)。

DataFrame

如果 return_separate_X_and_y 为 False,则返回一个单独的 DataFrame,其中包含所有时间序列,并且(如果相关)包含一个名为 “class_vals” 的列,其中包含关联的类别值。