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

有人遇到和我一样的问题吗'NoneType' object is not subscriptable #10

Open
3xiaoxin opened this issue Jul 6, 2023 · 0 comments

Comments

@3xiaoxin
Copy link

3xiaoxin commented Jul 6, 2023

File "C:\Users\孤星\Downloads\Stock_Market_Sentiment_Analysis-master\Stock_Market_Sentiment_Analysis-master\model_dl.py", line 268, in
df = eval_models()
File "C:\Users\孤星\Downloads\Stock_Market_Sentiment_Analysis-master\Stock_Market_Sentiment_Analysis-master\model_dl.py", line 248, in eval_models
score.extend(train_model_MLP())
File "C:\Users\孤星\Downloads\Stock_Market_Sentiment_Analysis-master\Stock_Market_Sentiment_Analysis-master\model_dl.py", line 147, in train_model_MLP
hist = model.fit(x_train, y_train,
File "C:\Users\孤星\AppData\Roaming\Python\Python39\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "C:\Users\孤星\Downloads\Stock_Market_Sentiment_Analysis-master\Stock_Market_Sentiment_Analysis-master\model_dl.py", line 117, in on_epoch_end
val_predict = (np.asarray(self.model.predict(self.validation_data[0]))).round()
TypeError: 'NoneType' object is not subscriptable

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