반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- VPN
- Airflow
- node
- COALESCE
- Kafka
- kubeflow
- codepipeline
- codebuild
- chartjs
- docker
- java bigdecimal
- Jenkins
- Python
- AWS CI/CD 구축하기
- Flux
- Spring Error
- aws cicd
- Spring
- JavaScript
- chart.js
- bootstrap
- 도커
- codedeploy error
- codedeploy
- IntelliJ
- aws
- or some instances in your deployment group are experiencing problems.
- SQL
- PostgreSQL
- redis
Archives
- Today
- Total
Small Asteroid Blog
[python] TypeError: Object of type 'complex' is not JSON serializable 본문
백엔드/Python
[python] TypeError: Object of type 'complex' is not JSON serializable
작은소행성☄️ 2021. 10. 29. 14:41728x90
pyLDAvis.display() 사용중 LDA 결과 내용을 보여주려했는데 다음과 같은 타입에러가 났다.
TypeError: Object of type 'complex' is not JSON serializable
내가사용한 LDA display 코드
import pyLDAvis.gensim
topicData = pyLDAvis.gensim.prepare(ldamodel, docTermMatrix, dictionary)
pyLDAvis.display(topicData)
prepare 부분 뒤에 mds 를 지정하면 display가 된다.
pyLDAvis.gensim.prepare(ldamodel, docTermMatrix, dictionary, mds='mmds')
결과
728x90
반응형