Różnice

Różnice między wybraną wersją a wersją aktualną.

Odnośnik do tego porównania

pl:prolog:pllib:recognize_objects [2019/06/27 15:50] (aktualna)
Linia 1: Linia 1:
 +====== Recognize objects ======
 +{{tag>​geometry diagnostic_systems}}
 +===== Description =====
 +Attribute definitions and examples for learning to recognize objects from their silhouettes
 +
 +
 +**Source**: ​ PROLOG programming for artificial intelligence,​ 3rd Edition, Harlow, 2001, ISBN 0-201-40375-7.
 +
 +===== Download =====
 +Program source code: {{recognize_objects.pl}}
 +===== Listing =====
 +<code prolog>
 +% Figure 18.9  Attribute definitions and examples for learning to 
 +
 +% recognize objects from their silhouettes (from Figure 18.8).
 +
 +
 +
 +
 +
 +attribute( size, [ small, large]).
 +
 +attribute( shape, [ long, compact, other]).
 +
 +attribute( holes, [ none, 1, 2, 3, many]).
 +
 +
 +
 +example( nut, [ size = small, shape = compact, holes = 1]).
 +
 +example( screw, [ size = small, shape = long, holes = none]).
 +
 +example( key, [ size = small, shape = long, holes = 1]).
 +
 +example( nut, [ size = small, shape = compact, holes = 1]).
 +
 +example( key, [ size = large, shape = long, holes = 1]).
 +
 +example( screw, [ size = small, shape = compact, holes = none]).
 +
 +example( nut, [ size = small, shape = compact, holes = 1]).
 +
 +example( pen, [ size = large, shape = long, holes = none]).
 +
 +example( scissors, [ size = large, shape = long, holes = 2]).
 +
 +example( pen, [ size = large, shape = long, holes = none]).
 +
 +example( scissors, [ size = large, shape = other, holes = 2]).
 +
 +example( key, [ size = small, shape = other, holes = 2]).
 +
 +</​code>​
 +
 +===== Comments =====
  
pl/prolog/pllib/recognize_objects.txt · ostatnio zmienione: 2019/06/27 15:50 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0