Comments (3)
The docs are right, but the behavior of this function appears to be inconsistent with that of the rest of the API (which treats columns as observations). That's why I said the docs could be improved, by making them more explicit about this exception.
from multivariatestats.jl.
The docs say: "Here, y can be either a vector, or a matrix where each column is a response vector." So that means features are in columns, and therefore observations are in rows. This goes against the rule stated in documentation index.
I guess the most immediate fix is to make the documentation more explicit. Would you care to make a pull request? Then whether the behavior of the function should be changed to match that of other functions is another issue.
from multivariatestats.jl.
The docs look right to me. The issue that may be confusing is the phrase "each column is a response vector". This is not the same as "each column is a feature vector". The author is referring to the case that multiple y
's are being modeled using the same feature matrix X, for example y might be income
and experience level
, both being predicted using birthday
and city
.
Indeed rows are supposed to be observations and columns are features for an observation. The reason someone might write the doc like this is because the solution for llsq is
pinv(X'X) times X'y
Whether y is a single variable that is being modeled, or a whole matrix, the formula is still the same. We can accommodate multiple y
s by reusing the computation for inv(X'X) times X'.
from multivariatestats.jl.
Related Issues (20)
- Any plan for functional PCA? HOT 1
- 1.0 Release
- `transform` and `reconstruct` HOT 1
- Request for adjoint support in MulticlassLDA HOT 4
- show function calls show(io,M), not show(io, MIME, M) HOT 1
- error while fitting PCA model HOT 2
- LDA docs clarification HOT 5
- KernelPCA reconstruct problem HOT 1
- fitting `SubspaceLDA models fails.
- `predict` for `MulticlassLDA` is throwing error HOT 1
- Mutating labels when training MulticlassLDA HOT 1
- Isotonic Regression question HOT 1
- MethodError: no method matching fit(::Type{MDS}, ::Adjoint{Float64, Matrix{Float64}} HOT 3
- Add Citation.bib and DOI with zenodo?
- Bugs in isotonic regression ? HOT 1
- CCA results do not match sklearn.cross_decomposition.CCA HOT 1
- Can I fix the number of number of factors (i.e., output dimension)?
- Inferred `outdim` for ICA sometimes fails but without an informative explanation
- LDA Printing flipped in y and x axis data on docs
- Hope to add umap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multivariatestats.jl.