# Simple neuron & backpropagation

**URL:** https://discourse.julialang.org/t/simple-neuron-backpropagation/114896
**Category:** New to Julia
**Tags:** question
**Created:** [May 29, 2024, 6:38am UTC](https://discourse.julialang.org/t/simple-neuron-backpropagation/114896 "2024-05-29T06:38:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![younes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/younes/32/208506_2.png) [@younes](https://discourse.julialang.org/u/younes)
#### Post date: [May 29, 2024, 6:38am UTC](https://discourse.julialang.org/t/simple-neuron-backpropagation/114896/1 "2024-05-29T06:38:16Z")

</div>

Hello,

I’m relatively new to Julia and decided to calculate the output of a neuron given specific inputs, weights, and bias using two methods: “manually” and with Flux.jl. You can check out my Pluto.jl notebook here: [Binder](https://binder.plutojl.org/v0.19.36/open?url=https%253A%252F%252Fgist.githubusercontent.com%252Fyounes-io%252Fefb4fc3c5cd1c0e054fdd2f4cf8f5f38%252Fraw%252F4bbcf2c24570f9d3d5ea7aa1282ac91cfd1201d4%252Fbackpropagation_neuron.jl)

The purpose is to understand how backpropagation works, so I would appreciate your comments, critiques, remarks, etc.

I used this material as a guide and wrote my version (Binder link above) in Julia: [nn-zero-to-hero/lectures/micrograd/micrograd\_lecture\_second\_half\_roughly.ipynb at master · karpathy/nn-zero-to-hero · GitHub](https://github.com/karpathy/nn-zero-to-hero/blob/master/lectures/micrograd/micrograd_lecture_second_half_roughly.ipynb)

Thanks!
