<jupyter_start><jupyter_text>Vector operations<jupyter_code>a = np.array([1,5])
b = np.array([1,5])<jupyter_output><empty_output><jupyter_text>outer product (Cartesian product)<jupyter_code>a[:, np.newaxis] * b
np.outer(a, b)<jupyter_output><empty_output><jupyter_text>direct product<jupyter_code>a * b<jupyter_output><empty_output><jupyter_text>inner/dot product<jupyter_code>a @ b
np.inner(a, b)
np.dot(a, b)
np.vdot(a, b)
np.matmul(a, b)
np.tensordot(a, b, axes=1)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1710261569416499, 'fraction_numerical': 0.01006036217303823, 'mean_word_length': 10.857142857142858, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '531298', 'license': 'MIT', 'n_tokens_mistral': 232, 'n_tokens_neox': 228, 'n_words': 27, 'path': 'matplotlib.ipynb', 'repo_name': 'hyzhak/skilearn-experiments', 'size': '497'}