Git Product home page Git Product logo

fpga_random_forest's Introduction

FPGA_random_forest

FPGA implementation of SKLearn Random Forest

Implements a random forest algorithm on an FPGA using SKLearn in python. The SKHDL_64 package takes an SKLearn random forest object, and generates a verilog file representing the trees of the forest. The file can then be added a Xilinx project with the other included files to create a synthesizable module.

Once the module has been synthesized, using the skhdl_64.predict() method sends a pandas dataframe to the FPGA, and returns predictions matching those of SKLearn.

Note: you may need to change the com port in skhdl to match the serial usb port of your machine.

The module includes an already generated file using compustat data from Dirk Zorn's 2004 paper. The zorn_data_test.py file demonstrates the commands of the skhdl package.

Remaining issues as of Dec 12

Currently the data_collect.v file also needs to be modified when new forest is generated. The NUM_DATA parameter needs to match between these two files. The data_collect.py file generates this file, but needs to be added in to the larger skhdl file.

Occasionally the module gives an incorrect prediction. We believe this is due to the address counter we use to store incoming data going to an incorrect position. We have not been able to replicate the problem in simulation, and are experimenting with different ways to fix this.

fpga_random_forest's People

Contributors

johnbensnyder 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.