Instantly share code, notes, and snippets.

# Lincoln de Macêdo demacdolincoln

• Brasil
Created Sep 21, 2015
uma adaptação do PSO que busca uma palavra, apenas um simples exercício para ajudar a esclarecer seu funcionamento. como se trata de valores aleatórios e como eu não me preocupei com muitos detalhes, pode ser que algumas vezes o algoritmo não funcione
View pso.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
 from string import ascii_uppercase as ascii_up from random import choice, uniform from copy import deepcopy class Particle(object): def __init__(self, dim, limit_max, limit_min): self._position = [ord(choice(ascii_up)) for _ in range(dim)] self._best_posit = self._position[::] self._fitness = None self._best_fitness = None
Created Jan 20, 2016
View perceptron.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
 import numpy as np class Perceptron(object): ''' Implementacao do perceptron ''' def __init__(self, dimensoes): ''' :dimensoes: list com o nome das variaveis de entrada ''' for dim in dimensoes:
Created Feb 1, 2016
View schaffer_4.ipynb
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Feb 6, 2016
View comparação de topologias 1.ipynb
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Apr 14, 2016
View teste_opencv_1.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
 """ dependências: * python2 * opencv * numpy * matplotlib """ import cv2 import numpy as np
Created Aug 17, 2016
View slides.ipynb
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Sep 28, 2016
View fractal.ipynb
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created May 29, 2017
View elnino_jl.ipynb