annotate core/magnatagatune/tests_evals/random_diag_wrapper.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 function [A, dout] = random_diag_wrapper(X, Y, trainparams)
wolffd@0 2 % dummy wrapper to plug a random distance measure into the
wolffd@0 3 % testing process
wolffd@0 4
wolffd@0 5 % ---
wolffd@0 6 % call main training function
wolffd@0 7 % ---
wolffd@0 8 A = diag(trainparams.std *(rand(1, size(X,1))-0.5) + trainparams.mean);
wolffd@0 9
wolffd@0 10 dout.trainfun = 'random_diag';