Skip to content
Snippets Groups Projects
Commit 369c46cb authored by Jean-Luc Parouty's avatar Jean-Luc Parouty
Browse files

Merge branch 'dev' of gricad-gitlab.univ-grenoble-alpes.fr:talks/fidle into dev

parents 1aa091bd eb75d0f1
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@ Bash script for an OAR batch submission of an ipython code
- **[GTSRB11](GTSRB/batch_slurm.sh)** - [SLURM batch script](GTSRB/batch_slurm.sh)
Bash script for a Slurm batch submission of an ipython code
### Sentiment analysis with word embeddin
### Sentiment analysis with word embedding
- **[IMDB1](IMDB/01-One-hot-encoding.ipynb)** - [Sentiment analysis with hot-one encoding](IMDB/01-One-hot-encoding.ipynb)
A basic example of sentiment analysis with sparse encoding, using a dataset from Internet Movie Database (IMDB)
- **[IMDB2](IMDB/02-Keras-embedding.ipynb)** - [Sentiment analysis with text embedding](IMDB/02-Keras-embedding.ipynb)
......
......@@ -3,6 +3,7 @@
##
import tensorflow as tf
import torch
import sys, os
# Check data set is found
......@@ -16,5 +17,12 @@ print("FIDLE_DATASETS_DIR = ", os.path.expanduser(datasets_dir))
print("Python version = {}.{}".format(sys.version_info[0], sys.version_info[1]))
# Check tensorflow version
print("Tensorflow version = ", tf.__version__)
# Obsolete command
#print("Tensorflow GPU/CUDA available = ", tf.test.is_gpu_available())
print("Tensorflow GPU/CUDA available = ", "true" if len(tf.config.list_physical_devices('GPU')) else "False")
# Chech Pytorch version
print("Pytorch version = ", torch.__version__)
print("Pytorch GPU/CUDA available = ", torch.cuda.is_available())
sys.exit(0)
#
#
ARG PYTHON_VERSION=3.8
ARG PYTHON_VERSION=3.7
ARG docker_image_base=python:${PYTHON_VERSION}-slim
FROM ${docker_image_base}
LABEL maintainer=soraya.arias@inria.fr
# Ensure a sane environment
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris LANG=C.UTF-8 LC_ALL=C.UTF-8 DEBIAN_FRONTEND=noninteractive
RUN apt update --fix-missing && \
apt install -y apt-utils \
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt update --fix-missing && \
apt install -y --no-install-recommends apt-utils &&\
apt install -y wget curl git \
python3-venv python3-pip && \
apt -y dist-upgrade && \
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
apt install -y nodejs && \
apt clean && \
rm -fr /var/lib/apt/lists/*
......@@ -36,12 +40,13 @@ RUN mkdir /notebooks/ && \
#git clone https://gricad-gitlab.univ-grenoble-alpes.fr/talks/fidle.git
# Add Jupyter configuration (no browser, listen all interfaces, ...)
#COPY jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py
COPY jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py
COPY notebook.json /root/.jupyter/nbconfig/notebook.json
# Jupyter notebook uses 8888
EXPOSE 8888
# Tensor board uses 6006
EXPOSE 6006
VOLUME /notebooks
WORKDIR /notebooks
......@@ -56,5 +61,4 @@ ENV SHELL=/bin/bash
ENV FIDLE_DATASETS_DIR=/data/datasets-fidle
# Run a notebook by default
#CMD ["jupyter", "notebook", "--port=8888", "--ip=*", "--allow-root", "--notebook-dir=/notebooks/fidle-master", "--no-browser"]
CMD ["jupyter", "lab"]
......@@ -902,6 +902,7 @@ c.ServerApp.quit_button = True
# Default: ''
c.ServerApp.root_dir = '/notebooks/fidle-master'
## The session manager class to use.
# Default: 'jupyter_server.services.sessions.sessionmanager.SessionManager'
# c.ServerApp.session_manager_class = 'jupyter_server.services.sessions.sessionmanager.SessionManager'
......
# Configuration file for jupyter-notebook.
#------------------------------------------------------------------------------
# Application(SingletonConfigurable) configuration
#------------------------------------------------------------------------------
## Set the log level by value or name.
c.Application.log_level = 'INFO'
#------------------------------------------------------------------------------
# NotebookApp(JupyterApp) configuration
#------------------------------------------------------------------------------
## The IP address the notebook server will listen on.
c.NotebookApp.ip = '*'
# Password to access the server
c.Notebook.password = ''
c.Notebook.allow_password_change = False
## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = '/notebooks/fidle'
## Whether to open in a browser after starting. The specific browser used is
# platform dependent and determined by the python standard library `webbrowser`
# module, unless it is overridden using the --browser (NotebookApp.browser)
# configuration option.
c.NotebookApp.open_browser = True
## The port the notebook server will listen on.
c.Notebook.port = 8888
## Allow running as root
c.Notebook.allow_root = True
## Disable the "Quit" button on the Web UI (shuts down the server)
c.NotebookApp.quit_button = False
......@@ -5,4 +5,7 @@ Matplotlib
Pandas
Pandoc
pyyaml
torch
torchvision
torchaudio
Jupyterlab
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment