Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'NoneType' object is not iterable #9

Open
hemangjoshi37a opened this issue Aug 18, 2022 · 0 comments
Open

TypeError: 'NoneType' object is not iterable #9

hemangjoshi37a opened this issue Aug 18, 2022 · 0 comments

Comments

@hemangjoshi37a
Copy link

Run Command : (in /hats/graph_classification/src direcory)

python main.py --data_type='S5CONS' --label_proportion=5

Error :

2022-08-18 13:46:56.025164: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2022-08-18 13:46:56.025202: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
08/18/2022 01:46:57 PM: Namespace(GNN_model='HATS', adj_train_phase='adj_sum', assignment_layer=[10, 1], batch_size=32, data_type='S5CONS', dev_size=50, dropout=0.3, early_stop_type='acc', eval_step=10, feat_att=False, feature_list=None, grad_max_norm=2.0, inference_model='CNN', label_proportion=[5], lookback=50, lr=5e-05, market_data_dir='./data/price/', max_relations=5, max_to_keep=10, min_train_period=300, mode='train', model_dir='./model', model_id='epoch200.pt', model_type='graph-HATS', momentum=0.9, n_epochs=200, n_iter_per_epoch=50, node_features=64, num_layer=1, num_relations=0, optimizer='Adam', pred_threshold=0.6, preprocess=False, pretrained_dir=None, price_model='LSTM', print_step=10, rel_att=False, relation_data_dir='./data/relation/', save_dir='./out', save_log=False, stack_layer=1, test_phase=None, test_size=100, train_on_stock=False, train_proportion=3.0, use_bias=True, use_rel_list=[2, 3, 6, 11, 13, 17, 18, 28, 30, 32, 37, 38, 39, 40, 41, 48, 57, 84, 85, 86], weight_decay=1e-05) 
Traceback (most recent call last):
  File "main.py", line 78, in <module>
    main()
  File "main.py", line 29, in main
    dataset = StockDataset(config)
  File "/home/hemang/Downloads/notebook_scripts/hats/graph_classification/src/dataset.py", line 20, in __init__
    self.scaling_feats = [idx for idx, name in enumerate(self.feature_list) if name != 'return']
TypeError: 'NoneType' object is not iterable

https://hjlabs.in/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant