Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numexpr layer #21

Open
jacobpennington opened this issue Sep 17, 2022 · 0 comments
Open

numexpr layer #21

jacobpennington opened this issue Sep 17, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jacobpennington
Copy link
Collaborator

Similar to NumPy Layer class, it could be useful to have a NumExpr Layer class, along the lines of:

   ne_layer = NumericalExpression(parameters=['a', 'b', 'c'], expression='a*_x1 + b*_x2 + c*_x3')
   out = ne_layer.evaluate(input, another_input, state)

which would set fittable parameters named a, b, c under the hood and parse an arbitrary number of inputs into the incremented _x1, _x2, and _x3 variables. Benefit would be to easily implement simple models without needing to mess with building new Layer subclasses.

Details to figure out: specifying parameter shapes. Maybe parameters = {'a': (1,), 'b': (3,4), 'c': (1,2,3)} ?

@jacobpennington jacobpennington added the enhancement New feature or request label Sep 17, 2022
@jacobpennington jacobpennington self-assigned this Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant