--- title: 'Artificial Neural Networks Environment Setup' tags: codata-rda, sords --- # Commands to Run in a Terminal: Just a reminder: **<span style="color:red"> this should be executed inside a terminal </span>** ![](https://i.imgur.com/85GiNk9.png) The first commands will install R libraries that we will be using throughout the course. ```bash= sudo apt install r-cran-caret python3-pip ``` The libraries also depend on python libraries, thus we also need to install them. In order to do so, we should run the following command: ```bash= pip install --user tensorflow scipy matplotlib scikit-learn Pillow ``` # Commands to run in the R Console: Just a reminder: **<span style="color:red"> this should be executed inside the R command line (console) </span>** ![](https://i.imgur.com/uLbQEQi.png) We will use the [Keras](https://keras.rstudio.com/) package for R, then we need to install it: ```R= install.packages("keras") ``` # Check if the environment was correctly setup: Type the following commands at the console (it is better to do it line by line): ```R= library(caret) library(keras) keras_model_sequential() ``` The expected output should look like this: ![](https://i.imgur.com/To8N8dK.png) # Slides: The slides are available at [this link](https://raphaelmcobe.github.io/datatrieste/) and the source code used for this is available at [this repository](https://github.com/raphaelmcobe/datatrieste). You are more than welcome to reuse them as long as you mention where you've found them. (-: