From 6c445a8c20ba1a7211fdff3290d1807f1dfe7d9e Mon Sep 17 00:00:00 2001 From: Carlo Ciliberto Date: Mon, 8 Oct 2018 17:41:32 +0100 Subject: [PATCH] Added example for fixed matrxi A in the dual case --- main.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.m b/main.m index 6b5ae07..aff03e7 100644 --- a/main.m +++ b/main.m @@ -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);