From 3ae5a5f362f130d0a383243d5b483999ef3ed672 Mon Sep 17 00:00:00 2001 From: Sarvesh Prakash Nikumbh Date: Thu, 4 Jan 2018 15:18:28 +0100 Subject: [PATCH] Minor changes in debug message text --- comik_main_with_weight_vector.m | 2 +- computeInstanceWideKernel.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/comik_main_with_weight_vector.m b/comik_main_with_weight_vector.m index 3151e7e..e675c51 100644 --- a/comik_main_with_weight_vector.m +++ b/comik_main_with_weight_vector.m @@ -169,7 +169,7 @@ % setting default value for segmentSizePercentage. % Currently, this is the only valid value. segmentSizeInPercentage = 0; -logMessages(debugMsgLocation,sprintf('All bags...'), debugLevel); +logMessages(debugMsgLocation,sprintf('Collecting all bags...'), debugLevel); tic; idx1 = 0; thisInstances = []; diff --git a/computeInstanceWideKernel.m b/computeInstanceWideKernel.m index 5126b25..4704f9c 100644 --- a/computeInstanceWideKernel.m +++ b/computeInstanceWideKernel.m @@ -35,7 +35,7 @@ if nargin < 3 debugMsgLocation = 1; debugLevel = 2; - sparceComputation = 0; + sparseComputation = 0; end logMessages(debugMsgLocation, sprintf('Onto compute the Std MI kernel\n'), debugLevel); nBags = length(allSeqsAsBags); @@ -54,7 +54,7 @@ for i=1:nBags allSeqsAsMat(:, instanceStarts(i): instanceEnds(i)) = allSeqsAsBags{i}; end - logMessages(debugMsgLocation, sprintf('Loop completed in %.4f seconds\n', toc), debugLevel); + logMessages(debugMsgLocation, sprintf('Loop converting cells to matrix completed in %.4f seconds\n', toc), debugLevel); % Above is a looping version instead of cell2mat (see next line). This takes % nearly half the time for really long sequences and too many instances. % tic; allSeqsAsMat = cell2mat(allSeqsAsBags); toc;