Skip to content

Commit

Permalink
Added example for fixed matrxi A in the dual case
Browse files Browse the repository at this point in the history
  • Loading branch information
cciliber authored Oct 8, 2018
1 parent 6e37cad commit 6c445a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@
% The output kernel learning modality (independent, trace, frobenius, etc.)
methods = {Train.rls_mtl_dual('ind'),Train.rls_mtl_dual('trace'),Train.rls_mtl_dual('frobenius')};%,Train.rls_mtl('sparse')};%,@okl_wrapper};

% adding also the case of a known matrix A (here just a random matrix
A = rand(T);
A = A*A'; % needs to be psd of course

tmp_train_method = Train.rls_mtl_dual('fix');
methods{end+1} = @(X,Y,lambda) tmp_train_method(X,Y,lambda,A);
% ----------

time_methods = zeros(numel(methods),1);
scores_methods = zeros(numel(methods),1);

Expand Down

0 comments on commit 6c445a8

Please sign in to comment.