irlba | Fast truncated singular value decompositions | Machine Learning library

 by   bwlewis R Version: Current License: No License

kandi X-RAY | irlba Summary

kandi X-RAY | irlba Summary

irlba is a R library typically used in Artificial Intelligence, Machine Learning applications. irlba has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Implicitly-restarted Lanczos methods for fast truncated singular value decomposition of sparse and dense matrices (also referred to as partial SVD). IRLBA stands for Augmented, Implicitly Restarted Lanczos Bidiagonalization Algorithm. The package provides the following functions (see help on each for details and examples). Help documentation for each function includes extensive documentation and examples. Also see the package vignette: vignette("irlba", package="irlba"). An overview web page is here: What's new in Version 2.3.1?. I will remove partial_eigen() in a future version. As its documentation states, users are better off using the RSpectra package for eigenvalue computations (although not generally for singular value computations).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              irlba has a low active ecosystem.
              It has 93 star(s) with 14 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 22 open issues and 29 have been closed. On average issues are closed in 73 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of irlba is current.

            kandi-Quality Quality

              irlba has no bugs reported.

            kandi-Security Security

              irlba has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              irlba does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              irlba releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of irlba
            Get all kandi verified functions for this library.

            irlba Key Features

            No Key Features are available at this moment for irlba.

            irlba Examples and Code Snippets

            No Code Snippets are available at this moment for irlba.

            Community Discussions

            QUESTION

            Error: "argument to 'which' is not logical" for sparse logical matrix
            Asked 2020-Mar-02 at 11:32

            Here's what I am doing:

            1. Loading sparse matrix from a file.
            2. Extracting indices(col, row) which have the values in this sparse matrix.
            3. Use these indices and the values for further computation.

            This works fine when I am executing the steps on R command prompt. But when its done inside a function of a package, step 2 throws the following error:

            ...

            ANSWER

            Answered 2020-Mar-02 at 11:32

            You need to load the library Matrix, chances are the package does not load it. See example below:

            Source https://stackoverflow.com/questions/60485977

            QUESTION

            R internal handling of sparse matrices
            Asked 2019-Dec-03 at 18:26

            I have been comparing the performance of several PCA implementations from both Python and R, and noticed an interesting behavior:
            While it seems impossible to compute the PCA of a sparse matrix in Python (the only approach would be scikit-learn's TruncatedSVD, yet it does not support the mean-centering required to be equivalent to a covariance solution for PCA. Their argumentation is, that it would destroy the sparsity property of the matrix. Other implementations like Facebook's PCA algorithm or the PCA/randomPCA method in scikit learn do not support sparse matrices for similar reasons.

            While all of that makes sense to me, several R packages, like irlba, rsvd, etc., are able to handle sparse matrices (e.g. generated with rsparsematrix), and even allow for specific center=True arguments.

            My question is, how R handles this internally, as it seems to be vastly more efficient than the comparable Python implementation. Does R still maintain the sparsity by doing Absolute Scaling instead (which would theoretically falsify the results, but at least maintain sparsity)? Or is there any way in which the mean can be stored explicitly for the zero values, and is only stored once (instead of for every value separately)?

            To get put off hold: How does R internally store matrices with mean-centering without exploding RAM usage. Hope that is concise enough....

            ...

            ANSWER

            Answered 2019-Dec-03 at 18:26

            The key here is that the underlying implementation for the partial SVD (restarted Lanczos bidiagonalization C code) doesn't store the matrix. You instead record the result of the linear operation from the matrix applied to a small set of vectors obtained from the previous iteration.

            Rather than explaining the concrete method used in the c code, which is quite advanced (see paper for description),I will explain it with a much simpler algorithm that captures the key idea in terms of how to preserve the efficiency from sparsity: the power method (or the subspace iteration method for its generalization to multiple eigenvalues). The algorithm returns the largest eigenvalue of a matrix A by iteratively applying a linear operator, then normalizing (or orthogonalizing a small set of vectors, in the case of subspace iteration)

            What you do at every iteration is

            Source https://stackoverflow.com/questions/50853136

            QUESTION

            Gigantic arrow heads when plotting network with igraph
            Asked 2019-May-28 at 09:27

            EDIT I was trying to figure out what is wrong with my code and I started to plot simple graphs to see how the arrow will look on smaller graphs. I tired the following command:

            ...

            ANSWER

            Answered 2017-May-17 at 12:21

            So it seems like the problem is with how R displays graphic on my computer. When, instead of plotting the figure directly in the console, I save it to a file, everything looks just fine. Here is a code I am using, in case someone else faces similar problem:

            Source https://stackoverflow.com/questions/43835506

            QUESTION

            R irlba sparse data representation
            Asked 2019-Mar-08 at 17:34

            Please let me know if I'm simply doing this wrong...

            I have a 47,194 row, 27 column numeric matrix with some missing values. I'm trying to use irlba to factor the matrix. In all previous R projects, I've used NA to indicate missing data. When I do with irlba, I get an error that data is missing. How do I indicate that a value is missing and that irlba should ignore it when factoring the matrix?

            Of note: The documentation for irlba doesn't include sparse data. Every element has a value. There are examples with values of zero, but I can't do that because it will factor the value of zero, not ignore the value.

            Code example by request:

            ...

            ANSWER

            Answered 2019-Mar-08 at 17:34

            Instead of using irlba, I found that SVDmiss performs the same function. Given a simple matrix, such as:

            Source https://stackoverflow.com/questions/55067710

            QUESTION

            Problems with SVD of a large matrix using bigmemory and irlba
            Asked 2018-May-03 at 07:09

            I am currently trying to implement a SVD of a very large matrix using bigmemory and irlba. As far as I understand I have to adjust the mult command in the irlba package, which I have done like this:

            ...

            ANSWER

            Answered 2018-May-03 at 07:09

            QUESTION

            I need to group the matrix value based on sign combination (+ -)
            Asked 2017-Apr-24 at 08:17

            I am new to R programming. For my course work, I am implementing Recommendation system using R. I already convert data table to matrix and then processed SVD=udv using irlba funtion. Now I have the following matrix u.

            Now I need to classify them based on their sign. For example, here, first three are combination of(-, -) then last is (-,-), so they all must be in same community. Then 4th and 5th are (-, +), they are in same community and so on.

            ...

            ANSWER

            Answered 2017-Apr-24 at 02:02

            you can use sign on each column and paste them into your combination string. Then split the matrix into each combination

            Source https://stackoverflow.com/questions/43578551

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install irlba

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/bwlewis/irlba.git

          • CLI

            gh repo clone bwlewis/irlba

          • sshUrl

            git@github.com:bwlewis/irlba.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link