Giter Site home page Giter Site logo

shivendrasrivastava / access_leaner-machine-learning-for-trading Goto Github PK

View Code? Open in Web Editor NEW

This project forked from catzizi/access_leaner-machine-learning-for-trading

0.0 2.0 0.0 416 KB

implement and evaluate three learning algorithms as Python classes: A KNN learner, a Linear Regression learner (provided) and a Bootstrap Aggregating learner

Python 100.00%

access_leaner-machine-learning-for-trading's Introduction

access_leaner-Machine-learning-for-trading

implement and evaluate three learning algorithms as Python classes: A KNN learner, a Linear Regression learner (provided) and a Bootstrap Aggregating learner The classes have been named KNNLearner, LinRegLearner, and BagLearner respectively.
Considering this a regression problem (not classification). So the goal is to return a continuous numerical result (not a discrete result).

In this project I am training & testing with static spatial data.

KNNLearner class should be implemented in the file KNNLearner.py Example: import KNNLearner as knn learner = knn.KNNLearner(k = 3) # constructor learner.addEvidence(Xtrain, Ytrain) # training step Y = learner.query(Xtest) # query Where "k" is the number of nearest neighbors to find. Xtrain and Xtest should be ndarrays (numpy objects) where each row represents an X1, X2, X3... XN set of feature values. The columns are the features and the rows are the individual example instances. Y and Ytrain are single dimension ndarrays that indicate the value we are attempting to predict with X. Implement BagLearner Implement Bootstrap Aggregating as a Python class named BagLearner. BagLearner class should be implemented in the file BagLearner.py. example: import BagLearner as bl learner = bl.BagLearner(learner = knn.KNNLearner, kwargs = {"k":3}, bags = 20, boost = False) learner.addEvidence(Xtrain, Ytrain) Y = learner.query(Xtest) Where learner is the learning class to use with bagging. kwargs are keyword arguments to be passed on to the learner's constructor and they vary according to the learner (see hints below). "bags" is the number of learners you should train using Bootstrap Aggregation. If boost is true, then you should implement boosting.

access_leaner-machine-learning-for-trading's People

Contributors

catzizi avatar

Watchers

Shivendra Srivastava avatar 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.