Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update visualization.md #21

Merged
merged 1 commit into from
Apr 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions sources/visualization.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@

## Model visualization
## 모델 시각화

Keras provides utility functions to plot a Keras model (using `graphviz`).
케라스는 (`graphviz`를 사용해서) 케라스 모델을 플롯팅하기 위한 유틸리티 함수를 제공합니다.

This will plot a graph of the model and save it to a file:
아래 예시는 모델의 그래프를 플롯팅하고 그 결과를 파일로 저장합니다:
```python
from keras.utils import plot_model
plot_model(model, to_file='model.png')
```

`plot_model` takes four optional arguments:
`plot_model`는 네가지 인수를 전달받습니다:

- `show_shapes` (defaults to False) controls whether output shapes are shown in the graph.
- `show_layer_names` (defaults to True) controls whether layer names are shown in the graph.
- `expand_nested` (defaults to False) controls whether to expand nested models into clusters in the graph.
- `dpi` (defaults to 96) controls image dpi.
- `show_shapes`(디폴트값은 False)는 결과의 모양을 그래프에 나타낼 것인지 조정합니다.
- `show_layer_names`(디폴트값은 True)는 레이어의 이름을 그래프에 나타낼 것인지 조정합니다.
- `expand_nested`(디폴트값은 False)는 중첩된 모델을 그래프상에서 클러스터로 확장할 것인지 조정합니다.
- `dpi`(디폴트값은 96)는 이미지 dpi를 조정합니다.

You can also directly obtain the `pydot.Graph` object and render it yourself,
for example to show it in an ipython notebook :
또한 직접 `pydot.Graph`오브젝트를 만들어 사용할 수도 있습니다,
예를들어 ipython notebook에 나타내자면 :
```python
from IPython.display import SVG
from keras.utils import model_to_dot
Expand Down