Skip to content

Instantly share code, notes, and snippets.

View Vaguery's full-sized avatar

Bill Tozier Vaguery

View GitHub Profile
@Vaguery
Vaguery / specter-exploration.clj
Last active March 3, 2017 18:09
Learning to use Specter 1.0 paths to edit trees
(ns specter-tests.core-test
(:use midje.sweet)
(:use [specter-tests.core]
[com.rpl.specter]))
(fact "I can run Midje tests in proto-REPL"
(+ 1 2) => 3)
(def deep-tree
[1 [2 3] [4 [ ] 5 [6 [7] 8] 9 [[[10 11] 12] 13]]]
@Vaguery
Vaguery / improved-but-crashing.csv
Last active July 31, 2016 14:33
multiobjective steady state search, y=x+6
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 21 columns, instead of 20 in line 3.
t,mseBaby,mse01,mse02,mse03,mse04,mse05,mse06,mse07,mse08,mse09,mse10,mse11,mse12,mse13,mse14,mse15,mse16,mse17,mse18,mse19
0, Infinity, Infinity, 86310.25642827815, Infinity, 87244.0647337767, 85924.87378699318, Infinity, Infinity, 2.237545196951416E269, 441114.53780626267, Infinity, 87244.0647337767, Infinity, Infinity, 6.287780297397244E8, Infinity, Infinity, Infinity, 4.665524109288783E168, 1.618936348145231E81
1, 24889.502285286708, 85924.87378699318, 86310.25642827815, 87244.0647337767, 87244.0647337767, 441114.53780626267, 6.287780297397244E8, 1.618936348145231E81, 4.665524109288783E168, 2.237545196951416E269, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity
2, 19058.464896153095, 24889.502285286708, 85924.87378699318, 86310.25642827815, 87244.0647337767, 87244.0647337767, 441114.53780626267, 6.287780297397244E8, 1.618936348145231E81, 4.665524109288783E168, 2.237545196951416E269, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infi
@Vaguery
Vaguery / best-machine-0.csv
Created July 31, 2016 12:20
watching the performance of the "best" RegisterMachine as we search
time mse failures
0 85179.45679824185 0
1 162574.21353638978 0
2 99322.72358010856 1
3 Infinity 3
4 2.0227820677760355E7 1
5 Infinity 1
6 25362.32275964421 0
7 25485.987174866958 0
8 25631.038165778496 0
@Vaguery
Vaguery / steady-state-faster.csv
Created July 31, 2016 12:13
Steady-state search for a RegisterMachine that does y=x+6
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 21 columns, instead of 8 in line 3.
0, Infinity, 89894.73875301656, 5.3013497204580646E268, 75543.86677372194, Infinity, 4.865487068556599E7, Infinity, Infinity, 2.999199500882597E7, Infinity, Infinity, Infinity, Infinity, Infinity, 470196.0145093498, 75823.8857791812, Infinity, Infinity, 76616.87493997157, 3.4311068274398816E8
1, 15811.807077703379, 75543.86677372194, 75823.8857791812, 76616.87493997157, 89894.73875301656, 470196.0145093498, 2.999199500882597E7, 4.865487068556599E7, 3.4311068274398816E8, 5.3013497204580646E268, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity
2, Infinity, 15811.807077703379, 75543.86677372194, 75823.8857791812, 76616.87493997157, 89894.73875301656, 470196.0145093498, 2.999199500882597E7, 4.865487068556599E7, 3.4311068274398816E8, 5.3013497204580646E268, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity
3, 36431.854945003375, 15811.807077703379, 75543.86677372194, 75823.8857791812, 76616.87493997157, 89894.73875301656, 4701
@Vaguery
Vaguery / small-pop.csv
Created July 31, 2016 12:02
steady-state-register-machines-0.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 21 columns, instead of 4 in line 3.
0, Infinity, Infinity, 4.4489542052486336E13, 127394.82781711007, 83910.25693849668, Infinity, 83909.53191227312, Infinity, 173481.43725320967, 454616.8666192076, 5.341935996726756E11, 5.768794583466152E58, 400791.86800922285, Infinity, Infinity, Infinity, 98712.66378275533, Infinity, 85425.15250720117, Infinity
1, 83848.92227179978, 83909.53191227312, 83910.25693849668, 85425.15250720117, 98712.66378275533, 127394.82781711007, 173481.43725320967, 400791.86800922285, 454616.8666192076, 5.341935996726756E11, 4.4489542052486336E13, 5.768794583466152E58, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity
2, 83871.91922414518, 83848.92227179978, 83909.53191227312, 83910.25693849668, 85425.15250720117, 98712.66378275533, 127394.82781711007, 173481.43725320967, 400791.86800922285, 454616.8666192076, 5.341935996726756E11, 4.4489542052486336E13, 5.768794583466152E58, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity
3, 84090.04524307555, 83848.92227179978, 83871.91922414
@Vaguery
Vaguery / everyTime.txt
Created July 27, 2016 15:29
GarageSale stack trace
Process: GarageSale [637]
Path: /Applications/GarageSale.app/Contents/MacOS/GarageSale
Identifier: com.iwascoding.garagesale7
Version: 7.0.2 (773)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: GarageSale [637]
User ID: 501
Date/Time: 2016-07-27 11:28:14.332 -0400
@Vaguery
Vaguery / epsilon-lexicase-just-lib.clj
Last active July 18, 2016 14:00
epsilon-lexicase selection in Clojure
(ns design-spikes.epsilon-lexicase
(:use midje.sweet))
(defn close-enough?
"Takes two numbers and a `delta`, and returns
true if the numbers are within a range `delta`
of one another."
[arg1 arg2 delta]
(<= (Math/abs (-' arg1 arg2)) delta))
@Vaguery
Vaguery / ashley-score-vectors.txt
Last active July 15, 2016 16:47
multiobjective scores for `Ashley` and `Bobbie`
(()
()
()
([899299959 439 0 3486])
([899299959 438 0 3486])
([899299959 437 0 3486])
([899299959 436 0 3486])
([899299959 435 0 3486])
([899299959 434 0 3486])
([899299959 433 0 3486])
@Vaguery
Vaguery / bobbie.txt
Created July 15, 2016 15:42
Trace of :scalar values from another Push program
()
()
()
(899300736)
(899300736)
(899300736)
(899300736)
(899300736)
(899300736)
(899300736)
@Vaguery
Vaguery / first-values.txt
Created July 15, 2016 12:10
Top :scalar value seen in each step of running a Push program in Klapaucius
???
???
899300736
899300736
899300736
899300736
899300736
899300736
899300736
802246192