Creating a Case-Base using CASL
1 . Introduction
CASL is a terminology used for Case-Based Reasoning. The contents of the case-base happen to be described within a file known as a case record, using the dialect CASL. This software Caspian uses this case file to create a case-base in the pc's memory, that may then end up being accessed and modified to be able to solve concerns, give a diagnosis etc . using Case-Based Reasoning techniques. Once new instances are added to the case-base in the pc's memory, fortunately they are appended to the end of the case file.
The Case-Based Reasoning (CBR) is to find a case that may be similar to the current situation, modify the solution to fit the current condition and then to maintain the case in the case-base.
These processes can be executed using the program Caspian. The purpose of this section is usually to describe the chinese language used in the situation file for specifying cases (CASL), and to identify how Caspian uses this info to create the case-base. You create a circumstance base in CASL making use of your favourite manager and then fill it into Caspian. Caspian checks that it is a legal CASL program as it loads it in (see the Caspian document for more information of error messages).
2 . General Composition of a Case
In CASL, a case is similar to a record in a database. The standard unit is a field that might contain a line, a number, a great enumeration sign or a list. A list item might be any of the four basic types.
There are a number of differences among a CASL case and an ordinary database record: 1) There are two groups of fields in a circumstance. The initial group explains the situation and the nature with the problem. The other group details the solution to the problem. 2) It is possible for any field being omitted. This is true for those fields which are not utilized for indexing (see below). Both field data must include at least one discipline. The problem section must employ at least one discipline as an index.
3) Every single case has a value known as the result. This is the value SUCCESS, or the value FAILURE, or possibly a value among -5 and 5.
4) A case has a name connected with it.
Enumeration fields identified in the trouble section of an instance may be used because indexes. Standard Syntax of the watch case file
The truth file includes a number of obstructs of code. The overall syntax is: Launch
[Repair Rule Definition]
Circumstance Instance Case Instance
CASL explanation document v1. 3
В© UW Aberystwyth, March 1995
The Introduction prevent contains preliminary text which usually gets shown when the plan Caspian provides finished checking out the case data file.
The Case Description defines the types plus the weights with the fields which may appear in an instance. The information in case Definition is utilized for typechecking input situations while the weight loads are used to aid the case-matching process (described below). The Index Classification defines the fields utilized as indices when searching for an identical case. A case base should have at least one field used since an index. The sort of an index field must be a great enumerated type.
The Customization definition describes the customization rules. The purpose of the changes definition is definitely twofold:
1) It provides a ways of specifying that certain symbols or numbers are similar, for complementing purposes.
2) It provides a ways of specifying signs as abstractions of others. This can be useful for making the search more general or for identifying generalised instances. The Restoration Rule description contains the fix rules. The repair rules are used to change the solution gathered from the case-base, to make it more suitable to get the current scenario. Both the Changes definition plus the Repair secret definition could possibly be omitted, nevertheless a completed system should certainly contain the two, if the product is to be a authentic CBR system. The last pair of blocks will be the case situations. These are the cases that make up the case bottom. The case document must include at least one case instance and will need to be...