# Creating some neural networks

**URL:** <https://discourse.julialang.org/t/creating-some-neural-networks/50958>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 29, 2020, 8:18pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958 "2020-11-29T20:18:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomas\_Berky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_berky/32/19540_2.png) [@Tomas\_Berky](https://discourse.julialang.org/u/Tomas_Berky)\
**Post date:** [November 29, 2020, 8:18pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/1 "2020-11-29T20:18:59Z")

</div>

Hello guys,

i am getting really desperate. For my bachelor thesis i need to create simple MLP classifying anything, simple MLP for MNIST, simple CNN for MNIST and simple LSTM/GRU network. I am really close to deadline and clueless, can you guys reffer me to some super tutorials for these networks, or even help me?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [November 29, 2020, 8:39pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/2 "2020-11-29T20:39:00Z")

</div>

Do you need to _use_ existing algorithms to do the classification, or _implement_ your owns?

---

<div class="post-metadata">

**Author:** ![Tomas\_Berky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_berky/32/19540_2.png) [@Tomas\_Berky](https://discourse.julialang.org/u/Tomas_Berky)\
**Post date:** [November 29, 2020, 9:05pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/3 "2020-11-29T21:05:13Z")

</div>

Existing algorithms would do just fine 🙂

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [November 29, 2020, 10:39pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/4 "2020-11-29T22:39:52Z")

</div>

there is a zoo. search for flux zoo and you will find examples for the MNIST you mentioned.

also can DM me if you need some private tutoring.

---

<div class="post-metadata">

**Author:** ![Tomas\_Berky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_berky/32/19540_2.png) [@Tomas\_Berky](https://discourse.julialang.org/u/Tomas_Berky)\
**Post date:** [December 1, 2020, 6:19pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/5 "2020-12-01T18:19:05Z")

</div>

Yeah i know MODEL.ZOO but it is still pretty confusing for me…is there somewhere just simple MLP with some detialed commentary?

---

<div class="post-metadata">

**Author:** ![ToucheSir](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/touchesir/32/14411_2.png) [@ToucheSir](https://discourse.julialang.org/u/ToucheSir)\
**Post date:** [December 1, 2020, 6:56pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/6 "2020-12-01T18:56:30Z")

</div>

I think you’re going to have to be a more specific about your background and what you understand about NNs/working with NNs. If you’re comfortable creating simple MLPs/CNNs/RNNs in something like Keras (or even PyTorch), then by all means post a small sample of what you want to run in Python and we can give you some tips for porting it.

However, if you’re struggling with the concepts and how to implement them in _any_ language, trying to learn Julia + ML libraries at the same time is very much “running before you can walk”. Since you mentioned doing a bachelor’s thesis, there are a few avenues you could try:

1. Consult your advisor and fellow students about this. NNs are so ubiquitous that there is almost guaranteed to be someone with a decent amount of experience that can guide you to make a simple model with any language. Once that’s done, see my first paragraph above about porting it _if you still have time_.
2. If there are no human resources available, the top deep learning frameworks have great introductory tutorials with detailed commentary on all different kinds of networks. Most you can even copy-and-paste directly to tweak a few things (even better if they provide a runnable notebook).
3. Once you’ve gone through with 1) or 2), you can revisit the [model zoo tutorials](https://github.com/FluxML/model-zoo/tree/master/tutorials). The [60 minute blitz](https://github.com/FluxML/model-zoo/blob/master/tutorials/60-minute-blitz.jl) in particular tries to match the PyTorch version. It can be run directly as a script, contains lots of commentary on each step and assumes very little prior knowledge of Flux or Julia.

---

<div class="post-metadata">

**Author:** ![Pbellive](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pbellive/32/3604_2.png) [@Pbellive](https://discourse.julialang.org/u/Pbellive)\
**Post date:** [December 1, 2020, 6:59pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/7 "2020-12-01T18:59:56Z")

</div>

Another question: Are you required to use julia for this project? I’m a big fan of julia in general and I think Flux with CUDA.jl is a really nice way to experiment with new neural network architectures. I also think julia has great promise as a production environment for tough deep learning problems. The whole SciML ecosystem is really cool.

But having said all that, if you’re under time pressure and you just need to run a simple multi-layer perceptron classifier, I would consider doing it in Python with PyTorch. Your final code likely won’t be that much simpler than it would be in julia but you’ll find a lot more tutorials that will really break down the code step by step. And you’ll find more code snippets that just work out of the box.

---

<div class="post-metadata">

**Author:** ![Tomas\_Berky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_berky/32/19540_2.png) [@Tomas\_Berky](https://discourse.julialang.org/u/Tomas_Berky)\
**Post date:** [December 2, 2020, 8:08am UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/8 "2020-12-02T08:08:58Z")

</div>

Unfortunately it has to be Julia with Flux. I have like 8 days left, so maybe i could handle it…

---

<div class="post-metadata">

**Author:** ![Jeff\_Emanuel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeff_emanuel/32/15440_2.png) [@Jeff\_Emanuel](https://discourse.julialang.org/u/Jeff_Emanuel)\
**Post date:** [December 2, 2020, 5:15pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/9 "2020-12-02T17:15:40Z")

</div>

Eight days should be plenty of time. FWIW, I recently started from ground zero and built a useful classifier with Flux in less than a day. I worked from the iris example in the model zoo.

---

<div class="post-metadata">

**Author:** ![forestacorn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/forestacorn/32/19260_2.png) [@forestacorn](https://discourse.julialang.org/u/forestacorn)\
**Post date:** [December 2, 2020, 5:41pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/10 "2020-12-02T17:41:03Z")

</div>

I am wondering if the Flux tutorial on [JuliaAcademy](https://juliaacademy.com/) may be of some help to you?

---

<div class="post-metadata">

**Author:** ![anon92994695](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Post date:** [December 2, 2020, 6:16pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/11 "2020-12-02T18:16:49Z")

</div>

Read the Flux documentation. They walk you through all of this. 8 days is a lot of time 🙂

---

<div class="post-metadata">

**Author:** ![Tomas\_Berky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_berky/32/19540_2.png) [@Tomas\_Berky](https://discourse.julialang.org/u/Tomas_Berky)\
**Post date:** [December 8, 2020, 8:36pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958/12 "2020-12-08T20:36:50Z")

</div>

Hello guys,

i took holiday in work this week to make my thesis as good as possible till thursday. I did watch some videos and read some notebook on julia academy and I think i was already pretty successful with MLP and MLP for MNIST. I am working now on CNN (i think i will get that done too), but i did not find anything useful yet for LSTM/GRU. I dont understand it very well from model zoo. Can you guys help me one more time to find something on LSTM/GRU?
