Copyright © 2002 Cycorp Writing Efficient CycL: Part 2 Part One: General Suggestions –Simpler is Better –Use Rule Macro Predicates –Create Simplifying.

Slides:



Advertisements
Similar presentations
Months of the year December January November October February
Advertisements

WALT: Know the months of the year poem. Answer questions about the months.
DOT 1 January , 1990 DOT 2 July 23 - August 3, 1990.
Chubaka Producciones Presenta :.
2012 JANUARY Sun Mon Tue Wed Thu Fri Sat
Copyright © 2002 Cycorp Errors with Constants, Variables, and Reliance on NL Errors with Specialization, Generalization, and Rules Other Errors Errors.
January 2012 Monday Tuesday Wednesday Thursday Friday Sat/ Sun / /8 14/15 21/22 28/
The days of the week Saturday Sunday Monday Tuesday Wednesday Thursday
/3024/ SUN MON TUE WED THU FRI SAT JANUARY 2011 February 2011 SMTWTFS
P Pathophysiology Calendar. SundayMondayTuesdayWednesdayThursdayFridaySaturday January 2012.
Copyright © 2002 Cycorp Writing Efficient CycL Part 1 Part One –Simpler is Better –Use Rule Macro Predicates –Create Simplifying Vocabulary Part Two –Factor.
Chicas, este calendario si es pa' nosotras !!!!!.
6/23/11 FAIS,LLC Five Apple/Inpatient Specialist Case Study Patient Volume/LOS/ Payor Source Data.
MONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSAT/SUN Note: You can print this template to use as a wall calendar. You can also copy the slide for any month to add.
You can print this template to use it as a wall calendar, or you can copy the page for any month to add it to your own presentation. If you’d like to change.
2007 Monthly Calendar You can print this template to use it as a wall calendar, or you can copy the page for any month to add it to your own presentation.

WORD JUMBLE. Months of the year Word in jumbled form e r r f b u y a Word in jumbled form e r r f b u y a february Click for the answer Next Question.
DATE POWER 2 INCOME JANUARY 100member X 25.00P2, FEBRUARY 200member X 25.00P5, MARCH 400member X 25.00P10, APRIL 800member.
Months of the year. jANUARY New year’s day fEBRUARY Valentine’s day.
Calendar for 2011 Months of the Year with Holidays.
2011 Calendar Important Dates/Events/Homework. SunSatFriThursWedTuesMon January
TEMPORAL VISUALIZATION OF DATA FROM THE FRENCH SENTINEL NETWORK.
July 2007 SundayMondayTuesdayWednesdayThursdayFridaySaturday
Dictation practice 2nd Form Ms. Micaela-Ms. Verónica.
JANUARY FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST SEPTEMBER
JANUARY FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST SEPTEMBER
TIMELINES PHOTOS This is an example text
TIMELINES PHOTOS This is an example text
McDonald’s Kalender 2009.
McDonald’s Kalender 2009.
JANUARY 2018 SUNDAY MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY
13-block rotation schedule
1   1.テキストの入れ替え テキストを自由に入れ替えることができます。 フチなし全面印刷がおすすめです。 印刷のポイント.
JANUARY FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST SEPTEMBER
January MON TUE WED THU FRI SAT SUN
January MON TUE WED THU FRI SAT SUN
Seasons, Months and Weather
McDonald’s Kalender 2009.
January Sun Mon Tue Wed Thu Fri Sat
January MON TUE WED THU FRI SAT SUN
January MON TUE WED THU FRI SAT SUN
0845 Analysis I have only very recently taken over responsibility for the 0845 number and whilst questions were asked of Derrick some months ago, we have.
Problem Gambling Clicks to Opgr.org
2300 (11PM) September 21 Blue line is meridian..
January MON TUE WED THU FRI SAT SUN
McDonald’s calendar 2007.
1 - January - Sun Mon The Wed Thu Fri Sat
Teacher name August phone: Enter text here.
January MON TUE WED THU FRI SAT SUN
JANUARY 1 Sun Mon Tue Wed Thu Fri Sat
January MON TUE WED THU FRI SAT SUN
JANUARY 1 Sun Mon Tue Wed Thu Fri Sat
JANUARY 2018 SUNDAY MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY
February 2007 Note: Source:.
| January Sunday Monday Tuesday Wednesday Thursday Friday
January MON TUE WED THU FRI SAT SUN
MONTHS OF THE YEAR January February April March June May July August
S M T W F S M T W F
JANUARY 1 Sun Mon Tue Wed Thu Fri Sat
McDonald’s calendar 2007.
1 January 2018 Sun Mon Tue Wed Thu Fri Sat
Habitat Changes and Fish Migration
January Monday Tuesday Wednesday Thursday Friday Saturday Sunday 30 31
2015 January February March April May June July August September
Habitat Changes and Fish Migration
S M T W F S M T W F
S M T W F S M T W F
E W ©
Presentation transcript:

Copyright © 2002 Cycorp Writing Efficient CycL: Part 2 Part One: General Suggestions –Simpler is Better –Use Rule Macro Predicates –Create Simplifying Vocabulary Part Two: Cyc-Specific Suggestions –Factor out Commonality –Existence is Expensive –Exceptions are Exceptional –State Negations Explicitly –Generalize -- Don’t List –Use #$different

Copyright © 2002 Cycorp Writing Efficient CycL: Part 2 Factor out Commonality Existence is Expensive Exceptions are Exceptional State Negations Explicitly Generalize -- Don’t List Use #$different

Copyright © 2002 Cycorp N*M reduces to N+M When similarity is not a coincidence N*M reduces to N+M A B C D W X Y Z P A B C D W X Y Z

Copyright © 2002 Cycorp Commonalities in Collections Olympic Men’s Individual 400 Meter Butterfly Olympic Women’s Individual 100 Meter Backstroke Olympic Women’s Individual 200 Meter Freestyle Olympic Men’s Individual 200 Meter Backstroke

Copyright © 2002 Cycorp Commonalities in Collections Olympic Competition Individual Competition Swimming Competition Olympic Men’s Individual 400 Meter Butterfly Olympic Women’s Individual 100 Meter Backstroke Olympic Women’s Individual 200 Meter Freestyle Olympic Men’s Individual 200 Meter Backstroke

Copyright © 2002 Cycorp Commonalities in Collections Olympic Competition Individual Competition Swimming Competition Olympic Men’s Individual 400 Meter Butterfly Olympic Women’s Individual 100 Meter Backstroke Olympic Women’s Individual 200 Meter Freestyle Olympic Men’s Individual 200 Meter Backstroke

Copyright © 2002 Cycorp Commonalities in Collections Olympic Competition Individual Competition Swimming Competition Olympic Men’s Individual 400 Meter Butterfly Olympic Women’s Individual 100 Meter Backstroke Olympic Women’s Individual 200 Meter Freestyle Olympic Men’s Individual 200 Meter Backstroke Olympic Individual Swimming

Copyright © 2002 Cycorp Commonalities in Microtheories April 15, 2002 USA Today Sports Section Mt June 2, 2002 USA Today Sports Section Mt October 8, 2002 USA Today Sports Section Mt September 21, 2002 USA Today Sports Section Mt...

Copyright © 2002 Cycorp Commonalities in Microtheories Rules for Games Mt American Sports Competition Mt Current and Historical Stats Mt April 15, 2002 USA Today Sports Section Mt June 2, 2002 USA Today Sports Section Mt October 8, 2002 USA Today Sports Section Mt September 21, 2002 USA Today Sports Section Mt

Copyright © 2002 Cycorp Commonalities in Microtheories April 15, 2002 USA Today Sports Section Mt June 2, 2002 USA Today Sports Section Mt October 8, 2002 USA Today Sports Section Mt September 21, 2002 USA Today Sports Section Mt Rules for Games Mt American Sports Competition Mt Current and Historical Stats Mt

Copyright © 2002 Cycorp Commonalities in Microtheories Rules, Competition, and Stats Mt April 15, 2002 USA Today Sports Section Mt June 2, 2002 USA Today Sports Section Mt October 8, 2002 USA Today Sports Section Mt September 21, 2002 USA Today Sports Section Mt Rules for Games Mt American Sports Competition Mt Current and Historical Stats Mt

Copyright © 2002 Cycorp Microtheories + a Forward Rule XYT A Z PQR  S S PQR

Copyright © 2002 Cycorp Microtheories + a Forward Rule XYTZ PQR  S C S D S A S B S... PQR

Copyright © 2002 Cycorp T PQR  S... S Shared Assumptions Mt Microtheories + a Forward Rule XYZ C DA B PQR

Copyright © 2002 Cycorp Writing Efficient CycL: Part 2 Factor out Commonality Existence is Expensive Exceptions are Exceptional State Negations Explicitly Generalize -- Don’t List Use #$different

Copyright © 2002 Cycorp Concluding #$thereExists Skolemization –In order to conclude #$thereExists, introduce a function to denote the thing that so exists so that we can reason with it –Extends the number of concepts and symbols in the language that the system might have to think about –Things that conclude #$thereExists are a little more expensive than others

Copyright © 2002 Cycorp State Existence Generally Pervasive problem Every elephant has a head Every elephant has a head with a trunk Every cat has a head with whiskers Every spotted wombat has a spotted head … State existence generally, constrain specifically Every animal has a head Every elephant has a trunk An animal’s trunk is part of its head

Copyright © 2002 Cycorp Writing Efficient CycL: Part 2 Factor out Commonality Existence is Expensive Exceptions are Exceptional State Negations Explicitly Generalize -- Don’t List Use #$different

Copyright © 2002 Cycorp Overuse of #$not (#$implies (#$and (#$isa ?BRD #$Bird) (#$not (#$isa ?BRD #$Penguin))) (#$behaviorCapableOf ?BRD #$Flying #$performedBy)) What about Emus? What about these examples? –broken wings –feet in concrete –slathered in crude oil –hypnotized into thinking it is a dog

Copyright © 2002 Cycorp Use Default Reasoning Solution : use default reasoning (#$implies (#$isa ?BRD #$Bird) (#$behaviorCapableOf ?BRD #$Flying #$performedBy)) (#$exceptWhen (#$isa ?BRD #$FlightlessBird) (#$implies (#$isa ?BRD #$Bird) (#$behaviorCapableOf ?BRD #$Flying #$performedBy))) (#$genls #$Penguin #$FlightlessBird) (#$genls #$Emu #$FlightlessBird)...

Copyright © 2002 Cycorp Postpone Checking for Exceptions Save a lot of work –only check for exceptional cases after using the rule #$not ’s in the antecedent of a rule you’re writing? –ask yourself “is this what the rule really means or this a meta-statement about cases where that rule wouldn’t apply and should be stated as an exception?”

Copyright © 2002 Cycorp Writing Efficient CycL: Part 2 Factor out Commonality Existence is Expensive Exceptions are Exceptional State Negations Explicitly Generalize -- Don’t List Use #$different

Copyright © 2002 Cycorp Underuse of #$not Better to conclude than assume Negations can prune inferences Some Powerful Negations #$ disjointWith is not a ( #$disjointWith )

Copyright © 2002 Cycorp Powerful Negations #$SiblingDisjointCollection #$completeExtentKnown is not a ( #$SiblingDisjointCollection ) is not a ( #$SiblingDisjointCollection ) (#$completeExtentKnown #$nationalBorder)

Copyright © 2002 Cycorp Another Powerful Negation #$completeCollectionExtent (#$completeCollectionExtent #$MonthOfYearType) #$January, #$February, #$March, #$April, #$May, #$June, #$July, #$August, #$September, #$October, #$November, #$December + #$Yule ?

Copyright © 2002 Cycorp Writing Efficient CycL: Part 2 Factor out Commonality Existence is Expensive Exceptions are Exceptional State Negations Explicitly Generalize -- Don’t List Use #$different

Copyright © 2002 Cycorp Disjunctions? Try to Generalize “list-em” KR is almost always wrong (#$implies (#$and (#$isa ?PRSN #$Person) (#$or (#$brothers ?PRSN ?SBLNG) (#$sisters ?PRSN ?SBLNG))) (#$feelsTowardsObject ?PRSN ?SBLNG #$Rivalry #$Positive)) Create vocabulary for the generalization #$siblings

Copyright © 2002 Cycorp Writing Efficient CycL: Part 2 Factor out Commonality Existence is Expensive Exceptions are Exceptional State Negations Explicitly Generalize -- Don’t List Use #$different

Copyright © 2002 Cycorp Use #$different Avoid (#$not (#$equals...)) (#$different...) is much better than (#$and(#$not (#$equals )) (#$not (#$equals ))...)

Copyright © 2002 Cycorp Summary Factor out Commonality Existence is Expensive Exceptions are Exceptional State Negations Explicitly Generalize - Don’t List Use #$different Avoid (#$not (#$equals...))