Skip to content

INFR11133/lab2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Lab 2 setup

Following the feedback from lab 1, we have made some changes to the installation procedure.

You can now use either Anaconda version 2 or 3 to create virtual environments for Machine Translation lab work.

Importantly, we are aligning more closely to the setup of the MLP course. The MLP github page includes detailed instructions for setting up Anaconda and Jupyter notebooks. However, please note that the environment names, packages and the python versions used may differ.

Anaconda installation

Anaconda should be setup on your DICE machines if you followed along lab 1

If not installed, instructions are as follows:

Download Anaconda

Open a terminal on the DICE machine and then type the following command:

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh

Virtual Environment for lab 2

We will create a new environment for python 3 using conda. These commands will work with both Anaconda 2 and 3.

Create the environment and install packages by entering the command:

conda create --name mtenv python=3
source activate mtenv
conda install seaborn pandas jupyter matplotlib
pip install tqdm
pip install chainer
conda clean -t

Download the lab materials

git clone https://github.com/INFR11133/lab2.git
cd lab2

Start Jupyter notebook by entering the command:

jupyter notebook

Open the notebook char_language_model.ipynb

The datasets for this lab are:

data/mickiewicz.txt
data/tinyshakespeare.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •