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

Train deep networks #63

Merged
merged 38 commits into from
Jun 28, 2023
Merged

Train deep networks #63

merged 38 commits into from
Jun 28, 2023

Conversation

rouson
Copy link
Contributor

@rouson rouson commented Jun 23, 2023

This PR

  • Incorporates the training algorithm contributed by @davytorres,
  • Adds related unit tests for training a two-layer network to represent a digital AND gate,
  • Adds a program in the example/ subdirectory based on the new unit tests.
    To run the new example, execute
./setup.sh
./build/run-fpm.sh run --example train-and-gate

rouson added 23 commits June 10, 2023 21:37
This eliminates a segmentation fault caused by a mistaken assumption
 of the allocate-on-assignment for what was actually a fixed-size
left-hand-side array.
The current training algorithm has a hardwired architecture.
The next step is to generalize the code.
This starts the process of generalizing the new deep network training
algorithm by querying the passed-object dummy argument for the network
properties (num_inputs, neurons_per_layer, num_outputs) instead of
hardwiring the properties.
This commit
1. Continues the previous commit's pattern of using introspection
   on passed-object dummy argument in lieu of hardwired values.
2. Removes unnecessary real-kind conversions.
3. Minor house keeping to combine some declarations.
@rouson rouson requested a review from davytorres June 23, 2023 12:09
app/neural_network.f90 Outdated Show resolved Hide resolved
@rouson rouson merged commit 234d57f into main Jun 28, 2023
@rouson rouson deleted the merge-alternate-training branch June 28, 2023 07:24
@rouson rouson removed the request for review from davytorres June 28, 2023 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants