summaryrefslogtreecommitdiff
path: root/src/genome/trial.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-11-16 14:50:00 -0600
committersanine <sanine.not@pm.me>2023-11-16 14:50:00 -0600
commitf9fc4d26ec5fca9ee175c8a6fbcdd0fa36f10947 (patch)
treef190e6e465bb563c608a916f41fc8bf686ea2897 /src/genome/trial.js
parent7825b92ce3be95a0ce1dfea9388adbaadce83b1f (diff)
clear out js files
Diffstat (limited to 'src/genome/trial.js')
-rw-r--r--src/genome/trial.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/genome/trial.js b/src/genome/trial.js
deleted file mode 100644
index 2ce23bf..0000000
--- a/src/genome/trial.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import {
- get_size,
- mut_genome_insert, mutate_genome,
-} from './genome.js';
-
-const recurse = (f, x0, n) => {
- if (n == 0) {
- return x0;
- } else {
- return f(recurse(f, x0, n-1));
- }
-};
-
-
-const n_input = 5;
-const n_output = 5;
-
-
-const [_1, _2, _3, genome] = recurse(
- s => mut_genome_insert(
- s, 4,
- Math.random(), Math.random(), Math.random()
- ),
- [n_input, 10, n_output, []],
- 20);
-
-
-const n_internal = get_size(n_input, n_output, genome) - n_input - n_output;
-console.log([n_input, n_internal, n_output, genome]);
-
-const mutation = recurse(
- s => mutate_genome(s, 4),
- [n_input, n_internal, n_output, genome],
- 40
-);
-
-console.log(mutation);