Open sentialx opened 6 months ago
Not yet but all we need to do is make SymbolicRegression.jl compatible with GenericOperatorEnum
– see https://github.com/SymbolicML/DynamicExpressions.jl?tab=readme-ov-file#tensors. Then the operators could do anything at all – even operations on non-numerical data.
Right now it is fixed to only use OperatorEnum
by this line: https://github.com/MilesCranmer/SymbolicRegression.jl/blob/71447ee7bee18fc836a7d7bb4c8ce5d249bc0e7c/src/Options.jl#L718-L722.
We would need to change that to allow the user to specify the AbstractOperatorEnum
type, and then basically fix up all the error messages that will show up. But I feel like it wouldn't be too bad.
(There are also n-ary operators planned which someone is working on, those could be useful here as well)
Feature Request
Is there a way to define a custom unary operator
getXAt
that takes an integeri
as a parameter and returnsX_i
? This could possibly allow creating a similar mechanism to attention.