Example of simple 1 layer Perception in Flux


#1

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.


#2

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


#3

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.


#4

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


#5

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


#6

Google found for example


#7

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.


#8

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


#9

Thank you so much!