Giter Site home page Giter Site logo

rustregressor's Introduction

Getting Started

  • Have md reader installed so you can view this file correctly (VS-Code has a plugin!)
  • Install Rust by visiting https://www.rust-lang.org/tools/install
  • Familiarize yourself with cargo (Rust's package manager) by executing cargo --help

Basic Commands

To do a basic debug run execute: cargo run

To do a release build add --release flag

If there are multiple binaries you need to add: --bin binary_name

Where binary_name is the binary to execute. Look in src/bin for all binary names (omit the .rs)

To build and view the docs execute: cargo doc --open

Check out the doc comments I wrote for the knn and test_statistics modules!

To run the unit tests execute: cargo test

To check the pickiest of lints execute: cargo clippy

To remove all compiled components execute: cargo clean

Useful for minimizing the size before turning in

Notes on Each Binary

If you have multiple binary files in a Rust project you must use a --bin flag to select which binary to run. Below are notes on executing each binary.

ID3

To run execute:

cargo run --release --bin run_id3

KNN

To run knn execute:

cargo run --release --bin run_knn

KNN will display the accuracy for each k so the output will be very long. To remedy this you can export to a file instead by running the following command:

cargo run --release --bin run_knn > export

Where export is the name of the file you're exporting to.

Naive Bayes

To run execute:

cargo run --release --bin run_naive 

It will run multiple models with different smoothing values set and display each models performance

rustregressor's People

Contributors

damonpalovaara avatar

Watchers

 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.