I'm trying to make a custom operator function for the Op enum in the radiate crate for genetic programming but I can't. Can someone give me some example for that?
I'm trying to implement for example like this:
struct sqrtplusone;
impl operation for sqrtplusone
{
}
But I can't find any trait similar as operation to customize it and also I don't know what to specified after it.
in this example they're using their predefine operator at
let store = vec![
(NodeType::Vertex, vec![Op::add(), Op::sub(), Op::mul(),Op::pow()]),
(NodeType::Leaf, vec![Op::var(0)]),
];
link to example i want to specifine
and i trying to using my custom operator, not in their scope of predefine operations
I'm trying to write a program for discorver an equation for the logic of robot, I found that using a whole neural network is infesible in such a small chip so I'm trying to turn it into an algorithm
Openum" in this crate.radiate_gpcrate. Anyway, it seems likeOp::Fnwill let you specify any function you want.