본문 바로가기

[Python] `pydot` failed to call GraphViz 해결 방안 keras를 가동중에 Graphviz를 이용해 그래프를 출력해야 하는데 아래와 같은 메세지를 뱉어내며 명령실행을 거부한다. OSError: `pydot` failed to call GraphViz.Please install GraphViz (https://www.graphviz.org/) and ensure that its executables are in the $PATH. 알아보니 Graphviz 설치가 제대로 안되서 그런것이라고 한다. 아래의 방법으로 해결 가능하다. 1. 시스템 환경변수 PATH에 C:/~/graphviz/bin 이 설치된 경로를 적는다. 2. 난 아나콘다 사용자이므로 다음의 명령어를 입력했다. > conda install graphviz 를 실행 해서 설치완료 실행이 안되서 알아..
[Python] Tensorflow import 경고 메세지 (numpy) 텐서플로우 설치 후, 다음과 같은 경고 메세지가 뜨는 경우가 있다. $ python Python 3.7.4 (Default, Feb 26 2020, 21:18:37) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information >>> import tensorflow as tf /home/linux-LAB/anaconda3/envs/tensorflow/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing(type, 1) or '1type' as a synonym..
[Python] Numpy 100 exercises # 51 ~ 100 Content # 51 ~ 100 51. Create a structured array representing a position (x,y) and a color (r,g,b) (★★☆) Z = np.zeros(10, [ ('position', [ ('x', float, 1), ('y', float, 1)]), ('color', [ ('r', float, 1), ('g', float, 1), ('b', float, 1)])]) print(Z) 52. Consider a random vector with shape (100,2) representing coordinates, find point by point distances (★★☆) Z = np.random.random((10,2)) X, Y = np..
[Python] Numpy 100 Exercises # 1 ~ 50 Overview numpy 패키지를 잘 사용하기 위한 100개의 exercise를 기록한다. 아주 기초적인 내용부터 시작해서 주로 쓰이거나 꼭 필요한 것들 위주로 정리되어 있다. Contents # 1~10 1. Import the numpy package under the name np (★☆☆) import numpy as np 2. Print the numpy version and the configuration (★☆☆) print(np.__version__) np.show_config() 더보기 1.17.4 blas_mkl_info: NOT AVAILABLE blis_info: NOT AVAILABLE openblas_info: library_dirs = ['C:\\projects\\numpy-..