Example of simple 1 layer Perception in Flux

I saw the Flux pages, but the examples are not clear to me.
Since Flux is simple and fast, would someone please post an example of how to make a simple 1 layer Perceptron using Flux?

Such an example would be a springboard to more complicated neural networks.

1 Like

Maybe look at this code and change the line that reads m = Chain( ... ) to only contain one layer ?

Use just simple Dense(m, n, foo), where foo is some activation function, m is the size of input, n is the size of output. By the way, if you want to dig deeper into Flux, I recommend Julia academy short course on Deep learning.

Thank you!
Do you happen to have a link to the short course you mentioned?

Thank you so much!
Do you happen to know if there is an example of doing a Deep Reinforcement Learning network in Flux?

Google found for example

Yes thank you.
I’ve seen that, but it’s not the same as as an example in Flux of a Deep Reinforcement Learning Network.

You can find it here: https://academy.juliabox.com/
Also there was a topic about Julia academy on Discourse.

Thank you so much!