[mlpack-svn] r11683 - mlpack/trunk/src/mlpack/methods/local_coordinate_coding

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Mar 1 11:58:10 EST 2012


Author: niche
Date: 2012-03-01 11:58:10 -0500 (Thu, 01 Mar 2012)
New Revision: 11683

Added:
   mlpack/trunk/src/mlpack/methods/local_coordinate_coding/CMakeLists.txt
Modified:
   mlpack/trunk/src/mlpack/methods/local_coordinate_coding/lcc_main.cpp
Log:


Added: mlpack/trunk/src/mlpack/methods/local_coordinate_coding/CMakeLists.txt
===================================================================
--- mlpack/trunk/src/mlpack/methods/local_coordinate_coding/CMakeLists.txt	                        (rev 0)
+++ mlpack/trunk/src/mlpack/methods/local_coordinate_coding/CMakeLists.txt	2012-03-01 16:58:10 UTC (rev 11683)
@@ -0,0 +1,29 @@
+cmake_minimum_required(VERSION 2.8)
+
+# Define the files we need to compile
+# Anything not in this list will not be compiled into the output library
+# Do not include test programs here
+# In this library, these are specified twice, once here, and once for the individual library it belongs to, so make sure
+# that you have files in both sections
+set(SOURCES
+   lcc.hpp
+   lcc.cpp
+)
+
+# add directory name to sources
+set(DIR_SRCS)
+foreach(file ${SOURCES})
+  set(DIR_SRCS ${DIR_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/${file})
+endforeach()
+
+# append sources (with directory name) to list of all MLPACK sources (used at the parent scope)
+set(MLPACK_SRCS ${MLPACK_SRCS} ${DIR_SRCS} PARENT_SCOPE)
+
+add_executable(local_coordinate_coding
+    lcc_main.cpp
+)
+
+target_link_libraries(local_coordinate_coding
+  mlpack
+)
+install(TARGETS local_coordinate_coding RUNTIME DESTINATION bin)

Modified: mlpack/trunk/src/mlpack/methods/local_coordinate_coding/lcc_main.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/local_coordinate_coding/lcc_main.cpp	2012-03-01 16:56:53 UTC (rev 11682)
+++ mlpack/trunk/src/mlpack/methods/local_coordinate_coding/lcc_main.cpp	2012-03-01 16:58:10 UTC (rev 11683)
@@ -15,9 +15,6 @@
 
 PARAM_INT_REQ("n_iterations", "number of iterations for sparse coding.", "");
 
-PARAM_INT_REQ("digit1", "digit for first class.", "");
-PARAM_INT_REQ("digit2", "digit for second class.", "");
-
 PARAM_STRING_REQ("data", "path to the input data.", "");
 PARAM_STRING("initial_dictionary", "Filename for initial dictionary.", "", "");
 PARAM_STRING("results_dir", "Directory for results.", "", "");




More information about the mlpack-svn mailing list