|
@@ -1,3 +1,4 @@
|
|
|
+
|
|
|
/**
|
|
|
* @file ImageNetData.h
|
|
|
* @author Erik Rodner
|
|
@@ -12,7 +13,7 @@
|
|
|
#include <string>
|
|
|
|
|
|
#include <core/vector/VectorT.h>
|
|
|
-#include <core/vector/SparseVector.h>
|
|
|
+#include <core/vector/SparseVectorT.h>
|
|
|
#include <core/matlabAccess/MatFileIO.h>
|
|
|
|
|
|
#include "vislearning/cbaselib/LabeledSet.h"
|
|
@@ -52,7 +53,6 @@ class ImageNetData
|
|
|
*/
|
|
|
void getBatchData ( sparse_t & data, Vector & y, const std::string & fileTag = "train", const std::string & variableTag = "training" );
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @brief load the data specified for later access using the get functions
|
|
|
*
|
|
@@ -61,6 +61,13 @@ class ImageNetData
|
|
|
*/
|
|
|
void preloadData ( const std::string & fileTag = "val", const std::string & variableTag = "testing" );
|
|
|
|
|
|
+ /**
|
|
|
+ * @brief normalize the data given the specified norm
|
|
|
+ *
|
|
|
+ * @param normTag vector norm used in normalization, "L1" or "L2"
|
|
|
+ */
|
|
|
+ void normalizeData ( const std::string & normTag = "L1" );
|
|
|
+
|
|
|
/**
|
|
|
* @brief load the data specified for later access using the get functions, give everything as a LabeledSetVector object which is usefull for objects of type KernelClassifier (as used in vislearning)
|
|
|
*
|