반응형

Programming 151

Tensorflow 설치

1. 아나콘다 설치 ( 파이썬 3.5 버전)2. CUDA Toolkit 8.0 설치 ( https://developer.nvidia.com/cuda-downloads )3. cuDNN v5.1 설치 ( https://developer.nvidia.com/rdp/cudnn-download )4. GPU 카드가 CUDA Compute Capability 3.0 이상인지 확인 한다. ( https://developer.nvidia.com/cuda-gpus )cmd 창에서가상 환경 생성하고conda create -n tensorflow python=3.5 생성한 가상환경 활성화activate tensorflow cpu 버전 설치 시pip install --ignore-installed --upgrade http..

Programming/Python 2017.04.04

Python Unit Test

Unit Test 에 관한 slideshare : http://www.slideshare.net/hosunglee948/python-52222334Flask unit test : http://flask-docs-kr.readthedocs.io/ko/latest/testing.htmlweb unit test(Selenium) : http://selenium-python.readthedocs.io/navigating.htmlpython unit test : https://docs.python.org/2/library/unittest.html 개념테스트 케이스를 만들고, 이를 수행하는 식으로 동작함테스트 케이스는 구현한 함수를 테스트하기 위해 정해진 입력과 예상되는 출력 쌍으로 테스트를 수행예를들어, sum(..

Programming/Python 2016.12.14

plotly offline

Plotly offline 자동 크기 변환 안되는 경우 원본window.removeEventListener("resize"); 변경 후window.removeEventListener("resize", document.getElementById("5da331c3-3f1f-4331-914e-5ba61259eb35")); 위의 코드는 python에서 offline으로 div 태그 생성한 결과이다.헌데, edge에서는 정상 동작하지만, 크롬에서는 해당 코드를 bootstrap 관련된 기존 코드 위에 붙였을 경우자동 크기 변환이 되지 않았다.원인을 찾아보니, 위와 같이 removeEventListener에서 객체를 파라미터로 넘겨야 되는데 넘기는 부분이 빠져 있어서였다.DOM 관련 버전 차이 인 듯 하다.

Programming/Python 2016.11.25

Hadoop 관련 오류 메시지 정리

http://www.ibm.com/support/knowledgecenter/ko/SSZJPZ_11.5.0/com.ibm.swg.im.iis.ishadoop.doc/topics/troubleshooting.html XGBoost에서 num worker 수를 늘릴 경우 멈추는 현상이 발생하는데, 이는 Executor의 수와 worker의 수가 맞지 않아 발생된다. spark-submit을 수행할 때 명시적으로 Executor의 수를 설정하여 실행시키면 정상 동작함 worker의 수가 만약 10개이고 코어의 수가 2개라면 executors는 5로 설정해야 함. spark-submit --class Prediction --master yarn --num-executors 7 --executor-cores 2 ..

HDP 2.5 설치

OS : ubuntu 14.04구성 : VM 서버 8대기본 환경클라우드 VM 서버 : 10.161.64.x hadoop-dev-1 10.161.64.x hadoop-dev-2 10.161.64.x hadoop-dev-3 10.161.64.x hadoop-dev-4 10.161.64.x hadoop-dev-5 10.161.64.x hadoop-dev-6 10.161.64.x hadoop-dev-7 10.161.64.x hadoop-dev-8 방화벽 오픈 관련 Source ——– Taget ——– Port 운영서버 ——- any ———- 80, 443, 9418 클라우드VM —– any ———- 80, 443, 9418, 123(NTP) hadoop-dev-1 에 SSH 접속root 권한 얻기# sudo -..

반응형