Giter Club home page Giter Club logo

ml_projects-'s Introduction

machine learning projects

This repo is just me practicing data clean ups and modelling different data types into various ml models

Steps taken: Create a anaconda environment for my machine learning adventures:

conda create -n ml_projects python=2.7

Install required packages:

pip install <package_name>

I and playing around with 2 different text editors

sublime: https://www.sublimetext.com/

atom: https://atom.io/

atom has some cool features and github integrations. Highly recommend (especially look into the hydrogen feature). Interesting atom+markdown+pandoc+jupyter notebook workflow:

https://www.reddit.com/r/Python/comments/8mqd40/convenient_and_easily_tweakable/?st=JHSQ9XF4&sh=d370eefa

Next, I type up my code and convert it to a jupyter notebook for a more interactive display. you can also directly start with a notebook but I prefer this conversion method:

git clone https://github.com/sklam/py2nb.git

Installation:

cd py2nb

python setup.py install

Usage:

python -m py2nb input.py output.ipynb

Basic ml

check out the notebook basic_ml.ipynb. This gives you a basic framework for splitting, visualizing and predicting. You can use this framework with different datsets and test which algorith works best for your dataset.

Anomaly detection

This technique works well when you know most of your dataset is negative (i.e. does not meet anomaly criteria) and only has a small subset of postive outcomes (i.e. meet anomaly criteria)

In the code I use a simple moving average approach to get trends and then mark anything 3 standard deviations away from the moving avergage as an anomaly

Very useful with time series data. I visualized using a simple plot funtion and a lag_plot within the panda library. The lag plot does a good job at detecting outliers as well.

ml_projects-'s People

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.