SlideShare uma empresa Scribd logo
1 de 22
Aprendizagem de Máquina Rafael C.P.
Roteiro ,[object Object],[object Object],[object Object],[object Object]
Classificador Naïve Bayes ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Classificador Naïve Bayes - Resultado ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Classificador Naïve Bayes - Erros ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Q( λ )-Learning ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Q( λ )-Learning - Interface Gráfica
Q( λ )-Learning - Resultados
Q( λ )-Learning - Resultados (Softmax)
Q( λ )-Learning - Resultados (Agenda)
Gustafson-Kessel ,[object Object],[object Object]
Neuroevolução com NEAT & cia ,[object Object],[object Object],[object Object]
NEAT ,[object Object],[object Object],[object Object],[object Object]
NEAT - Representação
NEAT - Inicialização
NEAT - Seleção ,[object Object],[object Object],[object Object],[object Object],[object Object]
NEAT - Mutação ,[object Object],[object Object],[object Object]
NEAT - Crossover
NEAT - Experimentos
CPPN ,[object Object],[object Object],[object Object],[object Object],[object Object]
HyperNEAT ,[object Object],[object Object],[object Object]
Referências ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Mais conteúdo relacionado

Mais procurados

Key Factors that affect 5G Throughput, Possible Causes and Ways to optimize.pdf
Key Factors that affect 5G Throughput, Possible Causes and Ways to optimize.pdfKey Factors that affect 5G Throughput, Possible Causes and Ways to optimize.pdf
Key Factors that affect 5G Throughput, Possible Causes and Ways to optimize.pdf
ssuser3be61c1
 
Interworking wcdma to lte
Interworking wcdma to lteInterworking wcdma to lte
Interworking wcdma to lte
bahar
 
S4 réseaux et internet _
S4 réseaux et internet _S4 réseaux et internet _
S4 réseaux et internet _
mostafakhali
 

Mais procurados (20)

Tailieu.vncty.com huong dan nhap mon html
Tailieu.vncty.com   huong dan nhap mon htmlTailieu.vncty.com   huong dan nhap mon html
Tailieu.vncty.com huong dan nhap mon html
 
Chap08 gb 03_kh
Chap08 gb 03_khChap08 gb 03_kh
Chap08 gb 03_kh
 
Wcdma ps service_optimization_guide
Wcdma ps service_optimization_guideWcdma ps service_optimization_guide
Wcdma ps service_optimization_guide
 
Bài 2 Cài đặt Windows Server 2008 - Giáo trình FPT
Bài 2 Cài đặt Windows Server 2008 - Giáo trình FPTBài 2 Cài đặt Windows Server 2008 - Giáo trình FPT
Bài 2 Cài đặt Windows Server 2008 - Giáo trình FPT
 
5G NR MIB and SIBs
5G NR MIB and SIBs5G NR MIB and SIBs
5G NR MIB and SIBs
 
La Santé Vient en Bougeant et en Mangeant - INPES
La Santé Vient en Bougeant et en Mangeant  - INPESLa Santé Vient en Bougeant et en Mangeant  - INPES
La Santé Vient en Bougeant et en Mangeant - INPES
 
Thuật Toán BEA (Bond Energy Algorithm)
Thuật Toán BEA (Bond Energy Algorithm) Thuật Toán BEA (Bond Energy Algorithm)
Thuật Toán BEA (Bond Energy Algorithm)
 
Key Factors that affect 5G Throughput, Possible Causes and Ways to optimize.pdf
Key Factors that affect 5G Throughput, Possible Causes and Ways to optimize.pdfKey Factors that affect 5G Throughput, Possible Causes and Ways to optimize.pdf
Key Factors that affect 5G Throughput, Possible Causes and Ways to optimize.pdf
 
Core cs overview (1)
Core cs overview (1)Core cs overview (1)
Core cs overview (1)
 
Giáo trình bảo mật thông tin
Giáo trình bảo mật thông tinGiáo trình bảo mật thông tin
Giáo trình bảo mật thông tin
 
Cdma and 3 g
Cdma and 3 gCdma and 3 g
Cdma and 3 g
 
Interworking wcdma to lte
Interworking wcdma to lteInterworking wcdma to lte
Interworking wcdma to lte
 
Huawei wcdma ran10.0 overview
Huawei wcdma ran10.0 overviewHuawei wcdma ran10.0 overview
Huawei wcdma ran10.0 overview
 
Comande oss
Comande ossComande oss
Comande oss
 
Lte mac presentation
Lte mac presentationLte mac presentation
Lte mac presentation
 
Lte capacity monitoring
Lte capacity monitoringLte capacity monitoring
Lte capacity monitoring
 
Les limites-de-l uml (1)
Les limites-de-l uml (1)Les limites-de-l uml (1)
Les limites-de-l uml (1)
 
Call flows
Call flowsCall flows
Call flows
 
150154357 umts-multi-carrier-strategy-training
150154357 umts-multi-carrier-strategy-training150154357 umts-multi-carrier-strategy-training
150154357 umts-multi-carrier-strategy-training
 
S4 réseaux et internet _
S4 réseaux et internet _S4 réseaux et internet _
S4 réseaux et internet _
 

Semelhante a Neuroevolução com o algoritmo NEAT e suas Extensões

Algorítimos Genéticos
Algorítimos GenéticosAlgorítimos Genéticos
Algorítimos Genéticos
iaudesc
 

Semelhante a Neuroevolução com o algoritmo NEAT e suas Extensões (6)

Algorítimos Genéticos
Algorítimos GenéticosAlgorítimos Genéticos
Algorítimos Genéticos
 
Scipy meetup-2020-02
Scipy meetup-2020-02Scipy meetup-2020-02
Scipy meetup-2020-02
 
160277 redes neurais artificiais
160277 redes neurais artificiais160277 redes neurais artificiais
160277 redes neurais artificiais
 
Big data
Big dataBig data
Big data
 
Algoritmos genéticos: princípios e aplicações
Algoritmos genéticos: princípios e aplicaçõesAlgoritmos genéticos: princípios e aplicações
Algoritmos genéticos: princípios e aplicações
 
Aprendizado Profundo & CNNs
Aprendizado Profundo & CNNsAprendizado Profundo & CNNs
Aprendizado Profundo & CNNs
 

Mais de Rafael Pinto

Mais de Rafael Pinto (10)

Deep Learning
Deep LearningDeep Learning
Deep Learning
 
Inteligência Artificial - Aula15 - Algoritmos Genéticos
Inteligência Artificial - Aula15 - Algoritmos GenéticosInteligência Artificial - Aula15 - Algoritmos Genéticos
Inteligência Artificial - Aula15 - Algoritmos Genéticos
 
Inteligência Artificial - Aula5 - PageRank
Inteligência Artificial - Aula5  - PageRankInteligência Artificial - Aula5  - PageRank
Inteligência Artificial - Aula5 - PageRank
 
Inteligência Artificial - Aula2 - Busca em Grafos
Inteligência Artificial - Aula2 - Busca em GrafosInteligência Artificial - Aula2 - Busca em Grafos
Inteligência Artificial - Aula2 - Busca em Grafos
 
Inteligência Artificial - Aula1 intro
Inteligência Artificial - Aula1 introInteligência Artificial - Aula1 intro
Inteligência Artificial - Aula1 intro
 
Slow Feature Analysis
Slow Feature AnalysisSlow Feature Analysis
Slow Feature Analysis
 
Ratslam
RatslamRatslam
Ratslam
 
Online Incremental One-Shot Learning of Temporal Sequences (Portuguese)
Online Incremental One-Shot Learning of Temporal Sequences (Portuguese)Online Incremental One-Shot Learning of Temporal Sequences (Portuguese)
Online Incremental One-Shot Learning of Temporal Sequences (Portuguese)
 
LoopSOM
LoopSOMLoopSOM
LoopSOM
 
Um Reconhecedor de Padrões Espaço-Temporais Inspirado no Neocórtex
Um Reconhecedor de Padrões Espaço-Temporais Inspirado no NeocórtexUm Reconhecedor de Padrões Espaço-Temporais Inspirado no Neocórtex
Um Reconhecedor de Padrões Espaço-Temporais Inspirado no Neocórtex
 

Neuroevolução com o algoritmo NEAT e suas Extensões

Notas do Editor

  1. INSTALAR http://www.python.org/ftp/python/2.6.4/python-2.6.4.msi http://ufpr.dl.sourceforge.net/project/numpy/NumPy/1.3.0/numpy-1.3.0-win32-superpack-python2.6.exe http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/ http://pygame.org/ftp/pygame-1.9.1.win32-py2.6.msi ( http://ufpr.dl.sourceforge.net/project/scipy/scipy/0.7.1/scipy-0.7.1-win32-superpack-python2.6.exe ) BAIXAR E EXECUTAR http://www.inf.ufrgs.br/~rcpinto/qlearning.zip http://www.inf.ufrgs.br/~rcpinto/spamfilter.zip   http://www.inf.ufrgs.br/~rcpinto/gk.zip   BAIXAR E MOSTRAR http://www.cs.utexas.edu/users/kstanley/regression.avi http://www.cs.utexas.edu/users/kstanley/movies/peonsmaster6.avi CARREGAR E MOSTRAR   http://www.youtube.com/watch?v=QiBOk6ar1mg http://www.youtube.com/watch?v=DYz_SeIbzEo http://www.youtube.com/watch?v=DiOYgYjbORg http://www.youtube.com/watch?v=lmPJeKRs8gE
  2. from environment import Environment from numpy import * from pygame import * from pygame.locals import * import pygame, sys, os class Map2D(Environment): def __init__(self,inistate='0,0',actions=['left','right','up','down'],w=640,h=480,mw=16,mh=12,title=""): Environment.__init__(self,inistate,actions)                  os.environ['SDL_VIDEODRIVER'] = 'windib'                  pygame.display.init()                  pygame.font.init() self.screen = display.set_mode([w,h]) self.size = w, h self.mapSize = mw, mh self.squaresize = (w/mw,h/mh) self.font = font.SysFont("Arial",10) display.set_caption("Reinforcement Learning Test "+title) self.fps = 0 self.clock = time.Clock() self.pause = False def run(self): while True: events = pygame.event.get() for event in events: if event.type == QUIT: sys.exit(0) if event.type == KEYDOWN: if event.key == K_ESCAPE: sys.exit()                 if event.key == K_d: self.drawing = not self.drawing if event.key == K_p: self.pause = not self.pause if self.pause: continue self.act(self.actions[random.randint(0,len(self.actions))]) self.draw() def transition(self,state,action): s = state.split(',') state = [int(s[0]),int(s[1])] if action == 'up': state[1] -= 1 elif action == 'down': state[1] += 1 elif action == 'left': state[0] -= 1 elif action == 'right': state[0] += 1 if state[1] < 0: state[1] = 0 if state[0] < 0: state[0] = 0 if state[1] >= self.mapSize[1]: state[1] = self.mapSize[1]-1 if state[0] >= self.mapSize[0]: state[0] = self.mapSize[0]-1 state = str(state[0])+','+str(state[1]) return state def statprint(self,text,xx,yy,color=(255,255,255)): ren = self.font.render(text,1,color) self.screen.blit(ren, (xx,yy)) def draw(self,clear=True,flip=True): if not Environment.draw(self): return False if clear: self.screen.fill((255,255,255)) #s = self.state.split(',') #state = [int(s[0]),int(s[1])] for x in range(self.mapSize[0]): pos = (x*self.squaresize[0],0) pos2 = (x*self.squaresize[0],self.size[1]) draw.line(self.screen,(0,0,0),pos,pos2,1) for x in range(self.mapSize[1]): pos = (0,x*self.squaresize[1]) pos2 = (self.size[0],x*self.squaresize[1]) draw.line(self.screen,(0,0,0),pos,pos2,1) #draw.circle(self.screen, (0,0,0), (state[0]*self.squaresize[0]+self.squaresize[0]/2,state[1]*self.squaresize[1]+self.squaresize[1]/2),8) self.clock.tick() self.fps = self.clock.get_fps() self.statprint("FPS: %i Step: %i Total Reward: %i Average Reward: %i Episode: %i" % (self.fps,self.steps,self.reward,self.reward/self.steps,self.episode),1,1,color=(200,100,0)) if flip: display.flip() if __name__ == '__main__': env = Map2D() env.run()
  3. Numpy = Matlab
  4. epsilon-gulosa variando epsilon (0, 0.1), e lambda (1.0, 0.5, 0)    Inicialização otimista
  5. softmax (com tau = 0.1), variando entre 5 valores de lambda (0,0.2,0.5,0.8,1)
  6. softmax com decaimento automático de tau, cuja agenda seguiu a seguinte fórmula: 100000/t2, onde t é o número do episódio de 1 a 1000. Permitindo muita exploração no começo (tau = 100000) e uma política mais gulosa ao final (tau = 0.1), o algoritmo conseguiu chegar à solução ótima com lambda = 1
  7. Mesmo resultado dos slides de aula, também com apenas 1 erro em relação ao processo gerador.   O algoritmo chega consistentemente, com algo em torno de 5 a 14 iterações, ao mesmo resultado para os centróides, mesmo com pequenas variações na matriz de pertinências (aparentemente diferenças em um ponto são compensadas em outros pontos). O critério de parada foi |U(t) - U(t-1)| < epsilon, com epsilon = 0.1 e um limite de 20 iterações. O expoente utilizado foi m = 2.
  8. Disable
  9. Marcadores de histórico, número de inovação, disjuntos e excesso.
  10. Double-Pole Balancing Derivada das diferenças de ângulo Recorrente http://www.cs.utexas.edu/users/kstanley/regression.avi http://www.cs.utexas.edu/users/kstanley/movies/peonsmaster6.avi
  11. Resolução infinita Galactic Arms Race
  12. Múltiplas camadas = múltiplas saídas na CPPN Relações geométricas, damas Modularidade Escala http://www.youtube.com/watch?v=DYz_SeIbzEo http://www.youtube.com/watch?v=DiOYgYjbORg http://www.youtube.com/watch?v=lmPJeKRs8gE