我想使用 pytorch 从 tsv 文件创建数据集。我正在考虑使用
torchtext.data.TabularDataset.splits
Run Code Online (Sandbox Code Playgroud)
但我收到一条错误消息。
AttributeError:module 'torchtext.data' has no attribute 'TabularDataset'
Run Code Online (Sandbox Code Playgroud) 我想将此代码替换为 dplyr 样式。
financials[is.na(ForecastEarningsPerShare), ForecastEarningsPerShare := ForecastEarningsPerShare2]
Run Code Online (Sandbox Code Playgroud)
你能告诉我该怎么做吗?