'DataSource' object is not subscriptable
由lookit创建,最终由lookit 被浏览 26 用户
问题
在进行CNN策略开发时,发现一个错误。
[2022-07-12 18:03:05.965141] INFO: moduleinvoker: cached.v3 开始运行.. [2022-07-12 18:03:17.370212] INFO: moduleinvoker: cached.v3 运行完成[11.405105s]. [2022-07-12 18:03:17.568725] ERROR: moduleinvoker: module name: trade, module version: v4, trackeback: TypeError: 'DataSource' object is not subscriptable
列: ['date', 'instrument'] /data: 1091422 Epoch 1/100 572/572 - 587s - loss: 1.1377 - mse: 1.1377 - val_loss: 0.9859 - val_mse: 0.9859 Epoch 2/100 572/572 - 543s - loss: 1.0338 - mse: 1.0338 - val_loss: 0.9875 - val_mse: 0.9875 Epoch 3/100 572/572 - 504s - loss: 1.0001 - mse: 1.0001 - val_loss: 0.9760 - val_mse: 0.9760 Epoch 4/100 572/572 - 506s - loss: 0.9822 - mse: 0.9822 - val_loss: 0.9690 - val_mse: 0.9690 Epoch 5/100 572/572 - 496s - loss: 0.9686 - mse: 0.9686 - val_loss: 0.9646 - val_mse: 0.9646 Epoch 6/100 572/572 - 510s - loss: 0.9585 - mse: 0.9585 - val_loss: 0.9623 - val_mse: 0.9623 Epoch 7/100 572/572 - 506s - loss: 0.9515 - mse: 0.9515 - val_loss: 0.9604 - val_mse: 0.9604 Epoch 8/100 572/572 - 505s - loss: 0.9456 - mse: 0.9456 - val_loss: 0.9582 - val_mse: 0.9582 Epoch 9/100 572/572 - 502s - loss: 0.9423 - mse: 0.9423 - val_loss: 0.9572 - val_mse: 0.9572 Epoch 10/100 572/572 - 504s - loss: 0.9380 - mse: 0.9380 - val_loss: 0.9566 - val_mse: 0.9566 Epoch 11/100 572/572 - 522s - loss: 0.9358 - mse: 0.9358 - val_loss: 0.9565 - val_mse: 0.9565 Epoch 12/100 572/572 - 546s - loss: 0.9332 - mse: 0.9332 - val_loss: 0.9559 - val_mse: 0.9559 Epoch 13/100 572/572 - 605s - loss: 0.9308 - mse: 0.9308 - val_loss: 0.9555 - val_mse: 0.9555 Epoch 14/100 572/572 - 625s - loss: 0.9291 - mse: 0.9291 - val_loss: 0.9553 - val_mse: 0.9553 Epoch 15/100 572/572 - 637s - loss: 0.9279 - mse: 0.9279 - val_loss: 0.9555 - val_mse: 0.9555 Epoch 16/100 572/572 - 557s - loss: 0.9263 - mse: 0.9263 - val_loss: 0.9556 - val_mse: 0.9556 Epoch 17/100 572/572 - 542s - loss: 0.9252 - mse: 0.9252 - val_loss: 0.9558 - val_mse: 0.9558 Epoch 18/100 572/572 - 532s - loss: 0.9237 - mse: 0.9237 - val_loss: 0.9557 - val_mse: 0.9557 Epoch 19/100 572/572 - 501s - loss: 0.9224 - mse: 0.9224 - val_loss: 0.9559 - val_mse: 0.9559 Epoch 20/100 572/572 - 503s - loss: 0.9215 - mse: 0.9215 - val_loss: 0.9565 - val_mse: 0.9565 Epoch 21/100 572/572 - 518s - loss: 0.9205 - mse: 0.9205 - val_loss: 0.9562 - val_mse: 0.9562 Epoch 22/100 572/572 - 508s - loss: 0.9192 - mse: 0.9192 - val_loss: 0.9562 - val_mse: 0.9562 Epoch 23/100 572/572 - 567s - loss: 0.9184 - mse: 0.9184 - val_loss: 0.9562 - val_mse: 0.9562 Epoch 24/100 572/572 - 535s - loss: 0.9172 - mse: 0.9172 - val_loss: 0.9561 - val_mse: 0.9561 367/367 - 38s DataSource(19c0d6eea1054e04ac37476d9feb52d1T) 5282692d97484cdb8f1e2601a4d1a649T pkl not found.
请问这个问题如何解决?