<jupyter_start><jupyter_text>Subtractive inhibition$O = E - k$<jupyter_code>f,ax = plt.subplots()
print (plt.get_cmap().name)

plt.register_cmap(name='viridis', cmap=cmaps.viridis)
plt.set_cmap(cmaps.viridis)

plt.set_cmap("gray")
print (plt.get_cmap().name)
ax.plot(a, a)
ax.plot(a, a - 0.2, '--', label="$O = E - 0.2$")
ax.plot(a, a - 0.4, '--', label="$O = E - 0.4$")
ax.plot(a, a - 0.6, '--', label="$O = E - 0.6$")
ax.plot(a, a - 0.8, '--', label="$O = E - 0.8$")
ax.set_xlabel("E")
ax.set_ylabel("O")
ax.set_ylim(ymin=0)
ax.set_xlim(xmin=0)
ax.set_title("Subtractive Inhibition")
ax.legend()
f.show()<jupyter_output>viridis
gray<jupyter_text>Divisive inhibition$O = E - k \times E$<jupyter_code>f,ax = plt.subplots()
ax.plot(a, a)
ax.plot(a, a*0.8, '--', label="$O = E - E \\times 0.2$")
ax.plot(a, a*0.6, '--', label="$O = E - E \\times 0.4$")
ax.plot(a, a*0.4, '--', label="$O = E - E \\times 0.6$")
ax.plot(a, a*0.2, '--', label="$O = E - E \\times 0.8$")
ax.set_xlabel("E")
ax.set_ylabel("O")
ax.legend()
ax.set_title("Divisive Inhibition")
f.show()<jupyter_output><empty_output><jupyter_text>Divisive normalization $O = E - \frac{E}{E+(l/k)}*E$<jupyter_code>f,ax = plt.subplots()
ax.plot(a, a)
#ax.plot(a, 0.8*a/(a+0.2), '--')
ax.plot(a, 0.4*a/(0.8*a+0.4), '--', label="$O = E - \\frac{0.8.E}{0.8.E+0.4}*E$")
ax.plot(a, 0.6*a/(0.8*a+0.6), '--', label="$O = E - \\frac{0.8.E}{0.8.E+0.6}*E$")
ax.plot(a, 0.4*a/(0.2*a+0.4), '--', label="$O = E - \\frac{0.2.E}{0.2.E+0.4}*E$")
ax.plot(a, 0.6*a/(0.2*a+0.6), '--', label="$O = E - \\frac{0.2.E}{0.2.E+0.6}*E$")
ax.set_xlabel("E")
ax.set_ylabel("O")
ax.legend()
ax.set_title("Divisive Normalization")
f.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.3047844063792085, 'fraction_numerical': 0.050797401063201415, 'mean_word_length': 3.967741935483871, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '136458', 'license': 'MIT', 'n_tokens_mistral': 928, 'n_tokens_neox': 891, 'n_words': 125, 'path': 'Paper_Figures/Schematic Divisive Normalization.ipynb', 'repo_name': 'elifesciences-publications/linearity', 'size': '1693'}