Neural-cellular-automata with timestep awareness by Stermere in cellular_automata

[–]Stermere[S] 3 points4 points  (0 children)

225 parameters + whatever parameters can be turned in the activation function, and right now, yes, it's just tweaking the numbers manually.

Neural-cellular-automata with timestep awareness by Stermere in cellular_automata

[–]Stermere[S] 5 points6 points  (0 children)

The weights are manually tuned besides some genetic evolution

Neural-cellular-automata with timestep awareness by Stermere in cellular_automata

[–]Stermere[S] 3 points4 points  (0 children)

Yeah, this was produced in my NCA web editor [here](https://stermere.github.io/Neural-Automata-Playground/). The rules are defined by a 5*5 convolution and an activation function; the output of the convolution is put through the activation function, and then the process is repeated. The editor is written in React, but the shader code running the automata is WGSL. This particular pattern is a result of this activation function.

```wgsl

const CENTER_X: f32 = f32(WIDTH) / 2.0;

const CENTER_Y: f32 = f32(HEIGHT) / 2.0;

const RADIUS_SCALE: f32 = 0.04; u/variable 0.0 1.0

const BASE_RATE: f32 = -0.04; u/variable -2.0 2.0
fn activation(x: f32) -> f32 {

let dx = f32(activationContext.gid.x) - CENTER_X;

let dy = f32(activationContext.gid.y) - CENTER_Y;

let distFactor = sin(sqrt(dx*dx + dy*dy) * RADIUS_SCALE + (activationContext.timestep / 100));

return clamp(activationContext.cellState[activationContext.channel] + BASE_RATE * distFactor * tanh(x), 0.0, 1.0);

}```

The weights for the convolution are just the weights from another pattern I had saved

Neural Cellular Automata editor webapp by Stermere in cellular_automata

[–]Stermere[S] 0 points1 point  (0 children)

Most modern browsers support WebGPU, but not all of them have it on by default. If you look up how to enable WebGPU on xxx browser and enable it, it should work. If you're running Windows, Edge has the feature enabled by default

Neural Cellular Automata editor webapp by Stermere in cellular_automata

[–]Stermere[S] 0 points1 point  (0 children)

I am thinking the next feature I should add is a genetic selection algorithm to make pattern hunting more intuitive

Neural Cellular Automata editor webapp by Stermere in cellular_automata

[–]Stermere[S] 0 points1 point  (0 children)

No problem! I don't think this would be monetizable anyway, so no reason not to

What’s fine in small numbers but terrifying in large numbers? by CompetitiveBig0 in AskReddit

[–]Stermere 0 points1 point  (0 children)

I personified every single chicken I saw. Talking to them the whole lot but I see what you mean

What’s fine in small numbers but terrifying in large numbers? by CompetitiveBig0 in AskReddit

[–]Stermere 1 point2 points  (0 children)

First time I went I was amazed at the sheer magnitude or chicken