美文网首页
tfts:tensorflow中的深度学习时间序列

tfts:tensorflow中的深度学习时间序列

作者: YueTan | 来源:发表于2022-10-07 16:44 被阅读0次
Screen Shot 2022-10-07 at 4.50.16 PM.png

文档 | 教程 | 发布日志 | English

东流TFTS (TensorFlow Time Series) 是基于TensorFlow时间序列开源工具,支持多种深度学习模型

中文名“东流”,源自辛弃疾“青山遮不住,毕竟东流去。江晚正愁余,山深闻鹧鸪”。

安装

pip install tensorflow>=2.0.0
pip install tfts

快速使用

import tensorflow as tf
import tfts
from tfts import AutoModel, KerasTrainer

train, valid = tfts.load_data('sine')
backbone = AutoModel('seq2seq')
model = functools.partial(backbone.build_model, input_shape=[24, 2])

trainer = KerasTrainer(model)
trainer.train(train, valid)
trainer.predict(valid[0])

示例

更多应用

引用

@misc{tfts2020,
  author = {Longxing Tan},
  title = {Time series prediction},
  year = {2020},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/longxingtan/time-series-prediction}},
}

相关文章

网友评论

      本文标题:tfts:tensorflow中的深度学习时间序列

      本文链接:https://www.haomeiwen.com/subject/ohkwartx.html