Skip to content

Idk507/Karnataka-Police-Hackathon-Police_Rescue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prototype - Karnataka-Police-Hackathon-Police_Rescue

TEAM : Police Rescue

OUR TRAINED MODEL FILE : Try to see this code!! LINK : https://drive.google.com/drive/folders/1M6biNsfKHF9DZEKLEZO5BECmX69P0JTR?usp=sharing

DATASET : Download dataset and paste the csv file on predictive_crime folder!! link : https://drive.google.com/drive/folders/1d3zbqzQ2gSerwuYQ3zMgys2-nTEPOIy_?usp=sharing

Requirements

To run this prototype, you must have the following libraries installed on your PC:

  • Streamlit
  • Matplotlib.pyplot
  • Godesic
  • KMeans
  • Numpy
  • Pandas
  • Pickle

Installation

Make sure you have all the required libraries installed on your system. You can install them using pip:

pip install streamlit matplotlib godesic KMeans numpy pandas pickle

Running the Models

To run the models, navigate to the model folder in your command prompt (cmd) and execute the following commands:

  1. Cluster Model:
streamlit run "write full path\model\model.py"
  1. ARIMA Model:
streamlit run "write full path\model\arima\arima.py"
  1. Accused Behavior Model:
streamlit run "write full path\model\accused behaiver\model.py"
  1. Predictive Model:
streamlit run "write full path\model\preditive.py"

Accessing the Models

After running each model, you will get a local network URL. Replace the placeholder "runing network url" with the provided URL in the respective HTML files:

  1. clustered_crime.html: Replace "runing network url" with "http://192.168.1.40:8501"

  2. future_crime_predicted.html: Replace "runing network url" with "http://192.168.1.40:8502"

  3. behaviroal_prediction.html: Replace "runing network url" with "http://192.168.1.40:8503"

  4. prediction_for_cases.html: Replace "runing network url" with "http://192.168.1.40:8504"

Usage

Once all models are running and URLs are replaced, you can access the prototype by opening the respective HTML files in a web browser.

Now you can explore the prototype! If you have any questions or feedback, feel free to reach out.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published