Изкуствен интелект Изкуствен интелект Упражнение № 10 спец. Информатика, ФМИ 2003/2004.

Slides:



Advertisements
Similar presentations
You’re a Grand Old Flag.
Advertisements

Unit 3 Copyright © 2006 MES-English.com.
Изкуствен интелект Изкуствен интелект Упражнение 10 спец. Информатика, ФМИ 2004/2005.
1/8 AND, OR and NOT b How many boys? b How many girls? b How many blue? b How many red?

9.8 Factoring by Grouping. 9.8 – Factor by Grouping Goals / “I can…”  Factor polynomials with 4 terms  Factor trinomials by grouping.
WHO IS WHO?.
Compound Events Compound event - an event that is a combination of two or more stages P(A and B) - P(A) X P(B)
© red ©
May 12-15, 2011 (red) May 6-11, 2011 (light red) Permanent Water (blue)
Particle Kinematics: Circular Motion. Circular Motion.
7.1 – Multiplying Monomials. x · x = x 1 · x 1 =
Bellwork Keep it :) Factor by grouping 1. 2xy - x 2 y x 2. 3m 2 + 9m + km + 3k.
Mrs. Smith’s 7th Grade Reading Blue Class Mrs. Smith’s 7th Grade Reading Blue Class Mrs. Smith’s 7th Grade Reading Blue Class.
Loading... Reset Bubble Wrap The Ultimate Cure For Boredom! Change Style Change Colour theamigosgroup.weebly.com Light Grey Yellow Blue Red Circle Rounded.
ALGAE.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Target: Locate and graph ordered pairs on a coordinate plane.
Trapezoid Mr. Bradtree wrote the following comparing sentence on the board. Write a decimal that could make the sentence correct. 1. ? 0.28 < < 0.33.
8.1-2 – Exponential Functions. Ex. 1 Sketch the graph of y = 2 x. Then state the functions domain & range.
赴国际水稻所访学情况汇报 长江大学农学院 邢丹英 2010 年 6 月. 学习目的 学习时间、地点 学习内容 学习收获 几点体会 汇报提纲.
Reflection Yes No. Reflection Yes No Line Symmetry.
Изкуствен интелект Изкуствен интелект Упражнение № 9 спец. Информатика, ФМИ 2004/2005.
Thank A Vet Music K-8 Vol. 19, No. 1 CD# 13/30 - All Rights Reserved
Planet Earth By: Miss Norris.
Изкуствен интелект Изкуствен интелект Упражнение № 6 спец. Информатика, ФМИ 2004/2005.
How high is the mountain How deep is the sea How long will man learn to live How blue is the ocean How green is the leaf How long will man learn to be.
= 5 = 2 = 4 = 3 How could I make 13 from these shapes? How could I make 19 from these shapes? STARTER.
LEVEL 1 Lesson #1. Lesson #1: School & Bus Questions Here are the questions we will be asking in this conversation: Yes/No Colors Numbers.
GREEN TURTLE…… MADE BY Tristan Diet Habitat Size Life Span End.
PROBABILITY, EVENTS AND OUTCOMES Yo yo yo welcome back!!!!!!!! Happy NEW YEAR! SWBAT: Define probability, event & outcomes Determine the probability of.
PROBABILITY, EVENTS AND OUTCOMES Yo yo yo welcome back!!!!!!!! Happy NEW YEAR! SWBAT: Define probability, event & outcomes Determine the probability of.
The Big Green Monster has two big green eyes. The Big Green Monster has a long green nose.
A. after all am an and are around as at away.
An urn contains 1 green, 2 red, and 3 blue marbles. Draw two without replacement. 1/6 2/6 3/6 2/5 3/5 1/5 3/5 1/5 2/5 2/30 3/30 2/30 6/30 3/30 6/30.
Scientific Notation. = 5.4 =3.47 Write the following in standard form A 1.8 X 10⁴ B 3.47 X 10⁷ C 4.3 X 10⁰ D 5.4 X 10⁻⁴ E 5 X 10⁻⁶ F (6 X 10⁴) (7 X 10⁵)
南水北调东线第一期工程山东段 情况简介. 主要汇报内容 二、南水北调山东段工程总体布置 三、山东段工程项目划分及工程主 要建设内容 一、南水北调东线工程概况 四、前期工作及工程建设进展情况 五、工程总投资.
1 st Grade Social Studies Danica DeBord. What country do we live in? We live in the United States – The United States is a country. – A country is a body.
Catch the Wave Wave Rate D = measured distance between sensors.
Thesaurus: A reference tool
5-4 Your brother gave you two bags of pens. One bag contained 3 blue pens and 9 red pens. The other bag contained 6 red pens and 4 green pens. Which bag.
What colour?.
Subtractive colour theory
Yesterday, I saw _ ___ ______
South African Flag The South African flag contains the most colours of any national flag. Can you colour it in here? RED WHITE YELLOW WHITE BLACK GREEN.
Dominant vs. Recessive Dominant = trait that is seen over another portrayed as a capital letter Recessive = only seen if with another recessive gene portrayed.
Marine Biology Algae Color pages Directions: Describe the types of algae (labeled with a *) in 2-3 sentences on separate sheet of paper or the back of.
Unit 9 Shopping.
Genetics Practice Problems
M&M’s Results for Group 1
Election #1 Popular Vote Electoral Vote State Red Yellow
Name: _______________________________
Navigation Light Requirements Powerboats less than 39.4 ft.
Thank a Vet.
Graph Transformations
Can I color yellow?. Can I color yellow?
,. . ' ;; '.. I I tI I t : /..: /.. ' : ····t I 'h I.;.; '..'.. I ' :".:".
Thank a Vet.
What Color is it?.
Independent vs. Dependent events
Destiny.
© T Madas.
Hey, ho, nobody home. Meat nor drink nor money have I none. Yet will I be merry. Very merry. Hum.
Ratio: Converting ratio to fractions
- '1:- bs? a ' I.
Shapes.
COLOURS.
Colours Дополнительный иллюстративный материал
Non-Pyrotechnic Signals
Module 2 Lesson C.
Presentation transcript:

Изкуствен интелект Изкуствен интелект Упражнение № 10 спец. Информатика, ФМИ 2003/2004

Машинно самообучение  Формиране на описания на понятия (хипотези):  примери положителни отрицателни  обучаваща извадка  тестова извадка  Обучение за:  едно понятие  много понятия

Машинно самообучение  Езици за представяне на примерите и хипотезите  атрибут-стойност  релационен език  други

Език атрибут стойност  Представяне на примерите: %example (Id, Class, AVS) example(a4,mammal,[has_covering = hair, milk = t, homeothermic = t, habitat = air, eggs = f, gills = f]). example(a5,fish,[has_covering = scales, milk = f, homeothermic = f, habitat = sea, eggs = t, gills = t]). example(a6,reptile,[has_covering = scales, milk = f, homeothermic = f, habitat = land, eggs = t, gills = f]).

Език атрибут стойност  Представяне на хипотезите: IF A i =V ij & … & A k =V km THEN Class p … IF A s =V st & … & A n =V nl THEN Class q

Типове атрибути и стойности  Номинални  Линейни  Структурни

learn(H):- findall([Class|AVS], findall([Class|AVS], example(_,Class,AVS), example(_,Class,AVS), Ex), Ex), lrn(Ex,H). lrn(Ex,H).

lrn(E,H) :- lrn(E,H) :- del([Class|A],E,E1), del([Class|A],E,E1), del([Class|B],E1,E2), del([Class|B],E1,E2), lgg(A,B,LGG,Class), lgg(A,B,LGG,Class), \+((member([C1|LGG],E2), \+((member([C1|LGG],E2), \+(Class=C1))), \+(Class=C1))), lrn([[Class|LGG]|E2],H). lrn([[Class|LGG]|E2],H). lrn(H,H). lrn(H,H).

lgg([],[],[],Class). lgg([],[],[],Class). lgg([A=V1|Rest1],[A=V2|Rest2], [A=H1|Hyp],Class) :- lgg([A=V1|Rest1],[A=V2|Rest2], [A=H1|Hyp],Class) :- lgg1(A,V1,V2,H1,Class), lgg1(A,V1,V2,H1,Class), lgg(Rest1,Rest2,Hyp,Class). lgg(Rest1,Rest2,Hyp,Class).

lgg1(_,X,Y,X,_):- X==Y,!. lgg1(_,X,Y,X,_):- X==Y,!. lgg1(A,X,Y,_,C):- lgg1(A,X,Y,_,C):- X \== Y, nominal(C,N),member(A,N). nominal(C,N),member(A,N). lgg1(A,X,Y,H,C):- lgg1(A,X,Y,H,C):- X \==Y, X \==Y, linear(C,L),member(A,L), linear(C,L),member(A,L), cover(X,Y,H). cover(X,Y,H). lgg1(A,X,Y,H,C):- lgg1(A,X,Y,H,C):- X \==Y, X \==Y, struct(C,L),member(A,L), struct(C,L),member(A,L), common_parent(X,Y,H,C). common_parent(X,Y,H,C).

cover(X,X,X):-!.cover(X,Y,[Min,Max]):- atom(X),atom(Y),!, atom(X),atom(Y),!, min(X,Y,Min), min(X,Y,Min), max(X,Y,Max). max(X,Y,Max).cover(X,[Y1,Y2],[Min,Max]):- atom(X),!, atom(X),!, min(X,Y1,Min), min(X,Y1,Min), max(X,Y2,Max). max(X,Y2,Max).cover([X1,X2],Y,[Min,Max]):- atom(Y),!, atom(Y),!, min(X1,Y,Min), min(X1,Y,Min), max(X2,Y,Max). max(X2,Y,Max).cover([X1,X2],[Y1,Y2],[Min,Max]):- min(X1,Y1,Min), min(X1,Y1,Min), max(X2,Y2,Max). max(X2,Y2,Max).

min(X,X,X):-!.min(X,Y,X):-X<Y,!.min(X,Y,Y):-X>Y.max(X,X,X):-!.max(X,Y,X):-X>Y,!.max(X,Y,Y):-X<Y.

common_parent(X,Y,H,C):- parent(H,X,C), parent(H,X,C), parent(H,Y,C). parent(H,Y,C).parent(X,X,C).parent(X,Y,C):-isa(C,Y,X).parent(X,Y,C):-isa(C,Y,Z),parent(X,Z,C).

del(X,[X|T],T). del(X,[Y|T],[Y|V]) :- del(X,T,V). member(X,[X|_]). member(X,[_|T]) :- member(X,T). write_list([]). write_list([H|Rest]):- write(H),nl, write_list(Rest).

Пример example(a1,mammal,[has_covering = hair, milk = t, homeothermic = t, habitat = land, eggs = f, gills = f]). example(a2,mammal,[has_covering = none, milk = t, homeothermic = t, habitat = sea, eggs = f, gills = f]). example(a3,mammal,[has_covering = hair, milk = t, homeothermic = t, habitat = sea, eggs = t, gills = f]). example(a4,mammal,[has_covering = hair, milk = t, homeothermic = t, habitat = air, eggs = f, gills = f]). example(a5,fish,[has_covering = scales, milk = f, homeothermic = f, habitat = sea, eggs = t, gills = t]).

Пример example(a6,reptile,[has_covering = scales, milk = f, homeothermic = f, habitat = land, eggs = t, gills = f]). example(a7,reptile,[has_covering = scales, milk = f, homeothermic = f, habitat = sea, eggs = t, gills = f]). example(a8,bird,[has_covering = feathers, milk = f, homeothermic = t, habitat = air, eggs = t, gills = f]). example(a9,bird,[has_covering = feathers, milk = f, homeothermic = t, habitat = land, eggs = t, gills = f]). example(a10,amphibian,[has_covering = none, milk = f, homeothermic = f, habitat = land, eggs = t, gills = f]).

Пример struct(_,[]).linear(_,[]).nominal(_,[has_covering,milk,homeothermic,habitat,eggs,gills])

Пример | ?- learn(H),write_list(H). [bird,has_covering=feathers,milk=f,homeothermic=t, habitat=_3699,eggs=t,gills=f][reptile,has_covering=scales,milk=f,homeothermic=f,habitat=_3039,eggs=t,gills=f][mammal,has_covering=_2095,milk=t,homeothermic=t,habitat=_2324,eggs=_2464,gills=f][fish,has_covering=scales,milk=f,homeothermic=f,habitat=sea,eggs=t,gills=t] [amphibian,has_covering=none,milk=f,homeothermic=f, habitat=land,eggs=t,gills=f]

Пример example(1,pos,[hs = octagon, bs = octagon, sm = no, ho = sword, jc = red, ti = yes]). example(2,pos,[hs = octagon, bs = octagon, sm = yes, ho = sword, jc = red, ti = yes]). example(2,pos,[hs = octagon, bs = octagon, sm = yes, ho = sword, jc = red, ti = yes]). example(3,neg,[hs = round, bs = square, sm = yes, ho = sword, jc = blue, ti = no]). example(3,neg,[hs = round, bs = square, sm = yes, ho = sword, jc = blue, ti = no]). example(4,neg,[hs = round, bs = square, sm = yes, ho = flag, jc = green, ti = yes]). example(4,neg,[hs = round, bs = square, sm = yes, ho = flag, jc = green, ti = yes]). example(5,pos,[hs = octagon, bs = round, sm = yes, ho = sword, jc = red, ti = yes]). example(5,pos,[hs = octagon, bs = round, sm = yes, ho = sword, jc = red, ti = yes]). example(6,pos,[hs = square, bs = octagon, sm = yes, ho = sword, jc = red, ti = yes]). example(6,pos,[hs = square, bs = octagon, sm = yes, ho = sword, jc = red, ti = yes]). example(7,pos,[hs = square, bs = square, sm = no, ho = sword, jc = red, ti = yes]). example(7,pos,[hs = square, bs = square, sm = no, ho = sword, jc = red, ti = yes]).

Машинно самообучение | ?- learn(H),write_list(H). [neg,hs=octagon,bs=square,sm=yes,ho=_125218,jc=blue, ti=no][neg,hs=square,bs=round,sm=_123819,ho=_123946,jc=green,ti=_124150] [neg,hs=octagon,bs=round,sm=_120834,ho=_120961,jc=yellow, ti=no] [neg,hs=square,bs=octagon,sm=_116815,ho=_116942,jc=green, ti=_117146] [neg,hs=square,bs=round,sm=_113808,ho=_113935,jc=yellow,ti=no][neg,hs=square,bs=round,sm=_111648,ho=_111775,jc=blue,ti=_111979] [neg,hs=round,bs=octagon,sm=_106498,ho=_106625,jc=yellow, ti=_106829] [neg,hs=round,bs=octagon,sm=_101722,ho=_101849,jc=green,ti=_102053]

[neg,hs=round,bs=octagon,sm=_100472,ho=_100599,jc=blue,ti=_100803][pos,hs=round,bs=round,sm=_93315,ho=_93442,jc=_93582,ti=_93735][pos,hs=square,bs=square,sm=_84522,ho=_84649,jc=_84789,ti=_84942][pos,hs=octagon,bs=octagon,sm=_70090,ho=_70217,jc=_70357,ti=_70510][neg,hs=round,bs=square,sm=_55652,ho=_55779,jc=yellow,ti=_55983][neg,hs=round,bs=square,sm=_51710,ho=_51837,jc=green,ti=_52041][neg,hs=round,bs=square,sm=_45417,ho=_45544,jc=blue,ti=_45748][pos,hs=_41557,bs=_41658,sm=_41772,ho=_41899,jc=red,ti=_42103][neg,hs=octagon,bs=round,sm=no,ho=flag,jc=green,ti=no][neg,hs=square,bs=octagon,sm=yes,ho=balloon,jc=blue,ti=no][neg,hs=square,bs=octagon,sm=no,ho=flag,jc=yellow,ti=yes][neg,hs=octagon,bs=square,sm=no,ho=balloon,jc=yellow,ti=yes][neg,hs=octagon,bs=square,sm=no,ho=sword,jc=green,ti=no]