Giter Site home page Giter Site logo

drkostas / accident-severity-prediction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from utk-ml-dream-team/accident-severity-prediction

7.0 0.0 3.0 69.87 MB

Predicting the severity of car accidents from various attributes

Python 8.50% Makefile 0.18% Jupyter Notebook 91.32%

accident-severity-prediction's Introduction

Accident Severity Prediction

GitHub license

About

Project Board, Current Issues, Assignment

Group 2 - Final Project for the UTK Machine Learning Course (COSC-522)

Libraries Overview

All the libraries are located under <project root>/project_libs

Where to put the code

The code is reloaded automatically. Any class object needs to reinitialized though.

Table of Contents

Prerequisites

You need to have a machine with Python >= 3.8 and any Bash based shell (e.g. zsh) installed. Having installed conda is also recommended.

$ python3.8 -V
Python 3.8

$ echo $SHELL
/usr/bin/zsh

Bootstrap Project

All the installation steps are being handled by the Makefile.

If you want to use conda run:

$ make install

$ conda activate accident_severity_prediction

If you want to use venv run:

$ make install env=venv

Using Git

To download the project:

  • If you have a ssh key saved in your GitHub account (instructions):
$ git clone [email protected]:UTK-ML-Dream-Team/accident-severity-prediction.git
  • If you haven't set up an ssh key:
$ git clone https://github.com/UTK-ML-Dream-Team/accident-severity-prediction.git

To push your local changes to remote repository:

  1. For every file you changed do:
$ git add path-to-file-1
$ git add path-to-file-2
# ...
  1. Create a commit message
$ git commit -m "My commit message"
  1. Push your changes to GitHub
$ git fetch
$ git pull
$ git push origin master

To pull changes from GitHub

$ git pull

Resolve conflicts:

# Install nbdime and run:
$ nbdime config-git --enable --global

Using Jupyter

Modifying the Configuration

You may need to configure the yml file. There is an already configured yml file under confs/prototype1.yml.

Local Jupyter

First, make sure you are in the correct virtual environment:

$ conda activate accident_severity_prediction

$ which python
/home/<your user>/anaconda3/envs/accident_severity_prediction/bin/python

To use jupyter, first run jupyter:

jupyter notebook

And open the main.ipynb.

Google Collab

Just Open this Google Collab Link.

Adding New Libraries

If you want to add a new library (e.g. a Class) in the project you need to follow these steps:

  1. Go to "<project root>/project_libs/project"
  2. Create a new python file inside it with a name like my_module.py
  3. Paste your code inside it
  4. Go to project_libs/project/init.py
  5. Add the following line: from project_libs.project/<Module name> import *
  6. (Optional) Rerun make install or python setup.py install

License

This project is licensed under the MIT License - see the LICENSE file for details.

accident-severity-prediction's People

Contributors

drkostas avatar isanjeevsingh avatar jheiba avatar russtyhub avatar schoward2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.