<jupyter_start><jupyter_text>Chapter 5 ディープラーニングの理論* 5.5 行列と行列積  リスト 5.15 NumPyを用いた要素ごとの積の計算<jupyter_code>import numpy as np

a = np.array([[1, 2, 3],
              [4, 5, 6],
              [7, 8, 9]])
b = np.array([[0, 1, 1],
              [1, 0, 1],
              [1, 1, 0]])
print(a*b)<jupyter_output>[[0 2 3]
 [4 0 6]
 [7 8 0]]
{'fraction_non_alphanumeric': 0.18731117824773413, 'fraction_numerical': 0.09969788519637462, 'mean_word_length': 2.1320754716981134, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '129723', 'license': 'BSD-2-Clause', 'n_tokens_mistral': 200, 'n_tokens_neox': 176, 'n_words': 40, 'path': 'ISBN978-4-7981-6720-6/list5_15.ipynb', 'repo_name': 'zfukuoka/Copying_a_sutra', 'size': '331'}