Skip to content

Instantly share code, notes, and snippets.

View sebastianruder's full-sized avatar

Sebastian Ruder sebastianruder

View GitHub Profile
@sebastianruder
sebastianruder / 0_reuse_code.js
Created February 10, 2016 11:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sebastianruder
sebastianruder / contextualize-test-input.scm
Last active August 29, 2015 14:02
Test input for contextualize and deduction pattern matcher rules
; 1) input for (pln-rule-deduction)
(AndLink (stv .9 .9)
(InheritanceLink (stv .9 .9)
(ConceptNode "Socrates")
(ConceptNode "man"))
(InheritanceLink (stv .9 .9)
(ConceptNode "man")
(ConceptNode "air_breather")))
2) input for (pln-rule-contextualize-inheritance)
Inference 1) EvaluationToMemberRule
Input
(EvaluationLink (stv 1.000000 1.000000)
(PredicateNode "breathe@7f5b37e8-e4b3-4335-a06b-68af470cf354") ; [350]
(ListLink (stv 1.000000 0.000000)
(ConceptNode "men@a2905bdd-9214-4717-82c6-dfe21c1263bc") ; [353]
(ConceptNode "air@9bfe790d-5446-4219-be74-845c0d145fe1") ; [355]
) ; [358]
@sebastianruder
sebastianruder / evaluation_to_member_example_output
Created May 11, 2014 09:27
Output of evaluation_to_member_example after adding InheritanceToMemberRule and MemberToEvaluationRule
AtomSpace starting contents:
(ConceptNode "Socrates" (av 0 0 0) (stv 0.001000 1.000000)) ; [1]
(ConceptNode "man" (av 0 0 0) (stv 0.010000 1.000000)) ; [2]
(ConceptNode "air" (av 0 0 0) (stv 0.010000 1.000000)) ; [3]
(ListLink (av 0 0 0) (stv 1.000000 0.000000)
(ConceptNode "man" (av 0 0 0) (stv 0.010000 1.000000)) ; [2]
(ConceptNode "air" (av 0 0 0) (stv 0.010000 1.000000)) ; [3]
@sebastianruder
sebastianruder / relex-parse_stacktrace
Created May 4, 2014 20:47
(relex-parse ...) Stacktrace
guile> (relex-parse "Trees are green.")
Backtrace:
In ice-9/boot-9.scm:
149: 19 [catch #t #<catch-closure c0b70c0> ...]
157: 18 [#<procedure ab508c0 ()>]
In unknown file:
?: 17 [catch-closure]
In ice-9/boot-9.scm:
149: 16 [catch #t #<catch-closure c0bcfd0> ...]
157: 15 [#<procedure ab50898 ()>]
@sebastianruder
sebastianruder / Failed_tests_opencog_140504
Created May 4, 2014 12:04
Stack traces of failed tests 67 and 81 after rebuilding
67/126 Testing: AllPythonModuleTests
67/126 Test: AllPythonModuleTests
Command: "/usr/local/bin/nosetests" "-vs" "--with-doctest" "/home/sebastian/opencog/tests/python/"
Directory: /home/sebastian/opencog/build/tests/python
"AllPythonModuleTests" start time: May 04 13:13 CEST
Output:
----------------------------------------------------------
Failure: SkipTest (Unit test temporarily disabled - see: https://github.com/opencog/opencog/issues/442) ... SKIP: Unit test temporarily disabled - see: https://github.com/opencog/opencog/issues/442
Failure: SkipTest (Unit test temporarily disabled - see: https://github.com/opencog/opencog/issues/442) ... SKIP: Unit test temporarily disabled - see: https://github.com/opencog/opencog/issues/442
Failure: SkipTest (Unit test temporarily disabled - see: https://github.com/opencog/opencog/issues/442) ... SKIP: Unit test temporarily disabled - see: https://github.com/opencog/opencog/issues/442
@sebastianruder
sebastianruder / Failed_tests
Last active August 29, 2015 14:00
Stack traces of failed tests
30:
Running 1 test[INFO] Using config file found at: /home/sebastian/opencog/build/tests/persist/zmq/events/../../../../lib/opencog-test.conf
[2014-05-02 10:52:51:109] [DEBUG] [NetworkServer] constructor
[2014-05-02 10:52:51:109] [DEBUG] [SystemActivityTable] constructor
[2014-05-02 10:52:51:138] [DEBUG] [SystemActivityTable] init
[2014-05-02 10:52:51:150] [INFO] Loading module "../../../../opencog/persist/zmq/events/libatomspacepublishermodule.so"
[2014-05-02 10:52:51:204] [INFO] [AtomSpacePublisherModule] constructor
[2014-05-02 10:52:51:204] [DEBUG] registering opencog::Request "publisher-enable-signals"
[2014-05-02 10:52:51:204] [DEBUG] registering opencog::Request "publisher-disable-signals"
[2014-05-02 10:52:51:204] [INFO] Initializing AtomSpacePublisherModule.