Giter Site home page Giter Site logo

Sparse PCA about linfa HOT 3 OPEN

sjaustirni avatar sjaustirni commented on September 13, 2024
Sparse PCA

from linfa.

Comments (3)

bytesnake avatar bytesnake commented on September 13, 2024 1

awesome πŸŽ‰ the current implementation of elasticnet only supports a single target, so you have to solve for every beta separately with Y=X alpha. Extension to multinomial regression can be found here https://statweb.stanford.edu/~jhf/ftp/noah.pdf

from linfa.

bytesnake avatar bytesnake commented on September 13, 2024

all of your items are hyperparameters, they are fixed prior to the training. The model parameter would be the eigen-decomposition. https://machinelearningmastery.com/difference-between-a-parameter-and-a-hyperparameter/
It would be awesome if you can re-use parts of the existing PCA infrastructure and fallback to the existing implementation if l1_penalty and l2_penalty are both zero. You can also use the elasticnet implementation in linfa-elasticnet.

from linfa.

sjaustirni avatar sjaustirni commented on September 13, 2024

Hey @bytesnake thanks for your answer.

I was indeed confused about hyperparameters vs parameters, thank you for clearing it up :D

I want to, of course, use the existing PCA and ElasticNet implementation that we already have in linfa, especially since the linked Sparse PCA algorithm starts with an output from the ordinary PCA:

  1. Let A start at V[,1:k], the loadings of the first k ordinary principal components.

I was wondering though whether the sparse PCA implementation should live in pca.rs under the sparse flag or whether SparsePCA should be a general wrapper around the existing PCA in its own class. I lean towards the latter, but I wanted to hear another opinion on this matter :)

Edit: I should figure that out from the penalty arguments, I did not get that first time around, but now I do πŸ’ͺ :D

from linfa.

Related Issues (20)

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.