SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
BmrmStatistics.h
Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Copyright (C) 2012 Michal Uricar, uricamic@cmp.felk.cvut.cz
00008  *
00009  */
00010 
00011 #ifndef BMRM_RETURN_VALUE_H_
00012 #define BMRM_RETURN_VALUE_H_
00013 
00014 #include <shogun/lib/common.h>
00015 #include <shogun/io/SerializableFile.h>
00016 #include <shogun/lib/SGVector.h>
00017 
00018 namespace shogun
00019 {
00020 
00022 struct BmrmStatistics
00023 {
00025     BmrmStatistics()
00026     {
00027         nIter = 0;
00028         nCP = 0;
00029         nzA = 0;
00030         Fp = 0;
00031         Fd = 0;
00032         qp_exitflag = 0;
00033         exitflag = 0;
00034     };
00035 
00037     virtual ~BmrmStatistics() { };
00038 
00040     bool load_serializable(CSerializableFile* file, const char* prefix="") { return false; }
00041 
00043     bool save_serializable(CSerializableFile* file, const char* prefix="") { return false; }
00044 
00046     uint32_t nIter;
00047 
00049     uint32_t get_n_iters() const { return nIter; }
00050 
00052     uint32_t nCP;
00053 
00055     uint32_t nzA;
00056 
00058     float64_t Fp;
00059 
00061     float64_t Fd;
00062 
00064     int8_t qp_exitflag;
00065 
00071     int8_t exitflag;
00072 
00074     SGVector< float64_t > hist_Fp;
00075 
00077     SGVector< float64_t > get_hist_Fp_vector() const { return hist_Fp; };
00078 
00080     SGVector< float64_t > hist_Fd;
00081 
00083     SGVector< float64_t > get_hist_Fd_vector() const { return hist_Fd; };
00084 
00086     SGVector< float64_t > hist_wdist;
00087 
00089     SGVector< float64_t > get_hist_wdist_vector() const { return hist_wdist; };
00090 };
00091 
00092 }
00093 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation