Module tomotopy.viewer

Added in version: 0.13.0

tomotopy.viewer는 tomotopy의 토픽 모델을 웹 브라우저로 시각화하기 위한 모듈입니다. 토픽 모델과 그 결과를 대화형으로 시각화할 수 있는 간단한 방법을 제공합니다. 단, Python 내장 http.server 모듈을 사용하기 때문에 프로덕션 웹 서비스에 사용하는 것은 권장되지 않습니다.

다음은 뷰어 사용의 간단한 예시입니다: ::

import tomotopy as tp
mdl = tp.load_model('a_trained_model.bin')
tp.viewer.open_viewer(mdl, port=9999)
# 웹 브라우저에서 <http://localhost:9999> 를 여세요

또는 커맨드 라인에서 뷰어를 실행할 수도 있습니다: ::

python -m tomotopy.viewer a_trained_model.bin --host localhost --port 9999
# 웹 브라우저에서 <http://localhost:9999> 를 여세요

더 자세한 내용은 open_viewer() 함수를 참고하세요.

Sub-modules

tomotopy.viewer.viewer_server