[mlpack-svn] r11712 - mlpack/tags/mlpack-1.0.1/src/mlpack/methods/mvu

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Mar 2 19:08:54 EST 2012


Author: rcurtin
Date: 2012-03-02 19:08:54 -0500 (Fri, 02 Mar 2012)
New Revision: 11712

Removed:
   mlpack/tags/mlpack-1.0.1/src/mlpack/methods/mvu/mvu_main.cpp
Modified:
   mlpack/tags/mlpack-1.0.1/src/mlpack/methods/mvu/CMakeLists.txt
Log:
Don't provide executable for MVU for this release.


Modified: mlpack/tags/mlpack-1.0.1/src/mlpack/methods/mvu/CMakeLists.txt
===================================================================
--- mlpack/tags/mlpack-1.0.1/src/mlpack/methods/mvu/CMakeLists.txt	2012-03-03 00:08:30 UTC (rev 11711)
+++ mlpack/tags/mlpack-1.0.1/src/mlpack/methods/mvu/CMakeLists.txt	2012-03-03 00:08:54 UTC (rev 11712)
@@ -15,11 +15,3 @@
 # 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(mvu
-  mvu_main.cpp
-)
-target_link_libraries(mvu
-  mlpack
-)
-install(TARGETS mvu RUNTIME DESTINATION bin)

Deleted: mlpack/tags/mlpack-1.0.1/src/mlpack/methods/mvu/mvu_main.cpp
===================================================================
--- mlpack/tags/mlpack-1.0.1/src/mlpack/methods/mvu/mvu_main.cpp	2012-03-03 00:08:30 UTC (rev 11711)
+++ mlpack/tags/mlpack-1.0.1/src/mlpack/methods/mvu/mvu_main.cpp	2012-03-03 00:08:54 UTC (rev 11712)
@@ -1,68 +0,0 @@
-/**
- * @file mvu_main.cpp
- * @author Ryan Curtin
- *
- * Executable for MVU.
- */
-#include <mlpack/core.hpp>
-#include "mvu.hpp"
-
-PROGRAM_INFO("Maximum Variance Unfolding (MVU)", "This program implements "
-    "Maximum Variance Unfolding, a nonlinear dimensionality reduction "
-    "technique.  The method minimizes dimensionality by unfolding a manifold "
-    "such that the distances to the nearest neighbors of each point are held "
-    "constant.");
-
-PARAM_STRING_REQ("input_file", "Filename of input dataset.", "i");
-PARAM_INT_REQ("new_dim", "New dimensionality of dataset.", "d");
-
-PARAM_STRING("output_file", "Filename to save unfolded dataset to.", "o",
-    "output.csv");
-PARAM_INT("num_neighbors", "Number of nearest neighbors to consider while "
-    "unfolding.", "k", 5);
-
-using namespace mlpack;
-using namespace mlpack::mvu;
-using namespace arma;
-using namespace std;
-
-int main(int argc, char **argv)
-{
-  // Read from command line.
-  CLI::ParseCommandLine(argc, argv);
-
-  math::RandomSeed(time(NULL));
-
-  // Load input dataset.
-  const string inputFile = CLI::GetParam<string>("input_file");
-  mat data;
-  data::Load(inputFile, data, true);
-
-  // Verify that the requested dimensionality is valid.
-  const int newDim = CLI::GetParam<int>("new_dim");
-  if (newDim <= 0 || newDim > (int) data.n_rows)
-  {
-    Log::Fatal << "Invalid new dimensionality (" << newDim << ").  Must be "
-      << "between 1 and the input dataset dimensionality (" << data.n_rows
-      << ")." << std::endl;
-  }
-
-  // Verify that the number of neighbors is valid.
-  const int numNeighbors = CLI::GetParam<int>("num_neighbors");
-  if (numNeighbors <= 0 || numNeighbors > (int) data.n_cols)
-  {
-    Log::Fatal << "Invalid number of neighbors (" << numNeighbors << ").  Must "
-        << "be between 1 and the number of points in the input dataset ("
-        << data.n_cols << ")." << std::endl;
-  }
-
-  // Now run MVU.
-  MVU mvu(data);
-
-  mat output;
-  mvu.Unfold(newDim, numNeighbors, output);
-
-  // Save results to file.
-  const string outputFile = CLI::GetParam<string>("output_file");
-  data::Save(outputFile, output, true);
-}




More information about the mlpack-svn mailing list