This file contains 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/src/modular/Classifier.i b/src/modular/Classifier.i | |
index 803f28f..b40478a 100644 | |
--- a/src/modular/Classifier.i | |
+++ b/src/modular/Classifier.i | |
@@ -12,7 +12,11 @@ | |
"The `Classifier` module gathers all classifiers available in the SHOGUN toolkit." | |
%enddef | |
+#ifndef SWIGRUBY | |
%module(docstring=DOCSTR) Classifier |
This file contains 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
template<class T> class SGVector | |
{ | |
public: | |
/** default constructor */ | |
SGVector() : vector(NULL), vlen(0), do_free(false) { } | |
/** constructor for setting params */ | |
SGVector(T* v, index_t len, bool free_vec=false) | |
: vector(v), vlen(len), do_free(free_vec) { } |
This file contains 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
require("Distance") | |
require("Features"); | |
require 'load' | |
traindat = load_numbers('../data/fm_train_real.dat') | |
testdat = load_numbers('../data/fm_test_real.dat') | |
parameter_list = {{traindat,testdat},{traindat,testdat}} | |
function distance_braycurtis_modular (fm_train_real,fm_test_real) |
This file contains 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
Program received signal SIGSEGV, Segmentation fault. | |
0x00007ffff7dcfa38 in sigemptyset () from /home/sonne/v/octave/src/.libs/liboctinterp.so.0 | |
(gdb) bt | |
#0 0x00007ffff7dcfa38 in sigemptyset () from /home/sonne/v/octave/src/.libs/liboctinterp.so.0 | |
#1 0x00007ffff6fabfd1 in octave_set_signal_handler (sig=2, handler=0x7ffff6fac080 <sigint_handler(int)>, restart_syscalls=true) at sighandlers.cc:225 | |
#2 0x00007ffff6fac066 in octave_catch_interrupts () at sighandlers.cc:460 | |
#3 0x00007ffff6fac203 in install_signal_handlers () at sighandlers.cc:529 | |
#4 0x00007ffff6f75ce6 in octave_main (argc=6, argv=0x7fffffffd6a8, embedded=0) at octave.cc:668 | |
#5 0x00000000004006f7 in main (argc=6, argv=0x7fffffffd6a8) at main.c:35 | |
(gdb) up |
This file contains 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 -r 10a5c8155756 liboctave/DiagArray2.h | |
--- a/liboctave/DiagArray2.h Tue Nov 08 14:50:15 2011 -0500 | |
+++ b/liboctave/DiagArray2.h Wed Nov 09 22:19:22 2011 +0100 | |
@@ -43,7 +43,7 @@ | |
public: | |
- using Array<T>::element_type; | |
+ using typename Array<T>::element_type; | |
This file contains 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 <shogun/base/init.h> | |
#include <shogun/classifier/mkl/MKLClassification.h> | |
#include <shogun/regression/svr/MKLRegression.h> | |
#include <shogun/regression/svr/LibSVR.h> | |
#include <shogun/regression/svr/SVRLight.h> | |
#include <shogun/features/Labels.h> | |
#include <shogun/lib/DataType.h> | |
#include <shogun/kernel/CustomKernel.h> | |
#include <shogun/kernel/CombinedKernel.h> | |
#include <shogun/features/SimpleFeatures.h> |
This file contains 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 <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <time.h> | |
using namespace std; | |
static double | |
JS1 (const vector<double>& a, const vector<double>& b) { | |
double result = 0; |
This file contains 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
/*g++ -O9 -mfpmath=sse -march=native -mtune=native nodifference.cpp */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <sys/time.h> | |
This file contains 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 CVanillaStructuredOutputMachine : public CMachine { | |
// Constructor, Destructor | |
CStructuredOutputMachine( | |
CStructuredData* trainset,CLoss* loss,CModel* model) | |
virtual ~CStructuredOutputMachine | |
// heritable data | |
CStructuredData* trainset | |
CLoss* loss | |
CModel* model |
This file contains 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
/* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* Written (W) 2013 Soumyajit De | |
*/ | |
#include <shogun/lib/common.h> |
OlderNewer