Skip to content

Commit

Permalink
Add mnistの説明 > readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chizuchizu committed Mar 25, 2021
1 parent be24734 commit 197b69e
Showing 1 changed file with 58 additions and 4 deletions.
62 changes: 58 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@

### 動作確認

全てDocker上で動かしています。
ターミナルで以下のコードを打ってトークンが存在するか確認してください。
全てDocker上で動かしています。 ターミナルで以下のコードを打ってトークンが存在するか確認してください。

```bash
docker-compose up check
```

```
# OK
Your token file exists.
Expand All @@ -29,13 +30,66 @@ Your token file exists.
Your token file doesn't exist.
```

### データセットについて
### MNIST
```bash
docker-compose up run-mnist
```
MNISTの学習をします。 \
実行すると下のように進捗と結果を出力します。
```bash
run-mnist_1 | energy: 803.6696062499832
run-mnist_1 | time: 10.15 s
run-mnist_1 | energy: 803.2545875004947
run-mnist_1 | time: 13.138 s
run-mnist_1 | energy: 803.5983125001565
run-mnist_1 | time: 16.123 s
run-mnist_1 | energy: 803.4165125006213
run-mnist_1 | time: 19.112 s
run-mnist_1 | energy: 803.2492500003998
run-mnist_1 | time: 22.143 s
run-mnist_1 | ==================== 0 ====================
run-mnist_1 | AUC: 0.9766666666666667
run-mnist_1 | ACC: 0.9166666666666666
run-mnist_1 | ===========================================
run-mnist_1 | energy: 802.9704062497967
run-mnist_1 | time: 11.497 s
run-mnist_1 | energy: 803.410518749836
run-mnist_1 | time: 14.544 s
run-mnist_1 | energy: 803.4836625000177
run-mnist_1 | time: 17.529 s
run-mnist_1 | energy: 803.1810312498983
run-mnist_1 | time: 20.54 s
run-mnist_1 | energy: 803.1730187497739
run-mnist_1 | time: 23.525 s
run-mnist_1 | ==================== 1 ====================
run-mnist_1 | AUC: 0.9924888888888889
run-mnist_1 | ACC: 0.8166666666666667
run-mnist_1 | ===========================================
...
```

## データセットについて

#### MNIST

[Digit Recognizer | Kaggle](https://www.kaggle.com/c/digit-recognizer) のデータセットを使っています。
これはMNISTのデータが扱いやすいcsv形式に変換されたものです。

- `train.csv`: そのままのデータ
- `train.csv`: そのままのデータ
- `train_400.csv`: 28x28(pixels)から20x20(pixels)に変換した後のデータ

`train_400.csv`の作成は`src/resize.py`を用いました。

## エラーについて

並列処理で動かしているせいか、たまに学習時に以下のようなエラーが発生します。

```bash
RuntimeError: Incorrect Content-Type: must be textual to extract_string, JSON to extract_json.
```
```bash
RuntimeError: 502 Bad Gateway
```
```bash
RuntimeError: Failed to read HTTP status line
```

0 comments on commit 197b69e

Please sign in to comment.