-
conda 가상환경을 새로운 가상환경에서 설치python 2022.01.20 11:23
1. 가상환경의 pip list를 출력한다 ( 아래의 코드처럼 진행해야 깔끔한 requirements.txt를 출력할 수 있음) 1 pip list --format=freeze > requirements.txt cs 2. conda 의 environments를 yml 형식으로 출력한다 (아래의 코드로 진행) 1 conda env export > conda_environment.yml --no-builds cs 3. conda_environment.yml를 연다 3.1 제일 위에 name 을 가상환경 이름으로 수정 3.2 제일 밑에 prefix부분의 경로 마지막 부분을 새로 만든 가상환경의 이름으로 수정 3.3 새로운 가상환경에 세팅되어야 할 conda list를 만든다고 생각하면 됨 4. 설치 1 con..
-
Hessian 행렬 ( feat. eigenvector, eigenvalue )기초통계학 2021.12.30 14:42
Hessian Matrix는 어떤 함수의 이계도 함수를 행렬로 표현한 것 실함수 $f(x,y)$에 대하여 Hessian Matrix는 아래와 같이 나타낼 수 있다. $$ H=\begin{bmatrix} \partial^2 f/\partial x^2 & \partial f/\partial x\partial y \\ \partial f/\partial y \partial x & \partial ^2 f / \partial y^2 \end{bmatrix} $$ Hessian Matrix는 함수의 이차이분(Second Derivative)을 나타내며 함수 $f$의 곡률(curvature)특성을 나타내는 행렬이다. Hessian Matrix를 최적화 문제에 적용할 경우 Second-Order Taylor Expa..
-
-
-
[python] index와 find의 차이python 2021.07.08 13:26
Difference Between find( ) and index( ) in Python - GeeksforGeeks A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. www.geeksforgeeks.org 공통점 : 기준이 되는 substring에 맞는 첫 번째 index를 return한다 차이점 index : 해당하는 substring이 없으면 Error를 출력 1 2 3 4 ..