ml3 [ML] 하이퍼 파라미터, 파라미터 예를 들어 설명해보겠습니다. 한 클래스에 속해 있는 학생들의 키에 대한 정규분포를 그린다고 합시다. 정규분포를 그리면 평균(μ)과 표준편차(σ) 값이 구해집니다. 여기서 평균과 표준편차는 파라미터(parameter)입니다. 파라미터는 데이터를 통해 구해지며 (They are estimated or learned from data), 모델 내부적으로 결정되는 값입니다. 사용자에 의해 조정되지 않습니다. (They are often not set manually by the practitioner) 하이퍼 파라미터는 모델링할 때 사용자가 직접 세팅해주는 값을 뜻합니다. (They are often specified by the practitioner) learning rate나 서포트 벡터 머신에서의 C, .. 개발/etc 2021. 12. 9. [DL] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2 에러 해결 방법 from keras import models from keras import layers model = models.Sequential() model.add(layers.Dense(16, activation='relu', input_shape=(10000,))) model.add(layers.Dense(16, activation='relu')) model.add(layers.Dense(1, activation='sigmoid')) 나의 경우 이 코드를 입력하니 에러가 발생했다. 이럴 때 다른 블로그 글들을 참조하다보니 다 같은 방법으로 해결하는 것을 알 수 있었다. from keras import models from keras import layers import os os.environ['TF_CPP.. 개발/Python 2021. 11. 22. [Ubuntu] 텐서플로우 삭제, 다운그레이드, 버전 선택 설치 우분투 환경에서 pipenv shell 안에서, pip uninstall tensorflow pip uninstall tensorflow-gpu pip uninstall tensorflow-cpu 로 설치된 텐서플로를 모두 지워주고, pip install tensorflow==2.5.0 처럼 원하는 버전을 선택해 설치할 수 있다. gpu, cpu도 마찬가지 방법으로 가능하다. 2.6.0 버전 이후로는 predict_classes가 없어져서, 일단 임시방편으로 버전 다운그레이드를 선택했다. 나중에 문제가 있다면 다시 버전을 올리고, predict_classes를 대신할 코드를 찾아야겠다. 개발/Python 2021. 11. 15. 이전 1 다음