kwuking / TimeMixer

[ICLR 2024] Official implementation of "TimeMixer: Decomposable Multiscale Mixing for Time Series Forecasting"
https://openreview.net/pdf?id=7oLshfEIC2
Apache License 2.0
1.17k stars 157 forks source link

求运行环境 #59

Closed guanfj closed 1 month ago

guanfj commented 1 month ago

我用miniconda环境管理,但我用python3.9和3.10环境下安装sktime时,均出现错误。 现在弄不清楚什么原因和版本匹配了,请提供一个完整的安装教程,以便我们新手入手学习

gy-zkj commented 1 month ago

我用miniconda环境管理,但我用python3.9和3.10环境下安装sktime时,均出现错误。 现在弄不清楚什么原因和版本匹配了,请提供一个完整的安装教程,以便我们新手入手学习

我的环境是3.10的,以下版本可以运行 einops 0.8.0 matplotlib 3.9.0 numpy 1.23.5 pandas 2.2.2 patool 1.12 reformer-pytorch 1.4.4 scikit-learn 1.5.0 scipy 1.13.1 sktime 0.31.0 sympy 1.12 torch 1.13.1+cu116 tqdm 4.65.0

guanfj commented 1 month ago

谢谢,已跑起来了

guanfj commented 1 month ago

我用miniconda环境管理,但我用python3.9和3.10环境下安装sktime时,均出现错误。 现在弄不清楚什么原因和版本匹配了,请提供一个完整的安装教程,以便我们新手入手学习

我的环境是3.10的,以下版本可以运行 einops 0.8.0 matplotlib 3.9.0 numpy 1.23.5 pandas 2.2.2 patool 1.12 reformer-pytorch 1.4.4 scikit-learn 1.5.0 scipy 1.13.1 sktime 0.31.0 sympy 1.12 torch 1.13.1+cu116 tqdm 4.65.0

您好,在您的帮助下,运行环境搭建起来了,非常感谢,但运行示例代码时,出现以下提示: RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

我是新入门学习python的,我使用别的语言进行开发,现在这个问题很疑惑,能否提供帮助?我的操作系统是windows10 我的邮箱是:guanfj@gmail.com guanfj@qq.com,或是您提供您的联系方式。

kwuking commented 1 month ago

你好,这个是因为你本地测试没有提供GPU环境导致的,请将use_gpu设置为False,num_workers设置为0,应该就可以了。

guanfj commented 1 month ago

非常感谢