pertemuan 13 weak slot-and-filler structures

26
1 Pertemuan 13 Weak Slot-and-Filler Structures Matakuliah : T0264/Inteligensia Semu Tahun : Juli 2006 Versi : 2/2

Upload: decima

Post on 25-Feb-2016

129 views

Category:

Documents


5 download

DESCRIPTION

Pertemuan 13 Weak Slot-and-Filler Structures. Matakuliah: T0264/Inteligensia Semu Tahun: Juli 2006 Versi: 2/2. Learning Outcomes. Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : > >. Outline Materi. Materi 1 Materi 2 Materi 3 Materi 4 Materi 5. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Pertemuan 13 Weak Slot-and-Filler Structures

1

Pertemuan 13Weak Slot-and-Filler Structures

Matakuliah : T0264/Inteligensia Semu Tahun : Juli 2006Versi : 2/2

Page 2: Pertemuan 13 Weak Slot-and-Filler Structures

2

Learning Outcomes

Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu :• << TIK-99 >>• << TIK-99>>

Page 3: Pertemuan 13 Weak Slot-and-Filler Structures

3

Outline Materi

• Materi 1• Materi 2• Materi 3• Materi 4• Materi 5

Page 4: Pertemuan 13 Weak Slot-and-Filler Structures

4

9.2. Frames

• Frame (Bingkai).Frame merupakan kumpulan pengetahuan tentang suatu obyek tertentu, peristiwa, lokasi, situasi atau informasi lainnya.

• Frame memiliki slot yang menggambarkan rincian (atribut) dan karakteristik obyek.

• Frame biasanya digunakan untuk merepresentasikan pengetahuan yang didasarkan pada karakteristik yang sudah dikenal yang merupakan pengalaman-pengalaman.

Page 5: Pertemuan 13 Weak Slot-and-Filler Structures

5

Frames

• Dengan menggunakan Frame maka sangat mudah untuk membuat inferensi tentang obyek, peristiwa atau situasi baru. Hal ini karena Frame menyediakan basis pengetahuan yang ditarik dari pengalaman.

Page 6: Pertemuan 13 Weak Slot-and-Filler Structures

6

Frames : Transportasi Darat

Macam Mobil

Mobil sedan

Mobil minibus

Alat Transportasi

Transp. Laut

Transp. Darat

Macam Angk Darat

Angk. Tanpa mesin

Slot Mobil

Jenis BBM

Mobil Bensi

Mobi Solar

Page 7: Pertemuan 13 Weak Slot-and-Filler Structures

7

Frames

A Simplified Frame SystemPerson

isa : Mammalcardinality : 6,000,000.000* handed : Right

Adult-Maleisa : Personcardinality : 2,000,000,000*height : 5-10

ML-Baseball-PlayerIsa : Adult-MaleCardinality : 624*height : 6-1*bats : equal to handed*batting-average : .252*team :*uniform-color :

Page 8: Pertemuan 13 Weak Slot-and-Filler Structures

8

Representing the Class of All Teams as a MetaclassClass

instance: Classisa : Class*cardinality :

Teaminstance: Classisa : Classcardinality :{the number of teams that exist}*team size : {each team has a size}

ML-Baseball-Teaminstance: Classisa : Classcardinality :26 {the number of baseball team that exist}*team size : 24 {default 24 players on team}*manager

Brooklyn-Dodgersinstance: ML-Baseball-Teamisa : ML-Basball-Plyerteam size : 24 manager : Lea-Durocher*uniform-color : Blue

Pee-Wee-Reeseinstance: Brooklyn-Dodgersisa : Fielderuniform color : Blue batting-average : .309

Page 9: Pertemuan 13 Weak Slot-and-Filler Structures

9

Classes and Metaclasses

Page 10: Pertemuan 13 Weak Slot-and-Filler Structures

10

Representing Relationships among Classes

Page 11: Pertemuan 13 Weak Slot-and-Filler Structures

11

Representing Relationships among Classes

ML-Baseball-Playeris-covered-by : {Pitcher, Catcher, Fielder}

{American-Leaguer, National-Leaguer}Pitcher

isa : ML-Baseball-Playermutually-disjoint-with : {Catcher, Fielder}

Catcher isa : ML-Baseball-Playermutually-disjoint-with : {Pitcher, Fielder}

Fielder isa : ML-Baseball-Playermutually-disjoint-with : {Pitcher, Catcher}

American-Leaguer isa : ML-Baseball-Playermutually-disjoint-with : {National-Leaguer}

National-Leaguerisa : ML-Baseball-Playermutually-disjoint-with : {American-Leaguer}

Three-Finger-Browninstance : Pitcherinstance : National-Leaguer

Page 12: Pertemuan 13 Weak Slot-and-Filler Structures

12

Slots as Full-Fledged Objects

We want to be able to represent and use the following properties of slots (attributes or relations) :

•The classes to which the attribute can be attached.

•Constraints on either the type or the value of the attribute.

•A value that all instances of a class must have by the definition of the class.

•A default value for the attribute.

•Rules for inheriting values for the attribute.

Page 13: Pertemuan 13 Weak Slot-and-Filler Structures

13

Slots as Full-Fledged Objects

• Rules for computing a value separately from inheritance.

• An inverse attribute.

• Whether the slots is single-valued or multivalued.

Page 14: Pertemuan 13 Weak Slot-and-Filler Structures

14

Representing Slots as Frames, I

Page 15: Pertemuan 13 Weak Slot-and-Filler Structures

15

Representing Slots as Frame, II

Slots

isa : Classinstance : Class•domain : •range :•range-constraint :•definition :•default :•transfers-through :•to-compute :•inverse :•single-valued :

Page 16: Pertemuan 13 Weak Slot-and-Filler Structures

16

Representing Slots as Frame, II

manager

instance :slotsdomain :ML-Baseball-Teamrange :Personrange-constraint : x(experience x.manager)default :inverse : manager-ofsingle-valued: TRUE

Page 17: Pertemuan 13 Weak Slot-and-Filler Structures

17

Representing Slots as Frames, IIImy-manager

Instance :Slot Domain :ML-Baseball-Player Range :Person Range-constraint :x(experience x.my-manager) To-compute :x (x.team).manager Single-valued :TRUE

Color

Instance :Slot Domain :Physical-Object Range :Color-Set Transfers-through :Top-level-part-of Visual-salience :High Single-valued :FALSE

Page 18: Pertemuan 13 Weak Slot-and-Filler Structures

18

Representing Slots as Frames, IVUniform-color

Instance :Slot Isa :color Domain :Team-player Range :Color-Set Range-constraint :not Pink Visual-salience :High Single-valued :FALSE

Bats

Instance :Slot Domain :ML-Baseball-Player Range :{Left, Right, Switch} To-compute :x x.handed Single-valued :TRUE

Page 19: Pertemuan 13 Weak Slot-and-Filler Structures

19

Tangled HierarchiesHierarchies that are not trees are called tangled hierarchies

We want to decide whether Fifi can fly

The correct answer is no

Page 20: Pertemuan 13 Weak Slot-and-Filler Structures

20

Tangled Hierarchies

Determining whether Dick is a pacifist.

Transverse multiple instance link and more than one answer can be found along the path.

Page 21: Pertemuan 13 Weak Slot-and-Filler Structures

21

More Tangled Hierarchies

Page 22: Pertemuan 13 Weak Slot-and-Filler Structures

22

More Tangled Hierarchies

• In the case of (a), our new algorithm reaches Bird (via Pet-Bird) before it reaches Ostrich. So it report that Fifi can fly.

• In the case (b), the algorithm reaches Quaker and stops without noticing a contradiction.

• The problem is that path length does not always corresponds to the level of generality of class.

• The solution to this problem is to base our inheritance algorithm not on path length but on the notion of inferential distance, which can be defined as follows :

Page 23: Pertemuan 13 Weak Slot-and-Filler Structures

23

Defining Property InheritanceInferential Distance :

Class1 is closer to Class2 than to Class3 if and only if Class1 has an inference path through Class2 to Class3 (in other words, Class2 is between Class1 and Class3)

We can now define the result of inheritance as follows : The set of competing values for a slot S in a frame F contains all those values that

• Can be derived from some frame X that is above F in the isa hierarchy• Are not contradicted by some frame Y that has a shorter inferential distance to F than X does

Page 24: Pertemuan 13 Weak Slot-and-Filler Structures

24

Algorithm : Property Inheritance

To retrieve a value V for slot S of an instance F do : 1. Set CANDIDATES to empty.2. Do breadth-first or Dept-first search up the isa

hierarchy from F, following all instance and isa link. At each step, see if a value for S or one of its generalizations is stored.

a. If a value is found, add it to CANDIDATES and terminate that branch of the search.

b. If no value is found but there instance or isa link upward, follow them.

c. Otherwise terminate the branch.

Page 25: Pertemuan 13 Weak Slot-and-Filler Structures

25

Algorithm : Property Inheritance

3. For each element C of CANDIDATES do : a. See if there is any other element of

CANDIDATES that was derived from a class closer to F than the class from which C came.

b. If there is, then removed C from CANDIDATES.

4. Check the cardinality of CANDIDATES : a. If it is 0, then report that no value was found.b. If it is 1, then return the single element of

CANDIDATES as V.c. If it is greater then 1, report a contradiction.

Page 26: Pertemuan 13 Weak Slot-and-Filler Structures

26

<< CLOSING>>

End of Pertemuan 13

Good LuckFor

Medial Semester Test