brysgo / thoughtnet

Horizontally scalable p2p AI runtime (IN PROGRESS)
http://www.brysgo.com/thoughtnet
MIT License
8 stars 2 forks source link

Pattern reuse in function generation #2

Open brysgo opened 7 years ago

brysgo commented 7 years ago

If a function is generated for a certain set of inputs, it may also apply to another set of inputs, or it could apply more generally to another set of nodes.

I'm thinking of adding another node type that represents a higher level function. I would create a pool of these nodes and randomly use them in the spawn step on the main node pool.

(I know I'm just talking to myself, but I figured I would think out loud incase someone wanted to catch up)

This would require a refactor of the node abstract class to support more than two inputs.

brysgo commented 7 years ago

I think there is a better way to do this, I just need to think about it more.

I'm now thinking more along the lines of making spawning of nodes pseudo random and influencing it with past successful patterns.

The only reason I don't just share the whole node pool is because while it is target invariant the input is fixed. So alternatively, if there is a way to make the node pool input agnostic there wouldn't be a need for a shared pattern library.