write_panel_to_tsfile#

write_panel_to_tsfile(data, path, target=None, problem_name='sample_data', header=None)[source]#

Write an sktime multi-instance dataset to text file in .ts format.

Write metadata and data stored in sktime compatible data set to file. A description of the ts format is in docs/source/api_reference/data_format.rst

Parameters:
dataPanel.

dataset containing multiple time series instances, referred to as a Panel in sktime. Series can univariate, multivariate, equal or unequal length

pathString.

Location of the directory to write file

target: None or ndarray, default = None

Response variable, discrete for classification, continuous for regression None if clustering.

problem_nameString, default = “sample_data”

The file is written to <path>/<problem_name>/<problem_name>.ts

header: String, default = None

Optional text at the top of the file that is ignored when loading.