From 19d98bb3d3ddf7c941c0d1e9df9e3614e0ccd68b Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Sun, 12 Jul 2020 23:37:57 +0100 Subject: Print training accuracy --- include/gensvm_base.h | 2 ++ include/gensvm_optimize.h | 1 + 2 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/gensvm_base.h b/include/gensvm_base.h index f5f205f..16b7508 100644 --- a/include/gensvm_base.h +++ b/include/gensvm_base.h @@ -172,6 +172,8 @@ struct GenWork { ///< n x (K-1) working matrix for the Z * V calculation double *beta; ///< K-1 working vector for a row of the B matrix + long *yhat; + ///< n vector of predicted classes }; // function declarations diff --git a/include/gensvm_optimize.h b/include/gensvm_optimize.h index d7a8248..e12f0f5 100644 --- a/include/gensvm_optimize.h +++ b/include/gensvm_optimize.h @@ -33,6 +33,7 @@ #include "gensvm_sv.h" #include "gensvm_simplex.h" +#include "gensvm_predict.h" #include "gensvm_update.h" #include "gensvm_zv.h" -- cgit v1.2.3