Comments (13)
I have uploaded sample data sets (e.g., cs_snap_unique.shp, cs_snap_unique.csv). However, those datasets can be safely removed due to limited functionality regarding this version.
from drop_simulator.
Thank you very much for your immediate reply.
I will continue to follow your project and look forward to a more detailed wiki.
My recent work on matching, repositioning and pricing in ride‐hailing.
from drop_simulator.
Error parsing parsed_routes.pkl
Traceback (most recent call last):
File "/mnt/d/git/DROP_Simulator/code/train_loops.py", line 35, in <module>
simulator.init(HEX_SHP_PATH, CS_SHP_PATH, TRIP_FILE, TRAVEL_TIME_FILE, NUM_NEAREST_CS)
File "/mnt/d/git/DROP_Simulator/code/simulator/simulator_cnn.py", line 172, in init
self.hex_routes=pickle.load(f)
_pickle.UnpicklingError: invalid load key, 'v'.
When I regenerated this data file via routes_interpolate.py, I found that all_routes.pkl does not exist.
Disturbed again!
from drop_simulator.
"all_routes.pkl" is not included in our simulator. You may try use ALL_HEX_ROUTE_FILE = '../data/parsed_routes.pkl' HEX_ROUTE_FILE = '../data/hex_routes.pkl' # the route between necessary pair of hex zone
interchangeably to make it run.
You may start with "main_cnn.py".
from drop_simulator.
Thanks for your patient reply. Error parsing parsed_routes.pkl has been resolved by the method.
But unfortunately it says that another file is missing hex_diffusion.pkl.
File "/mnt/d/DROP_Simulator/code/main_cnn.py", line 43, in <module>
simulator.init(HEX_SHP_PATH, CS_SHP_PATH, TRIP_FILE, TRAVEL_TIME_FILE, NUM_NEAREST_CS)
File "/mnt/d/DROP_Simulator/code/simulator/simulator_cnn.py", line 194, in init
self.hex_diffusions = self.get_hex_diffusions(HEX_DIFFUSION_PATH, row_col_coords)
File "/mnt/d/DROP_Simulator/code/simulator/simulator_cnn.py", line 130, in get_hex_diffusions
with open(diff_file, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '../data/hex_diffusion.pkl
It would be great if a script to generate this data from the raw data could be provided !
from drop_simulator.
Hi, I tried to find the original file to generate the diffusion matrix. I will upload the original dataset once I find it. As an alternative, you can tentatively use the code below to bypass the error:
hex_diffusion={i: [0.1 for _ in range(1347)] for i in range(1347)}
where 1347 is the total number of hexagon cells in this simulator.
from drop_simulator.
I tried the solution you mentioned and still got the following error:
File "/home/cuizhiwei/.vscode-server/extensions/ms-python.python-2022.8.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 247, in eval_in_context
result = eval(_expression_to_evaluate(expression), globals)
File "<string>", line 1, in <module>
File "<__array_function__ internals>", line 6, in concatenate
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 2, the array at index 0 has size 54 and the array at index 1 has size 1
from drop_simulator.
Hi, we have uploaded all large files to OneDrive, which can be accessed here.
from drop_simulator.
Hello, sorry to bother you can you explain a little bit with details main files(which are more important), i have studies several times you good work, but still I have some confusion regarding your code.
thanks in advance!
from drop_simulator.
Hi, I'm willing to help. Can you specify your confusion?
from drop_simulator.
from drop_simulator.
You can start with running main_cnn.py
. As we're extending this version to an electrified one, more details will be provided. Please stay tuned!
from drop_simulator.
from drop_simulator.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drop_simulator.