mirror of
https://github.com/ArthurDanjou/ml_exercises.git
synced 2026-01-25 17:30:30 +01:00
exercise notebooks + data
This commit is contained in:
78
test_installation.ipynb
Executable file
78
test_installation.ipynb
Executable file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# Test if installation was successful"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# check versions of the libraries\n",
|
||||
"# they should not be too much behind the ones in the comments...\n",
|
||||
"import numpy\n",
|
||||
"print(\"numpy\", numpy.__version__) # >= 1.18.5\n",
|
||||
"import pandas\n",
|
||||
"print(\"pandas\", pandas.__version__) # >= 1.2.1\n",
|
||||
"import scipy\n",
|
||||
"print(\"scipy\", scipy.__version__) # >= 1.4.1\n",
|
||||
"import sklearn\n",
|
||||
"print(\"sklearn\", sklearn.__version__) # >= 0.24.1\n",
|
||||
"import matplotlib\n",
|
||||
"print(\"matplotlib\", matplotlib.__version__) # >= 3.3.1\n",
|
||||
"import PIL\n",
|
||||
"print(\"pillow\", PIL.__version__) # >= 8.1.0\n",
|
||||
"import plotly\n",
|
||||
"print(\"plotly\", plotly.__version__) # >= 4.9.0\n",
|
||||
"print(\"Congratulations! Your installation of the basic libraries was successful!\")\n",
|
||||
"# the following libraries are needed for the neural network example \n",
|
||||
"# (if you're working with the recommended pytorch, not keras/tensorflow)\n",
|
||||
"# if you have a computer with a (CUDA-enabled Nvidia) GPU, checkout this site:\n",
|
||||
"# https://pytorch.org/get-started/locally/\n",
|
||||
"# to install the correct version that can utilize the capabilities of your GPU\n",
|
||||
"# (if you're working on a normal laptop and you don't know what GPU means,\n",
|
||||
"# don't worry about it and just execute `$ pip install torch torchvision skorch`)\n",
|
||||
"import torch\n",
|
||||
"print(\"torch\", torch.__version__) # >= 1.6.0\n",
|
||||
"import torchvision\n",
|
||||
"print(\"torchvision\", torchvision.__version__) # >= 0.8.1\n",
|
||||
"import skorch\n",
|
||||
"print(\"skorch\", skorch.__version__) # >= 0.9.0\n",
|
||||
"print(\"Congratulations! Your installation of the neural network libraries was successful!\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.8.5"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
Reference in New Issue
Block a user