Conversation
write more tests
plotters example
Fix references to renamed account.
Add indicatif progress bars for examples and increase generation count.
Prevent duplicated neuron inputs
create custom activations example
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 15 out of 17 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (2)
src/activation.rs:88
ActivationRegistry::activations_in_scopeusesa.scope.contains(scope)without handlingscope == NeuronScope::NONE. Because every bitflags value containsNONE(0 bits), callingactivations_in_scope(NeuronScope::NONE)will currently return all activations, contradicting the documented meaning ofNONE(“will not be randomly placed anywhere”).
Fix: explicitly return an empty vec for scope == NeuronScope::NONE, or add a guard in the filter (e.g., scope != NONE && a.scope != NONE && a.scope.contains(scope)).
src/activation.rs:206
ActivationFndeserialization panics when an activation name is missing (panic!("Activation function {name} not found")). Panicking insideDeserializemakes malformed/untrusted input able to crash consumers; serde expects this to return aD::Errorinstead.
Fix: replace the panic with Err(serde::de::Error::custom(...)) (and avoid unwrap() by using ok_or_else).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot open a new pull request to apply changes based on the comments in this thread |
|
@HyperCodec I've opened a new pull request, #110, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: HyperCodec <72839119+HyperCodec@users.noreply.github.com>
…on panic Co-authored-by: HyperCodec <72839119+HyperCodec@users.noreply.github.com>
Fix ActivationRegistry scope handling and ActivationFn deserialization panic
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 15 out of 17 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
src/activation.rs:29
activation_fn!passesstringify!($F).into()as the activation name, butActivationFn::newtakesname: &'static str. This will not compile (it produces aString). Usestringify!($F)directly (and similarly for the scoped macro arm).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
ok my codespace randomly deleted itself for no reason. |
|
@copilot the crossover test seems to always fail due to cyclic linkages. this may be related to the recent changes to the |
|
@HyperCodec I've opened a new pull request, #111, to work on those changes. Once the pull request is ready, I'll request review from you. |
No description provided.