<jupyter_start><jupyter_text>$$\sigma(t) = \frac{1}{1 + e^{\theta_1 \cdot x+\theta_2 \cdot y}}$$<jupyter_code>def sig2s(t) :
     return 1 / (1 + np.exp(-t))
x = np.linspace(-1, 1, 150)
y = np.linspace(-1, 1, 150)
xx, yy = np.meshgrid(x, y, sparse=False)
yy= yy+5
zz=sig2s(xx)
zz[ (zz >= 0.5) & (zz < 0.51) ]=0
plt.imshow(zz)
def sig2s(t) :
     return 1 / (1 + np.exp(-t))
x = np.linspace(-1, 1, 150)
y = np.linspace(-1, 1, 150)
xx, yy = np.meshgrid(x, y, sparse=False)
yy= yy+0.8
zz= sig2s(xx+yy)
zz[ (zz >= 0.5) & (zz < 0.51) ]=0
plt.imshow(zz)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.24610051993067592, 'fraction_numerical': 0.08145580589254767, 'mean_word_length': 3.661290322580645, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '386784', 'license': 'Apache-2.0', 'n_tokens_mistral': 324, 'n_tokens_neox': 300, 'n_words': 65, 'path': 'exercises/minimal_understanding_concepts/understanding_sigmoid.ipynb', 'repo_name': 'kolibril13/data-science-and-big-data-analytics', 'size': '577'}