Skip to content

Instantly share code, notes, and snippets.

View Saurabh7's full-sized avatar
😀
Working

Saurabh Mahindre Saurabh7

😀
Working
View GitHub Profile
[FAIL]
Traceback (most recent call last):
File "/home/trac/Twisted1/twisted/runner/test/test_procmon.py", line 288, in test_stopProcessForcedKill
self.assertEqual(self.reactor.seconds(), self.pm.timeStarted["foo"])
File "/home/trac/Twisted1/twisted/trial/_synctest.py", line 356, in assertEqual
% (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = 15.0
b = 0.0
@Saurabh7
Saurabh7 / gist:8070273
Created December 21, 2013 14:47
output
[INFO] m_num_classes: 4 (+0 to +3) num_train: 92
[DEBUG] entering KNN::apply(DenseFeatures at 0x15ec860)
[INFO] 92 test examples
[DEBUG] leaving KNN::apply(DenseFeatures at 0x15ec860)
i=0, class=0.000000,
i=1, class=0.000000,
i=2, class=0.000000,
i=3, class=0.000000,
i=4, class=0.000000,
i=5, class=0.000000,
@Saurabh7
Saurabh7 / gist:8092342
Created December 23, 2013 06:05
valgrind --leak-check=yes ./a
==4530== Memcheck, a memory error detector
==4530== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==4530== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==4530== Command: ./a
==4530==
vex amd64->IR: unhandled instruction bytes: 0xC5 0xF9 0x57 0xC0 0xE8 0x43 0x17 0xFF
==4530== valgrind: Unrecognised instruction at address 0x517cd84.
==4530== at 0x517CD84: _GLOBAL__sub_I_Math.cpp (Math.h:429)
==4530== by 0x400F305: call_init.part.0 (dl-init.c:85)
==4530== by 0x400F3DE: _dl_init (dl-init.c:52)
@Saurabh7
Saurabh7 / gist:8109824
Created December 24, 2013 07:11
valgrind memcheck
==17070== Memcheck, a memory error detector
==17070== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==17070== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==17070== Command: ./a.out
==17070== Parent PID: 9182
==17070==
==17070==
==17070== HEAP SUMMARY:
==17070== in use at exit: 53,138 bytes in 1,003 blocks
==17070== total heap usage: 6,008 allocs, 5,005 frees, 21,223,370 bytes allocated
@Saurabh7
Saurabh7 / gist:8109872
Created December 24, 2013 07:16
knn example
[INFO] m_num_classes: 4 (+0 to +3) num_train: 92
[DEBUG] entering KNN::apply(DenseFeatures at 0x96a3a70)
[INFO] 92 test examples
[DEBUG] leaving KNN::apply(DenseFeatures at 0x96a3a70)
i=0, class=0.000000,
i=1, class=0.000000,
i=2, class=0.000000,
i=3, class=0.000000,
i=4, class=0.000000,
i=5, class=0.000000,
@Saurabh7
Saurabh7 / gist:8142658
Created December 27, 2013 04:40
new valgrind memcheck
==8490== Memcheck, a memory error detector
==8490== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==8490== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==8490== Command: ./a.out
==8490== Parent PID: 7809
==8490==
==8490==
==8490== HEAP SUMMARY:
==8490== in use at exit: 51,594 bytes in 998 blocks
==8490== total heap usage: 6,020 allocs, 5,022 frees, 21,223,490 bytes allocated
@Saurabh7
Saurabh7 / gist:8146989
Created December 27, 2013 13:37
valgrind
==5340== Memcheck, a memory error detector
==5340== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==5340== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==5340== Command: ./a.out
==5340== Parent PID: 2657
==5340==
==5340==
==5340== HEAP SUMMARY:
==5340== in use at exit: 47,469 bytes in 913 blocks
==5340== total heap usage: 6,022 allocs, 5,109 frees, 21,223,510 bytes allocated
subset=[2,9,5,10,34,40,36,38,30,64,53,62,47,49,91,85,77,74]
last on stack=[0,1,3,4,6,7,8,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,31,32,33,35,37,39,41,42,43,44,45,46,48,50,51,52,54,55,56,57,58,59,60,61,63,65,66,67,68,69,70,71,72,73,75,76,78,79,80,81,82,83,84,86,87,88,89,90]
[ERROR] In file /home/trac/shogun/src/shogun/features/SubsetStack.cpp line 81: SubsetStack::add_subset(): Provided index vector contains indices larger than possible range!
diff --git a/src/shogun/evaluation/CrossValidation.cpp b/src/shogun/evaluation/CrossValidation.cpp
index 04a3d51..6b48aa2 100644
--- a/src/shogun/evaluation/CrossValidation.cpp
+++ b/src/shogun/evaluation/CrossValidation.cpp
@@ -291,7 +291,7 @@ float64_t CCrossValidation::evaluate_one_run()
SG_DEBUG("starting unlocked evaluation\n", get_name())
/* tell machine to store model internally
* (otherwise changing subset of features will kaboom the classifier) */
- m_machine->set_store_model_features(true);
+ //m_machine->set_store_model_features(true);
==16184== Memcheck, a memory error detector
==16184== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==16184== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==16184== Command: ./a.out
==16184== Parent PID: 2391
==16184==
==16184==
==16184== HEAP SUMMARY:
==16184== in use at exit: 50,490 bytes in 998 blocks
==16184== total heap usage: 226,546 allocs, 225,548 frees, 24,957,995 bytes allocated