Coder Social home page Coder Social logo

analytic-feature-selection's People

Contributors

fbreuer avatar stambizzle avatar

Watchers

 avatar  avatar  avatar

analytic-feature-selection's Issues

questions about matrix rank implementation

Two questions about the implementation of matrix rank, i.e., my_matrix_rank:

  1. What does the argument values of my_matrix_rank mean?
  2. An alternative to using the SVD for computing the rank would be to use the QR decomposition. An advantage would be that numerical convergence is no longer an issue. How do SVD and QR compare performance-wise?

checking whether a vector is in the affine hull

There are two ways to check whether a vector is in the affine hull of a set of points:

1. Via ranks

The dimension of the affine hull of vectors v_1,...,v_n can be calculated via get_poly_dim, i.e. dim(aff(v_1,...,v_n)) = get_poly_dim(M) where M is the matrix with the v_1,...,v_n as rows. Using this notation, we can check whether a vector w is contained in the affine hull of v_1,...,v_n as follows:

If dim(aff(v_1,...,v_n,w)) > dim(aff(v_1,...,v_n)), then w is not contained in the affine hull. Otherwise w is contained in the affine hull.

So we need only use get_poly_dim twice to check this. (Checking whether the zero vector is in the matrix will do us no good.)

Note that the dimensions will differ only by 1! So small numerical errors in the rank computation may lead to a wrong result here.

2. By solving linear systems

To check if w is contained in the affine hull of the vectors v_1,...,v_n one can simply check if the linear system Mx=(w-v_n) has a solution, where M is the matrix with columns (!!!) v_1-v_n, v_2-v_n, ..., v_{n-1}-v_n.

If Mx = (w-v_n) has a solution, w is contained in the affine hull. Otherwise w is not contained in the affine hull.

If there is only one w that has to be check, we only need to solve one linear system here, whereas with the previous method, we needed to compute two ranks. However, if we need to do this check for many w, then there is no significant difference in theoretical complexity.

"dataset" versus "data set"

We have different spellings for

"dataset" <-> "data set"
"pointset" <-> "point set"
"featureset" <-> "feature set"

floating around the text. We need to settle on one convention and stick to it.

Preferences?

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.