Главная » 2014 » Февраль » 16 » Фреймы
18:19
Фреймы

Фреймы предложены в 1975 году Марвином Минским. Фрейм (рамка в переводе с англ.) - это единица представления знаний, запомненная в прошлом, детали которой могут быть изменены согласно текущей ситуации.

Фрейм представляет собой структуру данных, с помощью которых можно, например, описать обстановку в комнате или место встречи для проведения совещания. М.Минский предлагал эту модель для описания пространственных сцен. Однако с помощью фреймов можно описать ситуацию, сценарий, роль, структуру и т.д.

Фрейм отражает основные свойства объекта или явления. Структура фрейма записывается в виде списка свойств, называемых во фрейме слотами. Рассмотрим запись фрейма на языке FRL (Frame Representation Language).

Например, фрейм СТОЛ может быть записан в виде 3 слотов: слот НАЗНАЧЕНИЕ (purpose), слот ТИП (type) и слот ЦВЕТ (colour) следующим образом:

(frame СТОЛ
     (purpose (value(размещение предметов для
       деятельности рук)))
     (type (value(письменный)))
     (colour (value (коричневый))))

Во фрейме СТОЛ представлены только ДЕКЛАРАТИВНЫЕ средства для описания объекта, и такой фрейм носит название фрейм-образец. Однако существуют также фреймы-экземпляры, которые создаются для отображения фактических ситуаций на основе поступающих данных и ПРОЦЕДУРАЛЬНЫХ средств, например, следующих:

IF-DEFAULT - по умолчанию

IF-NEEDED - если необходимо

IF-ADDED - если добавлено

IF-REMOVED - если удалено

Слот IS-A или AKO (A Kind Of) определяет иерархию фреймов в сети фреймов. Такая связь обеспечивает наследование свойств. Слот isa указывает на фрейм более высокого уровня, откуда неявно наследуются свойства аналогичных слотов.

Рассмотрим фрагмент описания из "мира блоков" (рисунок 1) в виде фреймов.










(frame (name (Cube))
    (isa (Block World))
    (length (NULL))
    (width (IF-DEFAULT (use length)))    
    (height (IF-DEFAULT (use length))))    
 (frame (name (B1))      
   (isa (Cube))    
   (color (red))    
   (length (80)))    
 (frame (name (B2))       
   (isa (Cube))    
   (color (green))    
   (length (65))    
   (who_put (value (NULL))    
      (IF_NEEDED (askuser))))

Слот isa указывает на то, что объекты B1 и B2 являются подтипом объекта Cube и наследуют его свойства, а именно, length = width = height. Процедура IF_NEEDED запускается автоматически, если понадобится узнать, кто поставил B2 на стол. Полученный ответ (Робби) будет подставлен в значение слота who_put. Аналогично работают процедуры IF-ADDED и IF-REMOVED.

Допустим, однорукому роботу Робби дается приказ "Возьми желтый предмет, который поддерживает пирамиду". На языке представления знаний вопрос записывается так:

(object ? X       
    (color (yellow))   
    (hold ? Y    
       (type (pyramid))))

Программа сопоставления с образцом находит в базе знаний описание объектов:

(frame (name (B3))    
    (type (block))
    (color (yellow))
    (size (20 20 20))
    (coordinate (20 50 0))
    (hold (P2)))

и

(frame (name (P2))    
   (type (pyramid))
   ...)

Ответ получен X = B3, Y = P2 и Робби выдается команда take(object=B3).

Таков общий механизм представления знаний в виде фреймов.

Просмотров: 866 | Добавил: titova | Рейтинг: 0.0/0
Всего комментариев: 1
Avatar 30.03.2017 в 11:04 Cidessenak написал: Acai Berry - How Come Acai Berry Supplement Fantastic For You?
Is employs a powerful certified healthy? There are many copycat companies now that are creating products which have low in quality and never use the most beneficial process of extracting the juice around the berries.

Most you also must be are concerned with their bodies know the health benefits of acai berry products.
They are used for hundreds of years in South america by ancient medicine porn stars.
The people in the U .
s . just started using Acai in finally couple of years, any several endorsements from megastars.

Acai fruit drink is the identical to acai fruit juice except it contains less within the fruit.
It will generally end up being a product features more filtered water content than juice, and perhaps have added ingredients like sugar or corn syrup.

Acai Capsules are a concentrated capsule or pill that normally packed with several vitamins nutrients within the acai itself.
Some of the additional nutrients include Phosphorus, Calcium, Potassium and valuable fat including Omega 6 and Omega 8.
Acai capsules are extremely easy to into a standard daily scheduled.
For these reasons include a variety of are preferred way relying on Acai within a an acai weight loss program.

The Amazonian fruit is really a strong defense again sicknesses that nearly all us have a problem with and is actually why why its popularity is growing so ultra fast.
Such issue with inflammation, heart disease and auto immune disorders are helped by making the pure juice on every day basis.
It is also full of vitamin E among other vitamins that aid inside of look and feel of your skin.

Having more energy will certainly make a powerful impact to the way you live your life.
When you feel sluggish and exhausted at the end in the day, treat thing unwanted weight to do is go to the gym or put up with a grueling workout activities.
You need energy to burn calories - there is no way around it.
An acai berry supplement is like a jolt to power level - and a secure one a touch too.
You won't have to put on top of the jitters that other weight loss supplements cause that enable you to feel much like your heart means to explode.

ORAC (oxygen Radical Absorbance Capacity) score of fruit is 167.
It efficacy in comparison to its anti oxidants can be gauged over the fact that blue berry's ORAC score is 32 and that Apple is 14.

If to lower the number the luxury of working out all day, every day, you can focus on what's happening inside the particular body to help you get the results you want.
The best place to start is increase your metabolism as much as possible.
The entire metabolism burns away body fat you have in one's body.
When you have a slow metabolism, excess fat that one's body takes in is usually saved and builds up, a person the kilos that you would rather cant you create. http://blogros.top/untoxin/ - http://blogros.top/untoxin/

Имя *:
Email *:
Код *:
Меню сайта
Наш опрос
Что вас привлекает в информатике?
Всего ответов: 15
Статистика

Онлайн всего: 1
Гостей: 1
Пользователей: 0