Spaces:
Running
Running
Update pages/1_TensorIntro.py
Browse files- pages/1_TensorIntro.py +4 -3
pages/1_TensorIntro.py
CHANGED
@@ -202,9 +202,9 @@ print("Normalized data:", normalized_data)
|
|
202 |
'''
|
203 |
},
|
204 |
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
import torch.nn as nn
|
209 |
import torch.optim as optim
|
210 |
from torchtext.datasets import IMDB
|
@@ -283,6 +283,7 @@ for epoch in range(N_EPOCHS):
|
|
283 |
optimizer.step()
|
284 |
|
285 |
print('Finished Training')
|
|
|
286 |
|
287 |
'''
|
288 |
},
|
|
|
202 |
'''
|
203 |
},
|
204 |
|
205 |
+
"Final Project: Sentiment Analysis with LSTM": {
|
206 |
+
"description": "In this project, you will build and train a simple Long Short-Term Memory (LSTM) network for sentiment analysis on a text dataset. This involves preprocessing text data, defining the LSTM model, and training the model to classify text as positive or negative sentiment.",
|
207 |
+
"code": '''import torch
|
208 |
import torch.nn as nn
|
209 |
import torch.optim as optim
|
210 |
from torchtext.datasets import IMDB
|
|
|
283 |
optimizer.step()
|
284 |
|
285 |
print('Finished Training')
|
286 |
+
|
287 |
|
288 |
'''
|
289 |
},
|