xiaochus / trafficflowprediction Goto Github PK
View Code? Open in Web Editor NEWTraffic Flow Prediction with Neural Networks(SAEs、LSTM、GRU).
License: MIT License
Traffic Flow Prediction with Neural Networks(SAEs、LSTM、GRU).
License: MIT License
请问这个数据在哪里获取呢?那个网站我一直登不上。
Traceback (most recent call last):
File "E:/AI/PythonCode/TrafficFlowPrediction-master/train.py", line 108, in
main(sys.argv)
File "E:/AI/PythonCode/TrafficFlowPrediction-master/train.py", line 104, in main
train_seas(m, X_train, y_train, args.model, config)
File "E:/AI/PythonCode/TrafficFlowPrediction-master/train.py", line 59, in train_seas
hidden_layer_model = Model(input=p.input,output=p.get_layer('hidden').output)
File "E:\AI\pythonIDE\lib\site-packages\tensorflow\python\training\tracking\base.py", line 457, in _method_wrapper
result = method(self, *args, **kwargs)
File "E:\AI\pythonIDE\lib\site-packages\tensorflow\python\keras\engine\training.py", line 262, in init
'name', 'autocast'})
File "E:\AI\pythonIDE\lib\site-packages\tensorflow\python\keras\utils\generic_utils.py", line 778, in validate_kwargs
raise TypeError(error_message, kwarg)
TypeError: ('Keyword argument not understood:', 'input')
Process finished with exit code 1
你好,想问一下训练的过程中mape值超高是什么原因?在每epoch训练的时候,mape会突然飙升,虽然对最终结果没有影响,但是很好奇。
Epoch 110/600
256/7375 [>.............................] - ETA: 1s - loss: 0.0025 - mean_absolute_percentage_error: 21.2901
768/7375 [==>...........................] - ETA: 1s - loss: 0.0026 - mean_absolute_percentage_error: 22.3736
1280/7375 [====>.........................] - ETA: 0s - loss: 0.0026 - mean_absolute_percentage_error: 22.8402
1792/7375 [======>.......................] - ETA: 0s - loss: 0.0025 - mean_absolute_percentage_error: 8754.2923
2304/7375 [========>.....................] - ETA: 0s - loss: 0.0025 - mean_absolute_percentage_error: 6813.5487
2816/7375 [==========>...................] - ETA: 0s - loss: 0.0026 - mean_absolute_percentage_error: 8774.6254
3328/7375 [============>.................] - ETA: 0s - loss: 0.0026 - mean_absolute_percentage_error: 14578.9923
3840/7375 [==============>...............] - ETA: 0s - loss: 0.0025 - mean_absolute_percentage_error: 12638.1525
4352/7375 [================>.............] - ETA: 0s - loss: 0.0026 - mean_absolute_percentage_error: 33742.5767
4864/7375 [==================>...........] - ETA: 0s - loss: 0.0026 - mean_absolute_percentage_error: 30193.0208
5376/7375 [====================>.........] - ETA: 0s - loss: 0.0026 - mean_absolute_percentage_error: 27320.6417
5888/7375 [======================>.......] - ETA: 0s - loss: 0.0026 - mean_absolute_percentage_error: 24946.6725
6400/7375 [=========================>....] - ETA: 0s - loss: 0.0025 - mean_absolute_percentage_error: 22952.6749
6912/7375 [===========================>..] - ETA: 0s - loss: 0.0025 - mean_absolute_percentage_error: 21253.7816
7375/7375 [==============================] - 1s 170us/step - loss: 0.0026 - mean_absolute_percentage_error: 19921.1577 - val_loss: 0.0033 - val_mean_absolute_percentage_error: 17.6413
您好,观察您的预测图像,以及我自己数据的预测图像看到总是与真实数据差一个时刻,请问这是什么原因呢?还有您的SAEs使用y_train进行训练是监督学习了么?
您好,请问如果test集flow未知,那该如何构建测试集输入呢。我看您的代码是在测试集已知的情况下构架测试集输入的。谢谢啦
请问一下,我发现结果的图片中True value的横坐标与实际时间相差了1小时。图片中显示的3月4日 0:00-3月5日 0:00 实际上是3月4日 1:00-3月5日 1:00的数据。请问要如何解决?
How can I decide which day to predict? which module / function does this task?
File "C:/Users/11067/Desktop/TrafficFlowPrediction-master/TrafficFlowPrediction-master/main.py", line 127, in
main()
File "C:/Users/11067/Desktop/TrafficFlowPrediction-master/TrafficFlowPrediction-master/main.py", line 98, in main
gru = load_model('model/gru.h5')
File "D:\programdate\anaconda3\envs\tf2\lib\site-packages\keras\engine\saving.py", line 492, in load_wrapper
return load_function(*args, **kwargs)
File "D:\programdate\anaconda3\envs\tf2\lib\site-packages\keras\engine\saving.py", line 584, in load_model
model = _deserialize_model(h5dict, custom_objects, compile)
File "D:\programdate\anaconda3\envs\tf2\lib\site-packages\keras\engine\saving.py", line 273, in _deserialize_model
model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'
Process finished with exit code 1
Traceback (most recent call last):
File "C:\Users\KARTHIKA\Desktop\TrafficFlowPrediction\train.py", line 10, in
from model import model
File "C:\Users\KARTHIKA\Desktop\TrafficFlowPrediction\model\model.py", line 4, in
from keras.layers import Dense, Dropout, Activation
File "C:\Users\KARTHIKA\AppData\Local\Programs\Python\Python39\lib\site-packages\keras_init_.py", line 20, in
from . import initializers
File "C:\Users\KARTHIKA\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\initializers_init_.py", line 124, in
populate_deserializable_objects()
File "C:\Users\KARTHIKA\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\initializers_init_.py", line 82, in populate_deserializable_objects
generic_utils.populate_dict_with_module_objects(
AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects'
Inspite if making a few changes in the code and downgrading to different software version the train.py code is not working. How to clear this issue?
I got your codes and installed everything. but I get this error. Please answer if you know the reason.
I get error by reading the gru model
gru = load_model('TrafficFlowPrediction/model/gru.h5')
请问一下作者。看了一下你给出的test.csv和train.csv的数据样式。我发现这里面的数据日期有些是隔了几天的,请问原数据集就是这样的吗?如果我要把自己的数据导入进去,是要写成test.csv和train.csv的格式再训练对吗?代码里面还要改一些什么呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.