Skip to content

Instantly share code, notes, and snippets.

View novdov's full-sized avatar

Sunwoong KIM novdov

View GitHub Profile
🌞 Morning 728 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 39.1%
πŸŒ† Daytime 468 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 25.2%
πŸŒƒ Evening 93 commits β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 5.0%
πŸŒ™ Night 571 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 30.7%
def solution(s):
l = s.split(' ')
new_s = []
for idx, s in enumerate(l):
for i, x in enumerate(s):
if i % 2 == 0:
x = x.upper()
else:
x = x.lower()
new_s.append(x)
cnn = Sequential()
cnn.add(Conv2D(1, (2,2), activation='relu', padding='same', input_shape=(10,10,1)))
cnn.add(MaxPooling2D(pool_size=(2, 2)))
cnn.add(Flatten())