Skip to content

MagicalBearClaw/MontrealCrimeAnalytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MontrealCrimeAnalytics

Comp 472 (Concordia University A.I Project #1)

Python version

Only tested with python version Python 3.6.6 I am assuming this program will run on version higher than 3.6.6

Dependencies

Please view the requirements.text to view the dependencies need to run. Note the minimum dependencies used are the following

  • matplotlib==3.2.1
  • numpy==1.18.4
  • pandas==1.0.3
  • pyshp==2.1.0

Running the application

I only ran the application through pycharm. In pycharm you must create a virtual environment to do this please follow the following instructions

https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html

To use the requirements.txt in the environment please follow the instructions below https://www.jetbrains.com/help/idea/managing-dependencies.html

Using the application

It is recommend to use a grid size less than 0.002

The threshold slider controls the number of high crime crime cells.

The reset button will remove start and end markers for a* as well as any path drawn from the a* application.

When changing the grid size or the threshold you must press the update Grid button in order to update the grid with the new information.

Using a* algorithm

Place a start and end marker on the grid. when clicking in a cell the closet corner will be used.

you should have something like the following

ScreenShot 1

you are now read to press the Find Path button to execute the A* algorithm

you should have something like the following

ScreenShot 1

Misc

in main.py you can turn on the following the following flag to True in order to see the number crimes committed in each cell

show_cell_count=True ui = CrimeRateAnalyticUI(show_cell_count=True)

The reason it is not enabled by default is that it seems adding text to each cell is a heavy operation. therefore it is disabled by default.

You should see something like the following

ScreenShot 1

About

Comp 472 (Concordia University A.I Project #1)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages