# A neural network architecture built from scratch doesn't seem to work!

**URL:** <https://dlai.staged-by-discourse.com/t/a-neural-network-architecture-built-from-scratch-doesnt-seem-to-work/399817>\
**Category:** Neural Networks and Deep Learning\
**Tags:** coursera-platform\
**Created:** [July 28, 2023, 7:00am UTC](https://dlai.staged-by-discourse.com/t/a-neural-network-architecture-built-from-scratch-doesnt-seem-to-work/399817 "2023-07-28T07:00:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rhythm\_Dutta](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/rhythm_dutta/32/149254_2.png) [@Rhythm\_Dutta](https://dlai.staged-by-discourse.com/u/Rhythm_Dutta)\
**Post date:** [July 28, 2023, 7:00am UTC](https://dlai.staged-by-discourse.com/t/a-neural-network-architecture-built-from-scratch-doesnt-seem-to-work/399817/1 "2023-07-28T07:00:04Z")

</div>

Using all the knowledge gained from the first course “ **Neural Networks and Deep Learning** ”, I tried to construct a neural network architecture from scratch in Google Colab. But it **didn’t work at all**. I tried to use the same cats classifier dataset to train the model. But the cost remains unchanged after every iteration. What’s more surprising is that, even after copying the entire code in Google Colab and Kaggle from the lab, and using the same dataset, the code still performs horribly. But as it turns out, in the lab, it performs fine. Why so? Can the same code perform differently in different platforms?

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/gent.spah/32/136423_2.png) [@gent.spah](https://dlai.staged-by-discourse.com/u/gent.spah)\
**Post date:** [July 28, 2023, 7:26am UTC](https://dlai.staged-by-discourse.com/t/a-neural-network-architecture-built-from-scratch-doesnt-seem-to-work/399817/2 "2023-07-28T07:26:45Z")

</div>

Normally speaking, not unless there are libraries and functions used specifically in one environment and not used in the other.

---

<div class="post-metadata">

**Author:** ![saifkhanengr](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/saifkhanengr/32/152858_2.png) [@saifkhanengr](https://dlai.staged-by-discourse.com/u/saifkhanengr)\
**Post date:** [July 28, 2023, 4:00pm UTC](https://dlai.staged-by-discourse.com/t/a-neural-network-architecture-built-from-scratch-doesnt-seem-to-work/399817/3 "2023-07-28T16:00:30Z")

</div>

Instead of copying all your code to Colab, why not upload all the files to Colab and replicate the assignment? Check [this](http://dlai.staged-by-discourse.com/t/coding-environment/290232/5) guide on how to do this. You will get the same results as in the assignment.
