Skip to content

Commit

Permalink
added a1
Browse files Browse the repository at this point in the history
  • Loading branch information
Luvata committed Apr 27, 2021
1 parent 5d0c3ca commit 55455ae
Show file tree
Hide file tree
Showing 8 changed files with 1,811 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ misc/
lecture_slide/
data/
.pytest_cache/

*.py[cod]
*.npy
*.pickle
*.pickle
.DS_store
28 changes: 28 additions & 0 deletions CS224N-2021/a1/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Welcome to CS224N!

We'll be using Python throughout the course. If you've got a good Python setup already, great! But make sure that it is at least Python version 3.5. If not, the easiest thing to do is to make sure you have at least 3GB free on your computer and then to head over to (https://www.anaconda.com/download/) and install the Python 3 version of Anaconda. It will work on any operating system.

After you have installed conda, close any open terminals you might have. Then open a new terminal and run the following command:

# 1. Create an environment with dependencies specified in env.yml:

conda env create -f env.yml

# 2. Activate the new environment:

conda activate cs224n

# 3. Inside the new environment, instatll IPython kernel so we can use this environment in jupyter notebook:

python -m ipykernel install --user --name cs224n


# 4. Homework 1 (only) is a Jupyter Notebook. With the above done you should be able to get underway by typing:

jupyter notebook exploring_word_vectors.ipynb

# 5. To make sure we are using the right environment, go to the toolbar of exploring_word_vectors.ipynb, click on Kernel -> Change kernel, you should see and select cs224n in the drop-down menu.

# To deactivate an active environment, use

conda deactivate
14 changes: 14 additions & 0 deletions CS224N-2021/a1/env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: cs224n
channels:
- defaults
- anaconda
dependencies:
- jupyter
- matplotlib
- numpy
- python=3.7
- ipykernel
- scikit-learn
- nltk
- gensim

1,767 changes: 1,767 additions & 0 deletions CS224N-2021/a1/exploring_word_vectors.ipynb

Large diffs are not rendered by default.

Binary file added CS224N-2021/a1/imgs/inner_product.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CS224N-2021/a1/imgs/svd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CS224N-2021/a1/imgs/test_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CS224N-2021/raw/a1.zip
Binary file not shown.

0 comments on commit 55455ae

Please sign in to comment.