Created
June 10, 2021 13:25
-
-
Save Steboss89/3c4d03efe5c13770df8946048f00931b to your computer and use it in GitHub Desktop.
Import libraries for linear regression
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import rusty_machine for linear regression | |
// as well as rust_machine Matrix and Vector as we need them for input | |
use rusty_machine; | |
use rusty_machine::linalg::Matrix; // surprise, Matrix is in linear algebra | |
use rusty_machine::linalg::BaseMatrix; // implement traits for matrix | |
use rusty_machine::linalg::Vector; | |
use rusty_machine::learning::lin_reg::LinRegressor; | |
use rusty_machine::learning::SupModel; // this is extremelly important | |
// as this implement the traits to user predict and train | |
//use smartcore::metrics::*; | |
use rusty_machine::analysis::score::neg_mean_squared_error; | |
// import the reader | |
use read_csv::read_housing_csv; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment