When running the logistic regression with nested cross-validation to find optimal lambda (cfg.mvpa.param.lambda = 'auto') an error occurs because the weights are not split according to inner folds:
Matrix dimensions must agree.
Error in train_logreg/lr_gradient_and_hessian_tanh_L2 (line 433)
g = ((cfg.weights . sigma)' YX)'/N - sumyxN + lambda * w;
When running the logistic regression with nested cross-validation to find optimal lambda (cfg.mvpa.param.lambda = 'auto') an error occurs because the weights are not split according to inner folds:
Matrix dimensions must agree.
Error in train_logreg/lr_gradient_and_hessian_tanh_L2 (line 433) g = ((cfg.weights . sigma)' YX)'/N - sumyxN + lambda * w;