Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Swawola committed May 15, 2019
1 parent 81b3879 commit d9ec421
Show file tree
Hide file tree
Showing 45 changed files with 4,019 additions and 26 deletions.
130 changes: 104 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1,114 @@
# History files
.Rhistory
.Rapp.history
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Session Data files
.RData
# C extensions
*.so

# Example code in package build process
*-Ex.R
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Output files from R CMD build
/*.tar.gz
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Output files from R CMD check
/*.Rcheck/
# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# RStudio files
.Rproj.user/
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# produced vignettes
vignettes/*.html
vignettes/*.pdf
# Translations
*.mo
*.pot

# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
.httr-oauth
# Django stuff:
*.log
local_settings.py
db.sqlite3

# knitr and R markdown default cache directories
/*_cache/
/cache/
# Flask stuff:
instance/
.webassets-cache

# Temporary files created by R markdown
*.utf8.md
*.knit.md
# Scrapy stuff:
.scrapy

# Shiny token, see https://shiny.rstudio.com/articles/shinyapps.html
rsconnect/
# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

# Data Folder
data/

*.RData
*.h5
logs/
fashion-mnist/
checkpoints/
history_workshop_1.csv
42 changes: 42 additions & 0 deletions 0_Installation.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
title: "Installation"
author: "Mikaël SWAWOLA"
date: "14/05/2019"
output: html_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

La procédure d'installation de TensorFlow et Keras varie considérablement d'un système d'exploitation à l'autre et d'un type de matériel à l'autre. Nous utiliserons pour l'atelier des machines virtuelles avec GPU préinstallées.

## Installation sur CPU

En premier lieu, installez le paquet 'devtools'.

Si l'installation échoue, assurez-vous d'avoir les libraries suivantes installées sur votre système d'exploitation:
* zlib1g-dev libssl-dev (package on e.g. Debian and Ubuntu)
* zlib-devel openssl-devel (package on e.g. Fedora, CentOS and RHEL)
* openssl (Homebrew package on OS X)
```{r}
install.packages("devtools")
```

Ensuite, installez les paquets R TensorFlow et Keras (dans cet ordre) à partir des dépot Github
```{r}
devtools::install_github("rstudio/tensorflow")
devtools::install_github("rstudio/keras")
```

L'interface Keras R utilise par défaut TensorFlow. Pour installer à la fois la bibliothèque Keras et TensorFlow, utilisez la fonction suivante:

```{r}
library(keras)
install_keras()
```

## Test de l'installation
```{r}
is_keras_available()
```
Loading

0 comments on commit d9ec421

Please sign in to comment.