This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SuperSerializer { | |
| on(int64); | |
| on(float64); | |
| on(SGObject*); | |
| } | |
| class Cereal<Archive> : SuperSerializer { | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Immutable features | |
| // linear model | |
| - dot prod: | |
| - pairs | |
| - | |
| - cov var matrix: there's a Feature operator => CovarView => matrix | |
| - | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Tag public | |
| template <typename T> | |
| class Tag | |
| { | |
| public: | |
| // registers tag in object | |
| Tag(SGObject* object, const char* name); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct MutableState { | |
| }; | |
| class Regularizer { | |
| virtual void update(MutableState*) = 0; | |
| }; | |
| class LearningRate { | |
| virtual void update(MutableState*) = 0; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
NewerOlder