New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compute X given Y #52
Comments
Yes, you can use the FixedLatentFeaturesConstraint ry = [FixedLatentFeaturesConstraint(Y[i]) for i=1:n] Sorry that's not yet documented! On Wed, Apr 20, 2016 at 12:02 PM, Cédric St-Jean notifications@github.com
Madeleine Udell |
That worked, thanks! For reference: ry_B = [LowRankModels.FixedLatentFeaturesConstraint(glrm.Y[:, i]) for i=1:size(glrm.Y, 2)]
glrm_B = GLRM(B,losses,rx,ry_B,k);
X_B, Y_B, ch = fit!(glrm_B);
Y_B == glrm.Y # true I'm looking for libraries to add to |
Yes, I'd be very happy to have LowRankModels included in ScikitLearn.jl. If you want to go ahead and wrap it, I suggest starting your PR from the On Thu, Apr 21, 2016 at 5:27 AM, Cédric St-Jean notifications@github.com
Madeleine Udell |
Scikitlearn needs to store all hyperparameters in the type to support
Option 2 is less intrusive, but it's more types to maintain and tell users about. Any preference? I like option 1 in general, but it's not a great match for your codebase. |
I aesthetically prefer keeping the model separate from the algorithmic PCA and NNMF need not be extra types; but there could be specialized Are there other problems with this approach? Madeleine On Sat, Apr 23, 2016 at 4:49 AM, Cédric St-Jean notifications@github.com
Madeleine Udell |
Once a model has been fit to a matrix A, is there any way to fit it to another matrix holding Y constant? For example, if factor analysis is part of a pipeline that ends with an SVM classifier, the cross-validation code should learn the feature matrix Y on the training set, and compute the data matrix X on the test set, given Y.
The text was updated successfully, but these errors were encountered: