View fractal_turtle.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.simplifiedpython.net/python-turtle-module/ | |
import turtle as tu | |
import random # import random module | |
my_turtle = tu.Turtle() | |
my_turtle.screen.bgcolor('red') | |
my_turtle.left(90) | |
my_turtle.speed(20) | |
my_turtle.color('green') | |
my_turtle.pensize(5) | |
my_turtle.screen.title("My Fractal Tree") |
View gist:2bd40d7fddf10f94d217d8601d21d601
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.applications import MobileNet | |
# Construindo a SNN | |
input_shape=(224,224, 3) # formato das imagens de entrada | |
left_input = Input(input_shape) | |
right_input = Input(input_shape) | |
# inicializando os kernels | |
W_init = keras.initializers.RandomNormal(mean = 0.0, stddev = 1e-2) | |
# inicializando os bias |