jeux et intelligence artificielle - loria · 2014. 4. 17. · jeux et intelligence artificielle les...
TRANSCRIPT
![Page 1: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/1.jpg)
Jeux et Intelligence ArtificielleLes jeux comme introduction à des problemes IA
Journée ISN – 17 Avril 2014
Vincent ThomasMaitre de conférences en informatiqueUL - IUT Nancy Charlemagne / LORIA – équipe MAIA
![Page 2: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/2.jpg)
IA ?
● Domaine vaste● Definition non consensuelle
● Intelligent pour une machine ?
![Page 3: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/3.jpg)
IA ?
● Domaine vaste● Definition non consensuelle
● Intelligent pour une machine ?● Se faire passer pour un humain (test Turing)● Apprendre et savoir s'adapter● Battre un humain
![Page 4: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/4.jpg)
Jeu et IA
![Page 5: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/5.jpg)
Jeux
● Domaine vaste aussi
● Jeux stratégie abstrait● Pas de hasard (vs Backgammon)● Nombre états finis (vs Jeu continu)● Pas de cycles (vs échecs)● Jeu séquentiel (vs pierre/feuille/ciseaux)● Information complete (vs stratégo / mastermind)
![Page 6: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/6.jpg)
Jeux
● Domaine vaste aussi
● Jeux stratégie abstrait● Pas de hasard (vs Backgammon)● Nombre états finis (vs Jeu continu)● Pas de cycles (vs échecs)● Jeu séquentiel (vs theorie des jeux, shifumi)● Information complete (vs stratégo, mastermind)
● Difficultés trés variables (hasard vs séquentiel)
![Page 7: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/7.jpg)
Jeu de tictactoe
![Page 8: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/8.jpg)
Jeu de tictactoe
● Un exemple
![Page 9: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/9.jpg)
Jeu de tictactoe
● Un exemple
Prétention d'avoir un algorithme capable de tout résoudre
![Page 10: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/10.jpg)
Représentation
● Représenter un jeu ?
![Page 11: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/11.jpg)
Représentation
● Données
● Opérations
![Page 12: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/12.jpg)
Représentation
● Données
● Opérations● Intialiser jeu● Coups possibles● Jouer un coup● Gagne / perdu
![Page 13: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/13.jpg)
Représentation
● Données
● Opérations● Intialiser jeu● Coups possibles● Jouer un coup● Gagne / perdu
![Page 14: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/14.jpg)
Modélisation Morpion
● Fournie dans un fichier python
![Page 15: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/15.jpg)
Raisonnement
gagné
![Page 16: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/16.jpg)
Raisonnement
gagné
![Page 17: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/17.jpg)
Raisonnement
gagné
![Page 18: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/18.jpg)
Raisonnement
![Page 19: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/19.jpg)
Raisonnement
![Page 20: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/20.jpg)
Raisonnement
![Page 21: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/21.jpg)
Raisonnement
![Page 22: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/22.jpg)
Raisonnement
![Page 23: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/23.jpg)
Algorithme MinMax
(wikipedia)
![Page 24: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/24.jpg)
Algorithme MinMax
(wikipedia)
● 2 phases● Propagation
![Page 25: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/25.jpg)
Algorithme MinMax
(wikipedia)
● 2 phases● Propagation● Calcul
![Page 26: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/26.jpg)
Algorithme MinMax
● 2 phases● Propagation● Calcul
● Comment faire ?● Parcours d'arbre (je développe tout et je stocke)● Experiences (je fais plein de parties au hasard)● Recursivité (je développe implicitement avec fonction)
![Page 27: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/27.jpg)
Extension
● Algorithme générique ?
● Capable de traiter tous les jeux ?
![Page 28: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/28.jpg)
Extension
● Algorithme générique ?
● Capable de traiter tous les jeux ?● Profondeur arbre ? (échec ?)
● Améliorer ?● Elagage: Alpha beta, Heuristiques admissibles● Profondeur fixée: Heuristique
![Page 29: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/29.jpg)
Conclusion
● Jeu = IA Symbolique ● Manière dont IA voit le monde● Manipulation de symbole
![Page 30: Jeux et Intelligence Artificielle - LORIA · 2014. 4. 17. · Jeux et Intelligence Artificielle Les jeux comme introduction à des problemes IA Journée ISN – 17 Avril 2014 Vincent](https://reader033.vdocuments.fr/reader033/viewer/2022051812/602baf67b2a4aa58367e8732/html5/thumbnails/30.jpg)
Conclusion
● Jeu = IA Symbolique ● Manière dont IA voit le monde● Manipulation de symbole
● Dans la vraie vie● Monde continu● Interpretation● ...
Brooks (1980)Intelligence sans représentation