A working example gather the different ptc in one file order them: function | ptc0 | ptc2 | ptc3 | ptc4 | ptc5 | ptc6 | ptc7 | ptc8 | ptc9 --------------------------------------------------- length | 30 | 3 | 30 | 30 | 3 | 3 | 3 | 3 | 3 tsRaw (ptc) | size: 10 | ---------------------------------------------------------------------------- length | 75 | 3 | 75 | 75 | 6 | 6 | 3 | 3 | 3 tsRaw (ptc) | size: 25 | ---------------------------------------------------------------------------- length | 90 | 3 | 90 | 90 | 9 | 9 | 3 | 3 | 3 tsRaw (ptc) | size: 30 | length | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 tsRaw (ptc) | size: 100 | ------------------------------------------------------------------------------ Write [li,li2..lin] *TheAtoBPlotter *> runKAXIOM ... *> write 'src/HtmlS/yourRun.html' -- colorize ptc buttons -- due to function: C.tsRAW :: (Eq a, Num t) => (t -> [a]) -> [[a]] C.tsRAW ::= take n points of f(ptc n)) -> -> lengt $ nub [[a]] -> -> if ==1 then turkies -- 0 - reduced -> if ==2 then green -- 1 -> if ==30 then red -- 2 -> else blue -- 3 ptc3 | ptc4 | ptc5 | ptc6 | ptc7 | ptc8 | ptc9 | a statistic significance test ----------------------------- network that can read a certain list of [String] example2 --------- There is the statistic probability of Steve being a farmer our an librarian. cd src/TheAToBPlotter.hs *>let li = ["person","Steve","shy","withdrawn","farmer"] *>let li2 = ["person","Steve","shy","withdrawn","librarian"] *>let li3 = [[li,li2]] *>let myTest at = runKBASE 2 ["1","2"] 1 2 at 2 (li3) 1 2 3 4 *> myTest "country" ptc0 ptc2 ptc3 ptc5 ptc6 ptc8 length 10 25 50 75 84 100 other plots M.writeWXCloudNODE (pop) (ptc2 5) (ptc3 5) (ptc4 5) (ptc5 5) (ptc6 5) M.writeWXCloudNODE (ptc3b 1) (ptc3b 2) (ptc3b 3) (ptc3b 4) (ptc3b 5) (ptc3b 6) M.writeWXCloudNODE (ptc3 2) (ptc3 4) (ptc3 6) (ptc3 8) (ptc3 10) (ptc3 20) -- nested graph ? M.writeWXCloudNODE (ptc2 5) (ptc2 25) (ptc2 50) (ptc4 100) (ptc4 125) (ptc4 150) -- ??? M.writeWXCloudNODE (ptc5 5) (ptc5 25) (ptc5 50) (ptc5 100) (ptc5 125) (ptc5 150) -- a plaine M.writeWXCloudNODE (ptc6 5) (ptc6 25) (ptc6 50) (ptc6 100) (ptc6 125) (ptc6 150) -- interesting M.writeWXCloudNODE (ptc7 5) (ptc7 25) (ptc7 50) (ptc7 100) (ptc7 125) (ptc7 150) -- half 'crown' M.writeWXCloudNODE (ptc8 5) (ptc8 25) (ptc8 50) (ptc8 100) (ptc8 125) (ptc8 150) -- similar to above -- change order in progVars now relates the last atom to the others in both lines I. li :: a b c d(n) II li2 :: a b c d(n) let mTest2 at = runKBASE 2 ["1","2"] 1 2 at 2 (li3) 1 2 3 5 *> mTest2 "country" +> mTest2 "city" Posterior: Due to Grant Sanderson: "Hypothesis given the evidence " Goal: P(H|E) Prior: "Prior" -> P(H) = 1/21 Bayes' theorem: ¬A (not A) P(H)P(E|H) P(H|E) = ------------------- P(H)P(E|H) + P(¬H)P(E|¬H) Experiment: *> let simiVals gb1 gb2 = similaritYvalue gb1 gb2 *> let foGb1 gb = map realToFrac (map ord gb ) *> let foGb2 gb = map realToFrac (map ord gb ) *> let simiVal gb1 fgb2 = similaritYvalue (foGb1 gb1) (foGb2 gb2) probability that the hypothesis works before any new evidence p s s s s s p s s s s s p s s s s s p s s s s s p s s s s s P(H) ----------------- given: li3 *>let li3 = [li,li3] [[["person","Steve","shy","withdrawn","farmer"], ["person","Steve","shy","withdrawn","librarian"]]] ratio1: progVar1 to progVar2 of li and progVar1 toprogVar3 of li2 as b ratio2: progVar3 to progVar5 of li and progVar3 to progVar5 of li2 as b searched: ratio1 *> let ratio1 = simiVal "person" "Steve" *> ratio1 21.71945701357466 ratio1 = ratio1b *> let ratio2 = simiVal "withdrawn" "farmer" *> ratio2 35.264227642276424 *> let ratio2b = simiVal "withdrawn" "librarian" *> ratio2b 3.658536585365854 how are the sets related to each other *> let ratio1To2 = simiVal (unwords(head(head li3))) (unwords(concat(last li3))) *> ratio1To2 52.49092229484387 similarity between "farmer" and librarian *> simiVal "farmer" "librarian" 32.80590717299578 which dimensionality has P(H|E) of li3 ? |xxxx| s s s s s s s s s |xxxx| s s s s s s s s s |----| s s s s s s s s s |pppp| s s s s s s s s s |pppp| k k k k k k k k k |pppp| k k k k k k k k k lengthx 'x' = 6 ; lengthx 'p' = 6 ; lengthx 's' = 9 ; lengthx 'k' = 9 lengthy 'x' = 2 ; lengthy 'p' = 2 ; lengthy 's' = 4 ; lengthy 'k' = 2 ; ptc3 maxes out at 50 points and will only yield [] > 50 now set to 100 via 'defSearch' with M.writeWXCloudNODE (nub(ptc3 2)) (nub(ptc3 3)) (nub(ptc3 5)) (nub(ptc3 19)) (nub(ptc3 25)) (nub(ptc3 50)) to be continued