Skip to content

Instantly share code, notes, and snippets.

#include <tapkee/tapkee.hpp>
using namespace std;
using namespace tapkee;
int main(int argc, const char** argv)
{
const int N = 100;
const int M = 10;
tapkee::DenseMatrix matrix(M, N);
diff --git a/cmake/FindOctave.cmake b/cmake/FindOctave.cmake
index df662aba9..585d984aa 100644
--- a/cmake/FindOctave.cmake
+++ b/cmake/FindOctave.cmake
@@ -184,9 +184,9 @@ endmacro ()
# handle REQUIRED and QUIET options
include (FindPackageHandleStandardArgs)
if (CMAKE_VERSION LESS 2.8.3)
- find_package_handle_standard_args (Octave DEFAULT_MSG OCTAVE_EXECUTABLE OCTAVE_ROOT_DIR OCTAVE_INCLUDE_DIRS OCTAVE_LIBRARIES OCTAVE_VERSION_STRING)
+ find_package_handle_standard_args (Octave DEFAULT_MSG OCTAVE_EXECUTABLE OCTAVE_INCLUDE_DIRS OCTAVE_LIBRARIES OCTAVE_VERSION_STRING)
default:
g++ -I../../../src -I../../../build/src main.cc Any_unittest.cc -L../../../third_party/libs/gmock/ -lgmock -lpthread -ggdb -g -L../../../build/src/shogun -lshogun
./a.out
class SuperSerializer {
on(int64);
on(float64);
on(SGObject*);
}
class Cereal<Archive> : SuperSerializer {
}
@lisitsyn
lisitsyn / gist:a6d8ff6e8690431f967c5318c3750919
Last active April 25, 2017 00:45 — forked from vigsterkr/gist:6f75563c64f62b33b4ac7d0e09ab22d5
Heiko is worrie that we will loose it :)
// Immutable features
// linear model
- dot prod:
- pairs
-
- cov var matrix: there's a Feature operator => CovarView => matrix
-
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Tag public
template <typename T>
class Tag
{
public:
// registers tag in object
Tag(SGObject* object, const char* name);
};
struct MutableState {
};
class Regularizer {
virtual void update(MutableState*) = 0;
};
class LearningRate {
virtual void update(MutableState*) = 0;
};
def setup(app):
app.add_config_value('todo_include_todos', False, False)
app.add_node(todolist)
app.add_node(todo,
html=(visit_todo_node, depart_todo_node),
latex=(visit_todo_node, depart_todo_node),
text=(visit_todo_node, depart_todo_node))
app.add_directive('todo', TodoDirective)
input_text = """
initialize CSVFile from "filename" as file;
initialize RealFeatures from file as features;
set float kernel_width to 2;
initialize GaussianKernel from kernel_width as kernel;
set matrix<float> K to kernel_matrix of kernel;
"""
import re