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
""" | |
Hopfield feito em Python. | |
Por Murilo Akita | |
Github: https://github.com/MuriloAkita | |
""" | |
import numpy as np | |
class Hopfield: | |
def __init__(self, quantidadeEntrada): | |
self.matrizPeso = np.zeros((quantidadeEntrada, quantidadeEntrada)) |
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
""" | |
Perceptron feito em Python. | |
Por Murilo Akita | |
Github: https://github.com/MuriloAkita | |
""" | |
import numpy as np | |
class Perceptron: | |
def __init__(self, quantidadeEntrada, taxa_aprendizado=0.05): | |
self.peso = np.random.rand(quantidadeEntrada) |
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
""" | |
Gerador de CNPJ criado em Python. | |
Por Murilo Akita | |
Github: https://github.com/MuriloAkita | |
""" | |
from re import findall | |
from random import randint | |
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
""" | |
Validador de CNPJ criado em Python. | |
Por Murilo Akita | |
Github: https://github.com/MuriloAkita | |
""" | |
from re import findall | |
def valida_cnpj(cnpj): |
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
""" | |
Gerador de CPF válido feito em Python. | |
Por Murilo Akita | |
Github: https://github.com/MuriloAkita | |
""" | |
from random import randint | |
def digit_equation(cpf): |
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
""" | |
Validador de CPF criado em Python. | |
Por Murilo Akita | |
Github: https://github.com/MuriloAkita | |
""" | |
import re | |
def extract_numbers(string): |