<jupyter_start><jupyter_text>活性化関数  ステップ関数$y=\begin{cases}1 & ( x \gt 0 ) \\-1 & ( x \leqq 0 )\end{cases}$<jupyter_code>x = np.arange(-5.0, 5.0, 0.1)
y = np.array(x > 0, dtype=np.int)
plt.plot(x, y)
plt.show()<jupyter_output><empty_output><jupyter_text>シグモイド関数$y = \frac{1}{1 + exp(-x)}$<jupyter_code>x = np.arange(-5.0, 5.0, 0.1)
y = 1 / (1 + np.exp(-x))
plt.plot(x, y)
plt.show()<jupyter_output><empty_output><jupyter_text>ReLU関数$y=\begin{cases}x & ( x \gt 0 ) \\ 0 & ( x \leqq 0 ) \end{cases}$<jupyter_code>x = np.arange(-5.0, 5.0, 0.1)
y = np.maximum(0, x)
plt.plot(x, y)
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.2435064935064935, 'fraction_numerical': 0.05032467532467533, 'mean_word_length': 4.3652173913043475, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 14, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '654038', 'license': 'MIT', 'n_tokens_mistral': 350, 'n_tokens_neox': 327, 'n_words': 49, 'path': 'train/neural/ActivationFunctions.ipynb', 'repo_name': 'Arahabica/NNTrain', 'size': '616'}