Giter VIP home page Giter VIP logo

ensmallen_jmlr's Introduction

Hi ๐Ÿ‘‹, I'm Ryan

A generic human in Atlanta

  • ๐Ÿ”ญ I stole this template from Kartik.

  • ๐Ÿ’ป I spend my time writing the mlpack and ensmallen C++ machine learning libraries, and the bandicoot GPU linear algebra library.

  • ๐Ÿ’ฌ Ask me about how many things I've blown up in Kerbal Space Program.

  • ๐Ÿ“ซ You can email me at [email protected].

  • โšก Fun fact: it's not possible to beat Ryan at Mariokart. Go ahead and try.



www.ratml.org
my website, if you want to know more about me or read about strange projects I do

ensmallen_jmlr's People

Contributors

conradsnicta avatar rcurtin avatar zoq avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ensmallen_jmlr's Issues

possible bug in example code

Within the text, X is defined as having a size of (n x d), as specified here:

ensmallen_jmlr/paper.tex

Lines 380 to 383 in bbee2c6

For demonstration purposes, let us consider the problem of linear regression.
A matrix of predictors $\bm X \in \mathcal{R}^{n \times d}$
and a vector of responses $\bm y \in \mathcal{R}^n$ is given.
The task is to find the best linear model $\bm \Phi \in \mathcal{R}^d$,

There is a possible issue in the definition of phi_star in the example code shown in Figure 1:

ensmallen_jmlr/paper.tex

Lines 347 to 350 in bbee2c6

arma::mat X; arma::vec y;
// ... set the contents of X and y here ...
arma::mat phi_star(X.n_rows, 1, arma::fill::randu); // initial point (uniform random)
LinearRegressionFn f(X, y);

For the matrix multiplication in Evaluate() to be valid:

ensmallen_jmlr/paper.tex

Lines 336 to 337 in bbee2c6

double Evaluate(const arma::mat& phi)
{ const arma::vec tmp = X * phi - y; return arma::dot(tmp,tmp); }

... seems that X.n_cols be used instead of X.n_rows in the definition of phi_star:

arma::mat phi_star(X.n_cols, 1, arma::fill::randu);  // initial point (uniform random)

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.