# NLP in TensorFlow Week 4 Assignment

**URL:** <https://community.deeplearning.ai/t/nlp-in-tensorflow-week-4-assignment/672192>\
**Category:** Generative AI with Large Language Models\
**Tags:** week-module-4\
**Created:** [August 2, 2024, 10:09am UTC](https://community.deeplearning.ai/t/nlp-in-tensorflow-week-4-assignment/672192 "2024-08-02T10:09:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TANSU\_BAKTIRAN](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@TANSU\_BAKTIRAN](https://community.deeplearning.ai/u/TANSU_BAKTIRAN)\
**Post date:** [August 2, 2024, 10:09am UTC](https://community.deeplearning.ai/t/nlp-in-tensorflow-week-4-assignment/672192/1 "2024-08-02T10:09:50Z")

</div>

Dear Friends,

I have been working on my NLP with TensorFlow assignment and unfortunately could not manage an accuracy of 72%. Here is the structure of my function. I tried with more than 1 LSTM layers. Also played with LSTM unit numbers as well as embedding layer output dimension. Even tried a dropout layer. Here is my code. Any ideas to improve the model? :

`# mentor edit: code removed`

---

<div class="post-metadata">

**Author:** ![TANSU\_BAKTIRAN](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@TANSU\_BAKTIRAN](https://community.deeplearning.ai/u/TANSU_BAKTIRAN)\
**Post date:** [August 2, 2024, 2:39pm UTC](https://community.deeplearning.ai/t/nlp-in-tensorflow-week-4-assignment/672192/2 "2024-08-02T14:39:55Z")

</div>

Hello everyone. I just solved my own question. I think I should delete it from as it is somehow including the answer. I just modified/reduced my learning\_rate. Kind Regards. TB

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [August 2, 2024, 5:41pm UTC](https://community.deeplearning.ai/t/nlp-in-tensorflow-week-4-assignment/672192/3 "2024-08-02T17:41:29Z")

</div>

It’s great that you solved your own question.

In the future, please don’t share your code on the forum. That’s not allowed by the Code of Conduct. I’ll clean up the issue in this thread.

---

<div class="post-metadata">

**Author:** ![TANSU\_BAKTIRAN](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@TANSU\_BAKTIRAN](https://community.deeplearning.ai/u/TANSU_BAKTIRAN)\
**Post date:** [August 3, 2024, 8:00am UTC](https://community.deeplearning.ai/t/nlp-in-tensorflow-week-4-assignment/672192/4 "2024-08-03T08:00:22Z")

</div>

Thanks for your reply and your reminder TMosh. I will be careful about that in the future. Kind Regards. TB
