Skip to content

Commit 53f21e9

Browse files
authored
Merge pull request #66 from HyperCodec/activation-fixes
fix custom activation example
2 parents 707c3e0 + a32bfff commit 53f21e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/custom_activation.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ fn serde_nextgen(rewards: Vec<(AgentDNA, f32)>) -> Vec<AgentDNA> {
6060
}
6161

6262
fn main() {
63-
let log_activation = activation_fn!(f32::log10);
64-
register_activation(log_activation);
63+
let sin_activation = activation_fn!(f32::sin);
64+
register_activation(sin_activation);
6565

6666
#[cfg(not(feature = "rayon"))]
6767
let mut rng = rand::thread_rng();

0 commit comments

Comments
 (0)