【问题标题】:Fastai DataBunch not definedFastai DataBunch 未定义
【发布时间】:2022-06-30 11:20:39
【问题描述】:

我正在 Windows 11、Python 3.9、virtualenv 中尝试此源代码

https://github.com/master0fcha0s/lstm-pytorch/blob/master/flights-lstm.ipynb

我在使用 DataBunch 时遇到此错误,我找不到需要导入的内容

NameError: name 'DataBunch' is not defined

【问题讨论】:

    标签: python deep-learning fast-ai


    【解决方案1】:

    DataBunch 在当前版本的 Fast.ai 中已弃用。要么使用有数据集的 FastAI1 https://fastai1.fast.ai/basic_data.html#DataBunch,要么使用 https://docs.fast.ai 的当前版本

    【讨论】:

      猜你喜欢
      • 2022-07-26
      • 1970-01-01
      • 2022-10-24
      • 2019-09-20
      • 1970-01-01
      • 1970-01-01
      • 2020-08-29
      • 2020-04-21
      • 2010-10-21
      相关资源
      最近更新 更多