SlideShare una empresa de Scribd logo
1 de 15
Optimizing search via diversity
 enhancement in evolutionary
         MasterMind

J. J. Merelo, A. Mora, C. Cotta, T. Runársson
   U. Granada & Málaga (Spain) & Iceland
       Http://geneura.wordpress.com
          http://twitter.com/geneura
Game of MasterMind




    Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   2
Let's play,
   then




          Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   3
Consistent combinations




      Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   4
Naïve Algorithm

   Repeat
       Find a
        consistent
        combination
        and play it.




                       Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   5
Looking for consistent solutions

   Optimization algorithm based on distance to
    consistency (for all combinations played)




                                                                                     D=2



                 Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson         6
Not all consistent combinations
        are born the same
                                                     There's at least one
                                                      better than the others
                                                      (the solution).
                                                     Some will reduce the
                                                      remaining search
                                                      space more.
                                                     But scoring them is
                                                      an open issue.


          Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson    7
What we did before




Increase diversity in search via new operators and
              selection mechanisms




                Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   8
What we do now




Fine-tune evolutionary parameters to minimize
   evaluations and number of games played




              Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   9
   Increase diversity.
   Increase speed to
    afford tackling
    bigger sizes.
   Obtain better
    solutions
       Less turns




                     Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   10
Consistent set size




   Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   11
Tournament size




  Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   12
Fine tuned!



                     #Evaluations decreased up
                              to 30%!
                     (Game performance still the
                               same)




Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   13
Open source your science!




       Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   14
Thank you
very much

Questions?




        Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson   15

Más contenido relacionado

Más de Juan J. Merelo

Redes sociales-en-un-rato-piiisa
Redes sociales-en-un-rato-piiisaRedes sociales-en-un-rato-piiisa
Redes sociales-en-un-rato-piiisa
Juan J. Merelo
 

Más de Juan J. Merelo (20)

Acta de defunción de juan monserrat vergés
Acta de defunción de juan monserrat vergésActa de defunción de juan monserrat vergés
Acta de defunción de juan monserrat vergés
 
Ciencia y videojuegos v4
Ciencia y videojuegos v4Ciencia y videojuegos v4
Ciencia y videojuegos v4
 
Como triunfar con tu proyecto en un hackatón
Como triunfar con tu proyecto en un hackatónComo triunfar con tu proyecto en un hackatón
Como triunfar con tu proyecto en un hackatón
 
Benchmarking languages for evolutionary computation
Benchmarking languages for evolutionary computationBenchmarking languages for evolutionary computation
Benchmarking languages for evolutionary computation
 
Benchmarking languages for evolutionary algorithms
Benchmarking languages for evolutionary algorithmsBenchmarking languages for evolutionary algorithms
Benchmarking languages for evolutionary algorithms
 
8º hackatón de proyectos libres de la UGR: Ayuda para los participantes
8º hackatón de proyectos libres de la UGR: Ayuda para los participantes8º hackatón de proyectos libres de la UGR: Ayuda para los participantes
8º hackatón de proyectos libres de la UGR: Ayuda para los participantes
 
Creación de panorámicas con Hugin
Creación de panorámicas con HuginCreación de panorámicas con Hugin
Creación de panorámicas con Hugin
 
Introducción a HDR y Tonemapping con Luminance
Introducción a HDR y Tonemapping con LuminanceIntroducción a HDR y Tonemapping con Luminance
Introducción a HDR y Tonemapping con Luminance
 
Introducción al 7º hackathon UGR
Introducción al 7º hackathon UGRIntroducción al 7º hackathon UGR
Introducción al 7º hackathon UGR
 
Nuevas tecnologías, Modas y docencia en el siglo XXI
Nuevas tecnologías, Modas y docencia en el siglo XXINuevas tecnologías, Modas y docencia en el siglo XXI
Nuevas tecnologías, Modas y docencia en el siglo XXI
 
Open Access and Copyleft
Open Access and CopyleftOpen Access and Copyleft
Open Access and Copyleft
 
Luminance 2014 presentaciión sobre luminance
Luminance 2014 presentaciión sobre luminanceLuminance 2014 presentaciión sobre luminance
Luminance 2014 presentaciión sobre luminance
 
Enforcing Corporate Security Policies via Computational Intelligence Techniques
Enforcing Corporate Security Policies via Computational Intelligence TechniquesEnforcing Corporate Security Policies via Computational Intelligence Techniques
Enforcing Corporate Security Policies via Computational Intelligence Techniques
 
Evostar 2014 Introduction to the conference
Evostar 2014 Introduction to the conferenceEvostar 2014 Introduction to the conference
Evostar 2014 Introduction to the conference
 
Presentación Open Data Day en Granada, 2014
Presentación Open Data Day en Granada, 2014Presentación Open Data Day en Granada, 2014
Presentación Open Data Day en Granada, 2014
 
Introducción al uso de git, el sistema de control de fuentes más molón.
Introducción al uso de git, el sistema de control de fuentes más molón. Introducción al uso de git, el sistema de control de fuentes más molón.
Introducción al uso de git, el sistema de control de fuentes más molón.
 
Redes sociales-en-un-rato-piiisa
Redes sociales-en-un-rato-piiisaRedes sociales-en-un-rato-piiisa
Redes sociales-en-un-rato-piiisa
 
¿Necesitas a la oficina de software libre de la Universidad de Granada?
¿Necesitas a la oficina de software libre de la Universidad de Granada?¿Necesitas a la oficina de software libre de la Universidad de Granada?
¿Necesitas a la oficina de software libre de la Universidad de Granada?
 
Presentación 8º CUSL/6º CUSL granadino
Presentación 8º CUSL/6º CUSL granadinoPresentación 8º CUSL/6º CUSL granadino
Presentación 8º CUSL/6º CUSL granadino
 
El software libre contado a los universitarios
El software libre contado a los universitariosEl software libre contado a los universitarios
El software libre contado a los universitarios
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Optimizing search via diversity enhancement in evolutionary MasterMind

  • 1. Optimizing search via diversity enhancement in evolutionary MasterMind J. J. Merelo, A. Mora, C. Cotta, T. Runársson U. Granada & Málaga (Spain) & Iceland Http://geneura.wordpress.com http://twitter.com/geneura
  • 2. Game of MasterMind Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 2
  • 3. Let's play, then Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 3
  • 4. Consistent combinations Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 4
  • 5. Naïve Algorithm  Repeat  Find a consistent combination and play it. Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 5
  • 6. Looking for consistent solutions  Optimization algorithm based on distance to consistency (for all combinations played) D=2 Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 6
  • 7. Not all consistent combinations are born the same  There's at least one better than the others (the solution).  Some will reduce the remaining search space more.  But scoring them is an open issue. Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 7
  • 8. What we did before Increase diversity in search via new operators and selection mechanisms Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 8
  • 9. What we do now Fine-tune evolutionary parameters to minimize evaluations and number of games played Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 9
  • 10. Increase diversity.  Increase speed to afford tackling bigger sizes.  Obtain better solutions  Less turns Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 10
  • 11. Consistent set size Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 11
  • 12. Tournament size Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 12
  • 13. Fine tuned! #Evaluations decreased up to 30%! (Game performance still the same) Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 13
  • 14. Open source your science! Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 14
  • 15. Thank you very much Questions? Fine tuning Evolutionary Mastermind - Merelo/Mora/Cotta/Runársson 15

Notas del editor

  1. How would you play mastermind? It's not easy to do, since possible branches are many more than for Sudoku or even chess. In fact, this is the kind of game that can be played more easily by a machine than by a person. CC picture from http://www.flickr.com/photos/unloveable/2399932549/
  2. One of the possible ways to find solutions. Could be others, of course, but this is a good one.
  3. Like the birds. They look the same, but one of them has a bad hair day. Or rather a bad feather day. Let's just say that what we do is, once a solution is consistent, we find a scoring based on how the set of consistent solutions is partitioned by comparing consistent solutions with each other. In other papers we tested different ways of doing it, and we're fixing it here. Ideally, anyways, the solution should have always the maximum fitness, but I'm not sure it does (it will have to be checked)
  4. Creative commons image from Okinawa Soba at http://www.flickr.com/photos/24443965@N08/3606831198/ This was published in NICSO, Evostar, CIG, GECCO (as a póster) and eventually PPSN
  5. CC Picture from San Diego Shooter http://www.flickr.com/photos/nathaninsandiego/3758988303/ New is always better. And better is also always better. Mostly.
  6. Picture from Philip James Claxton at http://www.flickr.com/photos/philipclaxton/4076919342/in/photostream/
  7. Image from John Traynor at http://www.flickr.com/photos/trainor/3028243647/in/photostream/
  8. All source, data sets, experiment results for this paper are available from Sourceforge (in fact, they were while we were doing it). Source is also available from the CPAN Perl module server worldwide, in two separate modules: the algorithm itself as the module Algorithm::Mastermind (along with other algorithms; for instance, Knuth's algorithm), and the EA in the shape of the Evolutionary Algorithm library.