<jupyter_start><jupyter_text>The Sigmoid Activation Function [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/the-deep-learners/deep-learning-illustrated/blob/master/notebooks/sigmoid_function.ipynb)<jupyter_code>from math import e
def sigmoid(z):
    return 1/(1+e**-z)
sigmoid(.00001)
sigmoid(10000)
sigmoid(-1)
sigmoid(-10)
sigmoid(-2.0)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16400911161731208, 'fraction_numerical': 0.0387243735763098, 'mean_word_length': 6.857142857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '554522', 'license': 'MIT', 'n_tokens_mistral': 192, 'n_tokens_neox': 174, 'n_words': 19, 'path': 'notebooks/sigmoid_function.ipynb', 'repo_name': 'tromgy/deep-learning-illustrated', 'size': '439'}