Skip to content

Instantly share code, notes, and snippets.

View wolterlw's full-sized avatar
🇺🇦

Volodymyr wolterlw

🇺🇦
View GitHub Profile
@wolterlw
wolterlw / jupyter_tweak.py
Created July 9, 2020 22:47
changes jupyter cell width to 100%
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))
import numpy as np
def get_thresholded_indices(inp_array, threshold=10, radius=30):
y = lambda x: inp_array[x]
population = np.random.randint(0,len(inp_array),len(inp_array))
pop_size = len(population)-1
for delta in range(7,0,-1):
for i in range(100):