-
Notifications
You must be signed in to change notification settings - Fork 107
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
Neural network layers example #581
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I think that having both approaches is nice, it would be great to deduplicate the files a little bit. Maybe let's only keep one instance of the training loop?
' `minibatch * minibatches = batch` | ||
|
||
def split (x: batch=>v) : minibatches=>minibatch=>v = | ||
for b j. x.((ordinal (b,j))@batch) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might make sense to assert that minibatches * minibatch = batch
, because this function will happily throw away data.
|
||
def trace_map (f : inp -> out) (tracer : Layer ph inp) : Layer ph out = | ||
(AsLayer ps vs tracer') = tracer | ||
%instance vsHint = vs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we use those vector space constraints for?
No description provided.