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

Update crossover branch with new changes #19

Merged
merged 31 commits into from
Feb 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
9ed73ce
fix mutation to include negative numbers
HyperCodec Feb 12, 2024
75eb9ef
save on gh actions calls
HyperCodec Feb 12, 2024
479a361
update dep in Cargo.toml
HyperCodec Feb 13, 2024
f314ace
change function names
HyperCodec Feb 13, 2024
0325fb8
fix error with example
HyperCodec Feb 13, 2024
171736a
Merge pull request #11 from inflectrix/genetic-rs-update
HyperCodec Feb 13, 2024
4f74e87
fix addneuron and add removeneuron
HyperCodec Feb 14, 2024
e255eaf
add bias mutation
HyperCodec Feb 14, 2024
c9efe0e
implement activation function mutation
HyperCodec Feb 14, 2024
174313d
fix making ActivationFn sync
HyperCodec Feb 14, 2024
582edc0
cargo fmt
HyperCodec Feb 14, 2024
1f0bf3b
fix topology index error (runnable still an issue)
HyperCodec Feb 14, 2024
5fcfffb
restructure neuron deletion (and potentially fix)
HyperCodec Feb 16, 2024
8ea5fd7
fix index error
HyperCodec Feb 16, 2024
e821cfb
fix remaining subtraction/index errors
HyperCodec Feb 16, 2024
8dd5b68
fix is_connection_cyclic
HyperCodec Feb 20, 2024
7a8396a
cargo fmt
HyperCodec Feb 20, 2024
cf1dd51
Merge pull request #13 from inflectrix/8-more-mutations
HyperCodec Feb 20, 2024
23c7081
implement serde (untested)
HyperCodec Feb 22, 2024
bb4fe37
add docstrings
HyperCodec Feb 22, 2024
a4eba64
fix deser
HyperCodec Feb 22, 2024
34bf32d
fix clippy warnings
HyperCodec Feb 22, 2024
674ad6e
cargo fmt
HyperCodec Feb 22, 2024
0e07c57
Merge pull request #14 from inflectrix/serde
HyperCodec Feb 22, 2024
62e8876
add feature docs
HyperCodec Feb 22, 2024
c6eb622
Merge pull request #15 from inflectrix/12-feature-docs
HyperCodec Feb 22, 2024
e7f3eca
update version number
HyperCodec Feb 22, 2024
4f1a227
Merge pull request #3 from inflectrix/dev
HyperCodec Feb 22, 2024
1f905a1
add feature to README
HyperCodec Feb 22, 2024
3d06104
update version
HyperCodec Feb 22, 2024
3bcaa3c
Merge pull request #16 from inflectrix/dev
HyperCodec Feb 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix making ActivationFn sync
HyperCodec committed Feb 14, 2024
commit 174313d84eb18188056a3e1ffa9e225cc2b6f3aa
2 changes: 1 addition & 1 deletion src/runnable.rs
Original file line number Diff line number Diff line change
@@ -112,7 +112,7 @@ impl<const I: usize, const O: usize> NeuralNetwork<I, O> {

let mut nw = n.write().unwrap();
nw.state.value += val;
nw.sigmoid();
nw.activate();

nw.state.value
}
2 changes: 1 addition & 1 deletion src/topology.rs
Original file line number Diff line number Diff line change
@@ -308,7 +308,7 @@ impl CrossoverReproduction for NeuralNetworkTopology {
#[derive(Clone)]
pub struct ActivationFn {
/// The actual activation function.
pub func: Arc<dyn Fn(f32) -> f32 + Send + 'static>,
pub func: Arc<dyn Fn(f32) -> f32 + Send + Sync + 'static>,
name: String,
}