**Autonomous driving tech./*Machine-Learning

[Deep-Learning] 05 Identity, Diagonal, Transpose Matrix, Logistic Regression

2wnswoo 2025. 3. 13. 10:04

Identity Matrix 단위행렬

 

대각선 요소는 모두 1이고 나머지는 0으로 채워진 행렬을 Identity Matrix, 단위행렬이라고 한다.

Feature01 of the Identiy Matrix

 
print(np.identity(5)) #Numpy에서는 identify() 함수를 이용
print(tf.eye(5))      #TensorFlow에서는 eye() 함수를 이용


*Transpose Matrix, 전치 행렬 : 행과 열을 뒤바꾼 행렬

*Symmetric : 대칭적인

 

  • 머신러닝에서 대용량의 데이터를 다루는 경우가 흔한데, 이런 데이터의 원소 대부분은 0이다.
  • Sparse Matrix, 희소 행렬은 대부분의 원소가 0인 행렬을 의미한다.

 

Diagonal Matrix, 대각 행렬

 

대각선에만 값이 있고, 나머지는 모두 0인 행렬