Commit 9cb3ac04 authored by josd's avatar josd

retest

parent 2a4d319e
......@@ -11,27 +11,17 @@ PREFIX ccd: <http://josd.github.io/eye/reasoning/ccd#>
{
?A math:memberCount ?I.
?A list:member (?F ?G ?J ?K).
("if_then_else"
{
?J math:equalTo 0.
}
{
("-2*log(_I)" ?I) e:calculate ?H.
}
{
("if_then_else"
{
?K math:equalTo 0.
}
{
("2*log(_I)" ?I) e:calculate ?H.
}
{
("log(_J)-log(_K)" ?J ?K) e:calculate ?H.
}
) e:derive true.
}
) e:derive true.
?SCOPE e:optional {
?J math:equalTo 0.
("-2*log(_I)" ?I) e:calculate ?H.
}, {
?K math:equalTo 0.
("2*log(_I)" ?I) e:calculate ?H.
}, {
?J math:notEqualTo 0.
?K math:notEqualTo 0.
("log(_J)-log(_K)" ?J ?K) e:calculate ?H.
}.
}
?Y
).
......@@ -44,15 +34,11 @@ PREFIX ccd: <http://josd.github.io/eye/reasoning/ccd#>
).
?L math:sum ?M.
?L math:memberCount ?N.
("if_then_else"
{
?N math:greaterThan 0.
}
{
("1/(1+(1/_B-1)*exp(-_M/_N))" ?B ?M ?N) e:calculate ?Z.
}
{
("_B" ?B) e:calculate ?Z.
}
) e:derive true.
?SCOPE e:optional {
?N math:greaterThan 0.
("1/(1+(1/_B-1)*exp(-_M/_N))" ?B ?M ?N) e:calculate ?Z.
}, {
?N math:notGreaterThan 0.
("_B" ?B) e:calculate ?Z.
}.
}.
#Processed by EYE v18.1230.1307 josd
#eye --nope --turtle http://josd.github.io/eye/reasoning/ccd/test_data.ttl --turtle http://josd.github.io/eye/reasoning/ccd/train_model.ttl --n3 http://josd.github.io/eye/reasoning/ccd/ccd_rules.n3 --query http://josd.github.io/eye/reasoning/ccd/test_query.n3
#eye --nope --turtle http://josd.github.io/eye/reasoning/ccd/test_data.ttl --turtle http://josd.github.io/eye/reasoning/ccd/train_model.ttl --n3 ccd_rules.n3 --query test_query.n3
PREFIX : <http://josd.github.io/eye/reasoning#>
PREFIX list: <http://www.w3.org/2000/10/swap/list#>
......@@ -12,6 +12,6 @@ _:t_1 :answer (:expected 0 :predicted 0 :belief 0.6101493074464512 :evidence ((:
_:t_2 :answer (:expected 1 :predicted 1 :belief 0.7238134704678372 :evidence ((:input1 "xyz" 0.6931471805599453) (:input2 40 2.1972245773362196) (:input5 "a" 0.0))).
_:t_3 :answer (:expected 0 :predicted 0 :belief 0.5857864376269049 :evidence ((:input3 (0 1) 0.0) (:input4 :v3 -0.6931471805599453))).
#2018-12-30T22:36:41.918Z in=35 out=4 ent=0 step=0 brake=1 inf=48165 sec=0.107 inf/sec=450140
#2019-01-01T16:40:53.965Z in=35 out=4 ent=0 step=0 brake=1 inf=48210 sec=0.097 inf/sec=497010
#ENDS
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment