Giter Site home page Giter Site logo

catmou / groundmotionclassifier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vedangw/groundmotionclassifier

0.0 1.0 0.0 332.36 MB

A project to differentiate between earthquakes and blasting waves using Machine Learning.

License: MIT License

Jupyter Notebook 84.02% Python 13.94% Shell 2.05%

groundmotionclassifier's Introduction

GroundMotionClassifier

A project to differentiate between earthquakes and blasting waves using Support Vector Machines.

Prerequisites:

To run this project, you would need a linux-based operating system (Ubuntu or Fedora would work best).

The code is written in Python 2.7.12+, but any version of Python 2 would work.

You would also need the following installed in your system:

  • Scipy
  • Numpy
  • Matplotlib
  • Scikit-Learn
  • Peakutils
  • Plotly

These can be downloaded using a download manager such as pip.

Install pip:

sudo apt-get install python-pip

Install any of the dependencies with pip. For eg,:

pip install scikit-learn
pip install numpy

Running the code:

The feature vector is stored in store.txt present in isrsvm/PS/Code. To create a new feature vector (while erasing the previous one):

sh run.sh

To test the working of any module, you can simply compile it with Python 2 with the appropriate command-line arguments. Check in the comments in the relevant file to know the command-line arguments. For eg.:

python Seismogram.py Kachchh pitsa001.044
python rsp.py /path/to/PS/Datasets/Surendranagar pitsa001.003 r

To train the classifier and plot the decision boundary along with the scatterplot, compile the classifier file. This however should be done after creating the feature vector:

python classifier.py

Datasets:

The datasets are present in isrsvm/PS/Datasets.

Note: These datasets are owned by the Institute of Seismological Research, Gandhinagar, India.

groundmotionclassifier's People

Contributors

vedangw avatar

Watchers

 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.