Skip to content

Commit

Permalink
clean notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
anas-rz committed Dec 7, 2023
1 parent 912b479 commit cb924b2
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 180 deletions.
47 changes: 7 additions & 40 deletions spinups/spin_up_the_simplest.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,14 @@
"metadata": {},
"outputs": [],
"source": [
"!git clone https://github.com/anas-rz/k3im.git"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"os.environ['KERAS_BACKEND'] = 'torch'"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"id": "NOZYc1_yDiEK"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/bin/bash: /home/anas/miniconda3/envs/keras_core/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n",
"Keras version: 3.0.0\n"
]
}
],
"source": [
"!pip install keras -qq --upgrade"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"!pip install keras medmnist -qq --upgrade\n",
"!git clone https://github.com/anas-rz/k3im.git\n",
"\n",
"import sys\n",
"sys.path.append('/content/k3im')"
"import os\n",
"\n",
"sys.path.append('/content/k3im')\n",
"os.environ['KERAS_BACKEND'] = 'jax'"
]
},
{
Expand Down
71 changes: 6 additions & 65 deletions spinups/spin_up_the_simplest_1d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,75 +6,16 @@
"metadata": {},
"outputs": [],
"source": [
"!git clone https://github.com/anas-rz/k3im.git"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"!pip install keras --upgrade\n",
"!git clone https://github.com/anas-rz/k3im.git\n",
"\n",
"import sys\n",
"import os\n",
"\n",
"sys.path.append('/content/k3im')\n",
"os.environ['KERAS_BACKEND'] = 'jax'"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"id": "NOZYc1_yDiEK"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/bin/bash: /home/anas/miniconda3/envs/keras_core/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n",
"Requirement already satisfied: keras in /home/anas/miniconda3/envs/keras_core/lib/python3.11/site-packages (3.0.0)\n",
"Requirement already satisfied: absl-py in /home/anas/miniconda3/envs/keras_core/lib/python3.11/site-packages (from keras) (1.4.0)\n",
"Requirement already satisfied: numpy in /home/anas/miniconda3/envs/keras_core/lib/python3.11/site-packages (from keras) (1.24.3)\n",
"Requirement already satisfied: rich in /home/anas/miniconda3/envs/keras_core/lib/python3.11/site-packages (from keras) (13.4.2)\n",
"Requirement already satisfied: namex in /home/anas/miniconda3/envs/keras_core/lib/python3.11/site-packages (from keras) (0.0.7)\n",
"Requirement already satisfied: h5py in /home/anas/miniconda3/envs/keras_core/lib/python3.11/site-packages (from keras) (3.9.0)\n",
"Requirement already satisfied: dm-tree in /home/anas/miniconda3/envs/keras_core/lib/python3.11/site-packages (from keras) (0.1.8)\n",
"Requirement already satisfied: markdown-it-py>=2.2.0 in /home/anas/miniconda3/envs/keras_core/lib/python3.11/site-packages (from rich->keras) (3.0.0)\n",
"Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /home/anas/miniconda3/envs/keras_core/lib/python3.11/site-packages (from rich->keras) (2.15.1)\n",
"Requirement already satisfied: mdurl~=0.1 in /home/anas/miniconda3/envs/keras_core/lib/python3.11/site-packages (from markdown-it-py>=2.2.0->rich->keras) (0.1.2)\n"
]
}
],
"source": [
"!pip install keras --upgrade"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"sys.path.append('/content/k3im')"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Keras version: 3.0.0\n"
]
}
],
"source": [
"check_keras_3()"
]
},
{
"cell_type": "code",
"execution_count": 5,
Expand Down
45 changes: 6 additions & 39 deletions spinups/spin_up_the_simplest_3d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,16 @@
"metadata": {},
"outputs": [],
"source": [
"!git clone https://github.com/anas-rz/k3im.git"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"!pip install keras medmnist -qq --upgrade\n",
"!git clone https://github.com/anas-rz/k3im.git\n",
"\n",
"import sys\n",
"import os\n",
"\n",
"sys.path.append('/content/k3im')\n",
"os.environ['KERAS_BACKEND'] = 'jax'"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"id": "NOZYc1_yDiEK"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/bin/bash: /home/anas/miniconda3/envs/keras_core/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n",
"Keras version: 3.0.0\n"
]
}
],
"source": [
"!pip install keras medmnist -qq --upgrade"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"sys.path.append('/content/k3im')"
]
},
{
"cell_type": "code",
"execution_count": 4,
Expand Down
44 changes: 8 additions & 36 deletions spinups/spin_up_the_simplest_video.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,15 @@
"metadata": {},
"outputs": [],
"source": [
"!git clone https://github.com/anas-rz/k3im.git"
"!pip install keras medmnist -qq --upgrade\n",
"!git clone https://github.com/anas-rz/k3im.git\n",
"\n",
"import sys\n",
"import os\n",
"\n",
"sys.path.append('/content/k3im')\n",
"os.environ['KERAS_BACKEND'] = 'jax'"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"id": "NOZYc1_yDiEK"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: keras in /home/anas/miniconda3/envs/dfd_keras_core/lib/python3.11/site-packages (3.0.0)\n",
"Requirement already satisfied: absl-py in /home/anas/miniconda3/envs/dfd_keras_core/lib/python3.11/site-packages (from keras) (2.0.0)\n",
"Requirement already satisfied: numpy in /home/anas/miniconda3/envs/dfd_keras_core/lib/python3.11/site-packages (from keras) (1.24.3)\n",
"Requirement already satisfied: rich in /home/anas/miniconda3/envs/dfd_keras_core/lib/python3.11/site-packages (from keras) (13.7.0)\n",
"Requirement already satisfied: namex in /home/anas/miniconda3/envs/dfd_keras_core/lib/python3.11/site-packages (from keras) (0.0.7)\n",
"Requirement already satisfied: h5py in /home/anas/miniconda3/envs/dfd_keras_core/lib/python3.11/site-packages (from keras) (3.9.0)\n",
"Requirement already satisfied: dm-tree in /home/anas/miniconda3/envs/dfd_keras_core/lib/python3.11/site-packages (from keras) (0.1.8)\n",
"Requirement already satisfied: markdown-it-py>=2.2.0 in /home/anas/miniconda3/envs/dfd_keras_core/lib/python3.11/site-packages (from rich->keras) (3.0.0)\n",
"Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /home/anas/miniconda3/envs/dfd_keras_core/lib/python3.11/site-packages (from rich->keras) (2.17.2)\n",
"Requirement already satisfied: mdurl~=0.1 in /home/anas/miniconda3/envs/dfd_keras_core/lib/python3.11/site-packages (from markdown-it-py>=2.2.0->rich->keras) (0.1.2)\n"
]
}
],
"source": [
"!pip install keras --upgrade"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit cb924b2

Please sign in to comment.