np.dot()
dot product 정의는 다음과 같다:
$$a \cdot b = \sum_{i=1}^{n}a_ib_i$$
따라서 3번째 cell과 같이 코드로 구현할 수 있다.

np.outer()
outer product 정의는 다음과 같다:
$$(a \times b)_{ij} = a_ib_j$$
따라서 5번째 cell과 같이 코드로 구현할 수 있다.

np.multiply()
np.multiply() 함수는 element-wise multiplication (Hadamard product)을 수행한다:
$$ (a \odot b)_{i, j} = (a)_{ij}(b)_{ij} $$

'기술 정보' 카테고리의 다른 글
| [Tensorflow] CNN만들기 - tf.keras.Sequential() (0) | 2023.10.02 |
|---|---|
| [Tensorflow] NN 설계를 위한 tensorflow 기본 함수들 (0) | 2023.09.19 |
| [Colab] Drive mount 하는 법, 경로 설정하는 법 (0) | 2023.09.19 |
| [scikit-learn] feature_extraction.text / CountVectorizer (0) | 2023.09.11 |
| [Docker] Portainer 사용법 (0) | 2021.06.12 |