本文整理汇总了Python中orangecontrib.timeseries.Timeseries.concatenate方法的典型用法代码示例。如果您正苦于以下问题:Python Timeseries.concatenate方法的具体用法?Python Timeseries.concatenate怎么用?Python Timeseries.concatenate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orangecontrib.timeseries.Timeseries
的用法示例。
在下文中一共展示了Timeseries.concatenate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: commit
# 需要导入模块: from orangecontrib.timeseries import Timeseries [as 别名]
# 或者: from orangecontrib.timeseries.Timeseries import concatenate [as 别名]
def commit(self):
data = self.data
if not data or not self.selected:
self.send(Output.TIMESERIES, data)
return
selected_subset = Timeseries(Domain(self.selected, source=data.domain), data) # FIXME: might not pass selected interpolation method
with self.progressBar(len(self.selected)) as progress:
adjusted_data = seasonal_decompose(
selected_subset,
self.DECOMPOSITION_MODELS[self.decomposition],
self.n_periods,
callback=lambda *_: progress.advance())
ts = Timeseries(Timeseries.concatenate((data, adjusted_data)))
ts.time_variable = data.time_variable
self.send(Output.TIMESERIES, ts)