Git Product home page Git Product logo

machinelearning's Introduction

MachineLearning

Testing machine learning techniques on the market

Languages

Python

Requirements

    pip install -r requirements

Random Forest

Meant to output chance of upward movement in 1 week. Will likely use regression decision tree as weak learner.

Preliminary results: Random Forest is whack. It's terrible. It gives terrible results. It would rather try to classify everything as don't buy rather than get a single buy wrong. We need more time to tweak some hyperparameters perhaps.

Adaboost

Cross validation preliminary: tree depth 2, ~1000 weak learners, balanced weight

Preliminary results: similar to random forest, boosting is not great. It's slightly better than random forest, but barely beats random guessing. Most importantly, these ensemble methods have high rates of false positives, our worst nightmare. https://stats.stackexchange.com/questions/163560/how-many-adaboost-iterations

TODO: try to customize the loss function to add importance to false positives (https://www.google.com/search?q=sklearn+change+loss+function&oq=sklearn+change+loss+fun&aqs=chrome.0.0j69i57j0l2.2437j0j4&sourceid=chrome&ie=UTF-8)

Gradient Boost

Able to hit max 29% on P125L30, 39% on P70L30

SingleType, CALLS only, maxdepth 4, 2750 trees: ~42-44% SingleType, PUTS only:

Logistic Regression

Same purpose as random forest. Goal is to use L1 ridge regularization for feature selection. Regardless of hypothesis efficacy, we can try to rule out useless metrics in analyzing stock performance by virtue of ridge regularization.

Updated goal: toss what I wrote up there, go go log reg!

Notes: do not forget to normalize dataset

Preliminary results: bad as well haha. Will try to tune loss function. Will also try Bayesian regression.

Data format

PLEASE UPDATE

machinelearning's People

Contributors

felixhu333 avatar felixwho avatar

Watchers

James Cloos 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.