This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
done = False | |
while len(homes) > 0 and not done: | |
n_iter += 1 | |
home = homes.pop(-1) | |
comps = get_comps(home.zpid) | |
for comp in comps: | |
if comp.zpid not in all_nodes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
# create and activate environment | |
virtualenv pandas_like_ml | |
source pandas_like_ml/bin/activate | |
# install your desired libraries | |
pip install --upgrade pip | |
pip install scikit-learn==0.21.1 | |
pip install pandas==0.19.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
# create and activate environment | |
virtualenv pandas_like_ml | |
source pandas_like_ml/bin/activate | |
# install your desired libraries | |
pip install --upgrade pip | |
pip install scikit-learn==0.21.1 | |
pip install pandas==0.19.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
# create and activate environment | |
virtualenv pandas_like_ml | |
source pandas_like_ml/bin/activate | |
# install your desired libraries | |
pip install --upgrade pip | |
pip install scikit-learn==0.21.1 | |
pip install pandas==0.19.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
# create and activate environment | |
virtualenv pandas_like_ml | |
source pandas_like_ml/bin/activate | |
# install your desired libraries | |
pip install --upgrade pip | |
pip install scikit-learn==0.21.1 | |
pip install pandas==0.19.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
# create and activate environment | |
virtualenv pandas_like_ml | |
source pandas_like_ml/bin/activate | |
# install your desired libraries | |
pip install --upgrade pip | |
pip install scikit-learn==0.21.1 | |
pip install pandas==0.19.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
# you can specify a base image as a foundation to build on | |
FROM ubuntu:16.04 | |
# make a partition, and specify the working directory | |
VOLUME /opt | |
WORKDIR /opt | |
# install some base system packages | |
RUN apt-get update && apt-get install -y \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
docker build \ | |
-t my_first_container \ | |
-f Dockerfile | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
docker run \ | |
--rm \ | |
-it \ | |
my_first_container | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
docker run \ | |
--mount type=bind,source="$(pwd)",target=/opt \ | |
--mount type=bind,source=${CORPORA_DIR},target=/corpora \ | |
-p ${JUPYTER_PORT}:${JUPYTER_PORT} \ | |
-ti \ | |
--rm \ | |
my_advanced_container \ | |
jupyter-lab \ | |
--allow-root \ |