Fix README

This commit is contained in:
Aleksander Piotrowski 2021-06-29 16:15:56 +02:00
parent 1b09ee5f54
commit df22464481
4 changed files with 1922 additions and 2235 deletions

View File

@ -6,7 +6,13 @@
2. Fork this repository to your GitHub account.
3. Run Jupyter docker image:
3. Pull Jupyter image:
```bash
docker pull jupyter/minimal-notebook:latest
```
4. Run Jupyter docker image:
```bash
docker run \
@ -18,24 +24,30 @@ docker run \
Remember to change **DIRECTORY** to directory where all files can be found. You can change it to `$(pwd)` if your current directory is proper one.
4. Get loging link with following command:
5. Get loging link with following command:
```bash
docker logs REK 2>&1 | grep -o 'http://127.0.0.1:8888.*' | tail -n1
docker logs REK 2>&1 | grep -o 'http://127.0.0.1:8888/?token.*' | tail -n1
Example output:
http://127.0.0.1:8888/?token=2bb816a4bc36a4bdbf64e0c9a89f336ae5404a01d15e442c
```
5. Prepare conda environment:
If above command did not work. Just find it in logs:
```bash
docker logs REK
```
6. Prepare conda environment:
```bash
docker exec REK bash -c "
conda env create --name rs-class-env -f /home/jovyan/REK/environment.yml;
python -m ipykernel install --user --name=rs-class-env"
conda env create --name REK -f /home/jovyan/REK/environment.yml;
conda run -n REK /bin/bash -c \"
python -m ipykernel install --user --name=REK\""
```
6. You can start/stop container whenever you want:
7. You can start/stop container whenever you want:
```bash
docker stop REK

View File

@ -1,4 +1,4 @@
name: rs-class-env
name: REK
channels:
- defaults
dependencies:

File diff suppressed because it is too large Load Diff

View File

@ -2,19 +2,10 @@
"cells": [
{
"cell_type": "code",
"execution_count": 449,
"execution_count": 1,
"id": "alike-morgan",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The autoreload extension is already loaded. To reload it, use:\n",
" %reload_ext autoreload\n"
]
}
],
"outputs": [],
"source": [
"%matplotlib inline\n",
"%load_ext autoreload\n",
@ -1371,7 +1362,7 @@
},
{
"cell_type": "code",
"execution_count": 455,
"execution_count": 2,
"id": "stable-theta",
"metadata": {},
"outputs": [],
@ -1881,13 +1872,7 @@
"epoch 4000 \n",
" Train set - loss: 0.961\n",
" Test set - loss: 32.549\n",
" \n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \n",
"epoch 5000 \n",
" Train set - loss: 0.922\n",
" Test set - loss: 38.252\n",
@ -2758,9 +2743,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "rek_uno",
"display_name": "REK1",
"language": "python",
"name": "rek_uno"
"name": "rek1"
},
"language_info": {
"codemirror_mode": {