Giter Site home page Giter Site logo

pinky's Introduction

Pinky

Pinky is a simple deep learning toolbox for earthquake localization and detection, for an example study have a look at our application of a CNN with 3 convolutional layers to a West Bohemia earthquake swarm.

To get started, have a look at our small synthetic example generator in the 'example' subdirectory.

Prereqs

  • pyrocko
  • tensorflow v1.14
  • scikit-optimize (optional for hyperparameter optimization)

You can use pip to install dependencies:

pip install -r requirements.txt

Note that this will install tensorflow without GPU support. Checkout the tensorflow documentation to install with GPU support

Invocation

You need to provide pinky with a configuration file.

pinky --config <config_filename>

Check data

A good starting point to see if data is properly loaded an preprocessed is to have look at a couple of examples.

pinky --config <config_filename> --show-data 9

This will generate a figure with 9 panels show the first 9 preprocessed data labels and features from your dataset.

Training

To start training:

pinky --config <config_filename> --train

You can dump your examples to TFRecordDatasets to accelerate io operations:

pinky --config <config_filename> --write <new_config_filename>

and use the newly created config file to run --train

Invoke pinky with --debug to enable keep track of weight matrices in tensorboard.

Citation

Marius Kriegerowski, Gesa M. Petersen, Hannes Vasyura‐Bathke, Matthias Ohrnberger; A Deep Convolutional Neural Network for Localization of Clustered Earthquakes Based on Multistation Full Waveforms. Seismological Research Letters ; 90 (2A): 510–516. doi: https://doi.org/10.1785/0220180320

pinky's People

Contributors

herrmuellerluedenscheid avatar gesape 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.