JPH01187637A - Rule acquisition system - Google Patents

Rule acquisition system

Info

Publication number
JPH01187637A
JPH01187637A JP63010645A JP1064588A JPH01187637A JP H01187637 A JPH01187637 A JP H01187637A JP 63010645 A JP63010645 A JP 63010645A JP 1064588 A JP1064588 A JP 1064588A JP H01187637 A JPH01187637 A JP H01187637A
Authority
JP
Japan
Prior art keywords
rule
error
examples
inputted
erroneous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63010645A
Other languages
Japanese (ja)
Inventor
Tsutomu Tashiro
勤 田代
Norihisa Komoda
薦田 憲久
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63010645A priority Critical patent/JPH01187637A/en
Publication of JPH01187637A publication Critical patent/JPH01187637A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To facilitate the derivation of a correct rule even in a case that an example contains an error by pointing out and checking the possibility that the inputted example is erroneous and excluding the error in the case that it is erroneous. CONSTITUTION:An error deciding part 107 compares the example which was inputted hitherto and stored in an example information storage part 104, with the example which is inputted now and stored in an example buffer 106, and decides the possibility that the example now inputted is erroneous. In the case that the possibility that the example inputted now is erroneous exists, an error inquiring part 108 displays it on an input/output terminal 102, and confirms again the decision whether the example is truly erroneous or not to a person who gave the example. When it is erroneous, it comes possible to make the example not to be inputted to a recursive rule acquiring means, and only the correct example is inputted to the recursive rule acquiring means. Thus, even in the case that the error is contained in the example given at first, the correct rule can be easily derived.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はルール型システムに係わり、特にルールを実例
から自動的に生成するのに好適なルール獲得システムに
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a rule-based system, and particularly to a rule acquisition system suitable for automatically generating rules from examples.

〔従来の技術〕[Conventional technology]

ルール型システムは、エキスパートシステム。 A rule-based system is an expert system.

意志決定支援システム、フレキシブルオー1〜メーシヨ
ンの制御システム等において、その論理の記述、変更、
拡張が容易に行なえることから、有効なシステムアーキ
テクチュアとして広く用いられている。
Describing and changing the logic of decision-making support systems, flexible O1 to system control systems, etc.
It is widely used as an effective system architecture because it can be easily expanded.

ここで、従来のルール型システムでは、ルールの作成を
人手によって行なっているため、大規模。
Here, in conventional rule-based systems, rules are created manually, so they are large-scale.

複雑な対象では、多量なルールを矛ノ4なく作成するの
に多くの工数を要している。
For complex targets, it takes a lot of man-hours to create a large number of rules without fail.

この問題に対処するために、マシン ラーニング アン
 アーティフィシャル インテリジェンス アプローチ
 ボリューム 1  (1983年)第41頁から第8
1頁(Machine Learning AnArt
ificj、al  Intelliga口ce  A
pproach、  VoQ  、  1゜(1983
) pp41−81)に論じられている様に、帰納的ル
ール獲得の方式が提案されている。この方式によれば、
具体的な対象状態とその際に実行すべき結論の対から成
る実施例を幾つか与えるだけで、多くの対象状態に適用
できる条件と結論を持つ一般的ルールを矛盾無く自動的
に作成できる。
To address this problem, Machine Learning An Artificial Intelligence Approach Volume 1 (1983) pp. 41-8
1 page (Machine Learning AnArt
ificj, al Intelliga mouth ce A
pproach, VoQ, 1° (1983
), a method of inductive rule acquisition has been proposed, as discussed in pp. 41-81). According to this method,
By simply providing a few examples consisting of pairs of specific target states and conclusions to be executed at that time, general rules with conditions and conclusions that can be applied to many target states can be automatically created without contradiction.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、与える実例に誤りのある場合について
は配慮がされておらず、誤った実例を与えた場合、正し
いルールが導かれないという問題があった。すなわち、
従来技術では、与えられた実例の対象状態を全て満足で
きるようにルールの条件の内容を一般的なもの(多くの
状態を満足する表現)に変化させて行くが、誤った実例
に対してもその対象状態を満足する様な一般化が行なわ
れてしまい、実際に導かれたルールを用いる際、ルール
の結論を実行してはならない状態においてもルールが適
用され思わぬ障害の発生する場合が生じる。
The above-mentioned conventional technology does not take into consideration the case where the example provided is incorrect, and there is a problem in that if an incorrect example is provided, the correct rule cannot be derived. That is,
In the conventional technology, the contents of the rule conditions are changed to general ones (expressions that satisfy many conditions) so that all the target states of a given example can be satisfied, but it is also possible to change the contents of the rule conditions to general ones (expressions that satisfy many conditions). If a generalization is made that satisfies the target state, and when actually using the derived rule, the rule may be applied even in a state where the conclusion of the rule should not be executed, resulting in unexpected failures. arise.

本発明の目的は、実例に誤りを含む場合でも、正しいル
ールを導くことのできるルール獲得システムを提供する
ことにある。
An object of the present invention is to provide a rule acquisition system that can derive correct rules even when examples include errors.

〔課題を解決するための手段〕[Means to solve the problem]

一般に実例は、[つり上げるものがあって、おろせるを
場所があればつり上げる」、「対象が安定ならば正常ラ
ンプをつける」等の方針レベルの論理に基づき、その具
体的内容として与えられる。
In general, examples are given as concrete contents based on logic at the policy level, such as ``If there is something to lift and there is a place to lower it, lift it up'' or ``If the object is stable, turn on the normal lamp.''

このことから、ある1つの方針に沿った実例どうしは、
何らかの点で似かよっており、そうでない物どうしは異
なっていることが期待される。
From this, examples that follow a certain policy are
Things that are similar in some respects are expected to be different in other ways.

本発明では、この点に着目し、同一の結論を持つ実例に
おいて、特に、他の実例と差の大きい対象状態を持つも
のを誤った可能性の高い実例として抽出する誤り実例抽
出手段を設け、従来の帰納的ルール獲得手段に実例を入
力する以前にチエツクする様に構成することにより上記
目的を達成する。
In the present invention, paying attention to this point, an error example extraction means is provided for extracting an example with a target state that has a large difference from other examples as an example with a high possibility of being incorrect among examples with the same conclusion, The above object is achieved by configuring the conventional inductive rule acquisition means to check the example before inputting it.

〔作用〕[Effect]

すなわち、上記誤り実例抽出手段は、誤りの可能性の有
る実例を指摘するので、その実例がほんとうに誤ってい
るかどうかの判定を実例を与えた者に再度確認し、誤っ
ておればその実例を帰納的ルール獲得手段に入力しない
ようにすることが可能となり、帰納的ルール獲得手段に
は正しい実例のみが入力されるので、最初に与えられた
実例に誤りがある場合でも正しいルールを容易に導くこ
とができる。
That is, since the error example extracting means points out an example that has a possibility of error, the person who gave the example confirms whether the example is really wrong or not, and if it is wrong, the example is removed. Since it is possible to avoid inputting information to the inductive rule acquisition means, and only correct examples are input to the inductive rule acquisition means, it is easy to derive the correct rule even if there is an error in the initially given example. be able to.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を用いて説明する。 An embodiment of the present invention will be described below with reference to the drawings.

本実施例のブロック構成を第1図に示す。The block configuration of this embodiment is shown in FIG.

ルール獲得部101は、入出力端末102から入力され
た実例に基づき、ルール記憶部103内にルールを獲得
して行く。与えられた実例は、実例情報記憶部104に
蓄積される。
The rule acquisition unit 101 acquires rules into the rule storage unit 103 based on the example input from the input/output terminal 102. The given example is stored in the example information storage unit 104.

ルール獲得部101は、更に、実例入力部105、実例
バッファ106、誤り判定部107、誤り問い合せ部1
08.ルール生成部109から構成される。
The rule acquisition unit 101 further includes an example input unit 105, an example buffer 106, an error determination unit 107, and an error inquiry unit 1.
08. It is composed of a rule generation section 109.

実例入力部105は、入出力端末102から実例を入力
し、実例バッファ106に蓄積する。
The example input unit 105 receives examples from the input/output terminal 102 and stores them in the example buffer 106 .

誤り判定部107は実例情報記憶部104に記憶されて
いるこれまでに入力された実例と、介入力され実例バッ
ファ106に記憶されている実例とを比較し、介入力さ
れた実例が誤ってし)る可能性の判定を行なう。
The error determination unit 107 compares the examples input so far stored in the example information storage unit 104 with the examples that have been subjected to intervention and are stored in the example buffer 106, and determines whether the examples to which intervention has been applied are erroneous. ).

誤り問い合せ部108は、′入力された実例に誤りの可
能性がある場合、これを入出力端末1.0243表示し
、ユーザの判定を受ける。
If there is a possibility of an error in the input example, the error inquiry unit 108 displays it on the input/output terminal 1.0243 and receives the user's decision.

ルール生成部109は、実例バッファ106中の実例を
一般化ルールを作成する。
The rule generation unit 109 creates a generalization rule for the example in the example buffer 106.

以上において実例とは、実際の対象で生じるシステム状
態と、そのシステム状態の時に取るべき処置との対応を
文字例によって記述したものである。
In the above description, an example is a character example that describes the correspondence between a system state that occurs in an actual object and the action that should be taken when the system state occurs.

あるワークショップにおける具体的制御指示を示す実例
を第2図に示す。矢印の左辺にシステム状態、右辺に取
るべき処置(以下結論と呼ぶ)を記しである。システム
状態は、更に、システムの個々の要素の状態の組み合せ
で表現される。個々の要素の状態、結論は文字列で記述
される。ここで、個々の文字、列はカッコ11 (I+
 、  11) I+でくくって区別する。また、文字
列中にカギカッコ″[′11]I+でくくってパラメー
タを記述しても良い。
An example showing specific control instructions in a certain workshop is shown in FIG. The system status is written on the left side of the arrow, and the action to be taken (hereinafter referred to as conclusion) is written on the right side. The system state is further expressed as a combination of states of individual elements of the system. The status and conclusion of each element are described in character strings. Here, individual characters and strings are shown in parentheses 11 (I+
, 11) Use I+ to distinguish. Further, parameters may be written in the character string by enclosing them in square brackets "['11]I+."

パラメータとは、その文字列において内容が変化する部
分を言う(他の部分は変化しない)。
A parameter is a part of a string whose contents change (other parts do not change).

第2図の例では、例えば、搬入ライン上に種類Aのワー
クが乗っており、搬出ライン上には何もないことが示さ
れているが、システム状態に応じて、パラメータ部分で
ある、ワークの種類や存在の正否が変化する。なお、パ
ラメータの部分に申”の記述されている場合があるが、
これは。
In the example shown in Fig. 2, for example, there is a workpiece of type A on the carry-in line, and there is nothing on the carry-out line. The type and validity of existence change. In addition, "mon" may be written in the parameter part,
this is.

システム状態によってはそのパラメータに意味が無い場
合(ライト上にワークがなければ、その種類には意味が
無い)が有り、この様な場合、そのパラメータにあては
まる具体値が無い(空である)ことを明示するものであ
る。
Depending on the system state, the parameter may have no meaning (if there is no work on the light, the type has no meaning), and in such cases, there is no specific value that applies to that parameter (it is empty). This clearly indicates the following.

一方、ルールとは、対象のシステム状態が満足すべき条
件と、その条件が満足された時に取るべき処置との対応
を文字列にて記述したものである。
On the other hand, a rule is a character string that describes the correspondence between conditions that the target system state should satisfy and actions that should be taken when the conditions are satisfied.

一般に、ルールの条件を満足するシステム状態は複数存
在する。
Generally, there are multiple system states that satisfy the rule conditions.

第4図に、第2の例と同じワークショップにおける制御
論理を表すルールの例を示す。矢印の左辺に満足すべき
条件、右辺に取るべき処P!、(結論)を記しである。
FIG. 4 shows an example of rules representing control logic in the same workshop as the second example. The condition to be satisfied is on the left side of the arrow, and the position P is on the right side! , (conclusion) is written here.

ルールの条件は、幾つかの個別条件の組み合せで表現さ
れる。全ての個別条件が満足された時ルールの条件が満
足されたと言う。個別条件と結論の記述は、実例の場合
と同様であるが、ルールでは、更に、パラメータの部分
にX。
Rule conditions are expressed as a combination of several individual conditions. The conditions of the rule are said to be satisfied when all the individual conditions are satisfied. The descriptions of individual conditions and conclusions are the same as in the example, but the rules also include an X in the parameter section.

Y等の変数、あるいは、具体的値をカンマII、I+で
区切って並べたもの(図中(A、F3)等)が記述でき
る。変数が記述される場合は、その部分にどの様な具体
値があてはまっても条件が成立することを示している。
Variables such as Y, or concrete values separated by commas II and I+ ((A, F3) in the figure, etc.) can be written. When a variable is described, it indicates that the condition is satisfied no matter what specific value is applied to that part.

また、カンマ“、″で区切って具体値が記述されている
場合は、その中の1つの値が満足されれば条件が成立す
ることを示す。
Further, when specific values are described separated by commas ",", it indicates that the condition is satisfied if one of the values is satisfied.

次に、各記憶部、バッファについて説明する。Next, each storage unit and buffer will be explained.

実例情報記憶部104の内容を第3図に示す。The contents of the example information storage section 104 are shown in FIG.

本記憶部は複数の実例テーブル301.誤り判定しきい
値エリア302から成る。
This storage unit includes a plurality of example tables 301. It consists of an error determination threshold area 302.

それぞれの実例テーブル301は、更に、1つの結論エ
リア3011.複数のシステム状態エリア3012を持
つ。同一結論を持つ実例は、全て、1つの実例テーブル
301に格納される。各実例の結論は、結論エリア30
11に格納する。また。
Each example table 301 further includes one conclusion area 3011. It has multiple system status areas 3012. All examples having the same conclusion are stored in one example table 301. The conclusion of each example is in the conclusion area 30.
11. Also.

それぞれのシステム状態は、システム状態エリア3o1
2にそれぞれ格納する。誤り判定しきい値エリア302
には、誤り判定の際に用いるしきい値の数値が格納され
る。
Each system status is shown in the system status area 3o1.
2 respectively. Error determination threshold area 302
The numerical value of the threshold value used for error determination is stored in .

ルール記憶部103の内容を、第5図に示す。The contents of the rule storage section 103 are shown in FIG.

本記憶部は、複数のルールテーブル501から成る。This storage unit consists of a plurality of rule tables 501.

それぞれのルールテーブル501は、更に、1つの結論
エリア50 L 1.複数の条件エリア5012を持つ
。同一結論を持つルールは、全て、1つのルールテーブ
ル501に格納される。各ルールの結論は、結論エリア
5011に格納する。また、それぞれ条件は1条件エリ
ア5012に、それぞれ、格納する。
Each rule table 501 further includes one conclusion area 50L1. It has a plurality of condition areas 5012. All rules having the same conclusion are stored in one rule table 501. The conclusion of each rule is stored in a conclusion area 5011. Further, each condition is stored in a single condition area 5012.

実例バッファ106を、第6図に示す。実例バッファ1
06は、結論エリア1061.システム状態エリア10
62から成り、それぞれには、入出力端末102から入
力された実際の結論、システム状態が格納される。
An example buffer 106 is shown in FIG. Example buffer 1
06 is the conclusion area 1061. System status area 10
62, each of which stores the actual conclusion input from the input/output terminal 102 and the system status.

以下、第7図を用いて、本実施例の動作を説明する。The operation of this embodiment will be described below with reference to FIG.

ルール獲得部101が動作を開始すると、まず、実例テ
ーブル301、ルールテーブル501を全てクリアしく
ステップ701)、ルールが充分生成されるまで以下を
繰り返す(ステップ702)。
When the rule acquisition unit 101 starts operating, it first clears the example table 301 and the rule table 501 (step 701), and repeats the following until enough rules are generated (step 702).

始めに、実例バッファ106をクリアしくステップ70
3)、入出力端末102から実例を実例入力部105に
より、実例バッファ106に読み込む(ステップ704
)。その後、誤りの判定部107により、読み込んだ実
例の誤りの可能性を判定する(ステップ705、詳細後
述)。誤りの可能性が無ければ、そのまま、ルール生成
部109によりルールを生成する(ステップ706,7
09ルール生成の方法は後述)、誤りの可能性が有れば
、誤り問い合わせ部108により、実例バッファ106
の内容をユーザに表示し、チエツクを受ける(ステップ
707)。チエツクの結果誤りでないことが判明すれば
(ステップ708)、そのままルールを生成する(ステ
ップ709)、誤りであることが判明すれば(ステップ
708)ルールを生成せず次の実例を入力する。
First, clear the example buffer 106 in step 70.
3) The example input unit 105 reads the example from the input/output terminal 102 into the example buffer 106 (step 704
). Thereafter, the error determining unit 107 determines the possibility of an error in the read example (step 705, details will be described later). If there is no possibility of an error, the rule generation unit 109 directly generates a rule (steps 706 and 7).
09 rule generation method will be described later), if there is a possibility of an error, the error inquiry unit 108 sends the example buffer 106
The contents are displayed to the user and checked (step 707). If it is found that there is no error as a result of the check (step 708), a rule is generated as is (step 709); if it is found to be an error (step 708), the next example is input without generating the rule.

更に、実例の誤りの可能性の判定(誤り判定部107の
動作)について詳しく述べる。
Furthermore, determination of the possibility of error in an example (operation of the error determination unit 107) will be described in detail.

第8図に、誤り判定部107の動作を示す。FIG. 8 shows the operation of the error determining section 107.

誤り判定部107は、まず、実例バッファ106中の実
例の結論と同じ結論が格納されている実例テーブル30
1を探し出す(ステップ801)。
The error determination unit 107 first reads the example table 30 in which the same conclusion as the conclusion of the example in the example buffer 106 is stored.
1 is found (step 801).

無ければ初めての結論の実例なので、とりあえず。If not, this is the first example of the conclusion, so for now.

ユーザに再確認するため、リターンコードを誤り可能性
有として(ステップ802,805)リターンする。有
れば、探し出した実例テーブル3、O1中の実例との間
で、以下の様に差異を計算する(ステップ803)。
In order to reconfirm with the user, the return code is determined to be incorrect and returns (steps 802 and 805). If there is, the difference between the found examples in example table 3 and O1 is calculated as follows (step 803).

(i)実例バッファ106中の実例のシステ状態と、実
例テーブル301中の1つの実例のシステム状態で、対
応する個々の要素の状態中のパラメータ部分の値が異な
る箇所の数をカウントし、実例間の差とする(例を第9
図に示す。システム状態の1行目と2行目で合計3の差
がある)。
(i) Count the number of places where the value of the parameter part in the state of each corresponding element differs between the system state of the example in the example buffer 106 and the system state of one example in the example table 301, and (Example: 9th
As shown in the figure. There is a total difference of 3 between the first and second lines of the system status).

(n)上記差を、実例テーブル301中の全ての実例に
対し求め、その最小値をもって実例バッファ106中の
実例の、現入力実例に対する差異とする。
(n) The above difference is obtained for all examples in the example table 301, and the minimum value is taken as the difference between the example in the example buffer 106 and the current input example.

計算した差異が、誤り判定しきい値エリア302に格納
されているしきい値より大きければ。
If the calculated difference is greater than the threshold stored in the error determination threshold area 302.

リターンコードを誤り可能性有にセットし、リターンす
る(ステップ804,850)。しきい値以下ならば、
リターンコードを誤り可能性無しにセットし、リターン
する(ステップ804゜806)。
The return code is set to Error Possible and the process returns (Steps 804, 850). If it is below the threshold,
The return code is set to no possibility of error and the process returns (steps 804 and 806).

最後に、ルールの生成法(ルール生成部109の動作)
について述べる。
Finally, the rule generation method (operation of the rule generation unit 109)
Let's talk about.

第10図に、ルール生成部109の動作を示す。FIG. 10 shows the operation of the rule generation unit 109.

ルール生成部109は、まず実例バッファ106中の実
例の結論と同一の結論が格納されているルールテーブル
501を探す(ステップ1001)。
The rule generation unit 109 first searches for the rule table 501 in which the same conclusion as the conclusion of the example in the example buffer 106 is stored (step 1001).

見つからなければ、その結論を持つルールは未だ生成さ
れていないので、新たに、実例バッファ106中の実例
の結論を格納したルールテーブル501を作成し、その
条件エリア5012に、実例のシステム状態をそのまま
ルールの条件として格納する(ステップ1002.10
10)。更に、新たに、実例バッファ106中の実例の
結論を格納した実例テーブル301を作成しくその様な
実例テーブルはまだない)、そのシステム状態エリア3
012に、実しのシステム状態を格納する(ステップ1
011)。
If it is not found, a rule with that conclusion has not been generated yet, so a new rule table 501 is created that stores the conclusion of the example in the example buffer 106, and the system state of the example is written as is in the condition area 5012. Store as a rule condition (step 1002.10
10). Furthermore, a new example table 301 is created that stores the conclusions of the examples in the example buffer 106 (there is no such example table yet), and the system status area 3 is
012, stores the actual system status (step 1
011).

見つかれば、以下の様に、既存ルールの一般化を試みる
If found, we will try to generalize the existing rules as follows.

まず、見つかったルールテーブル501以外のルールテ
ーブル501で、実例バッファ106中の実例のシステ
ム状態をカバーする条件(そのシステム状態が満足する
条件)があれば、それを全て削除する(ステップ100
3)。次に、実例バッファ106中の実例のシステム状
態をカバーする条件が、見つかったルールテーブル50
1中に既に存在するかをチエツクする(ステップ100
4)。
First, if there are conditions covering the system state of the example in the example buffer 106 (conditions that the system state satisfies) in the rule tables 501 other than the found rule table 501, all of them are deleted (step 100
3). Next, the conditions covering the system state of the instances in the instance buffer 106 are added to the found rule table 50.
1 (step 100).
4).

存在すれば、新たなルールは必要ないので、実例バッフ
ァ106中の実例を同一結論を持つ実例テーブル301
に追加しくステップ1009)終了。
If it exists, there is no need for a new rule, so the examples in the example buffer 106 are stored in the example table 301 with the same conclusion.
Additionally, step 1009) ends.

存在しなければ、以下の様に新たなルールを作成する。If it does not exist, create a new rule as follows.

なお、以下は、全て、ステップ1o01で見つかったル
ールテーブル501に対してだけ実行する。
Note that the following steps are all executed only for the rule table 501 found in step 1o01.

初めに、まで−膜化を試みていない条件のうちで、実例
バッファ106中の実例のシステム状態と最も近いもの
(システム状態を構成する要素状態のうちカバーできな
いものが最も少ない)を探す、その条件を種々に一般化
することで実例のシステム状態をもカバーできる条件を
作成する。そのうちもとの条件に最も近い(差の少ない
)ものを探す(以上ステップ1005)。
First, among the conditions for which filmization has not been attempted, find the one that is closest to the system state of the example in the example buffer 106 (the number of element states that cannot be covered is the least among the element states that make up the system state). By generalizing the conditions in various ways, we create conditions that can cover the actual system state. Among them, the one closest to the original condition (with the least difference) is searched for (step 1005).

なお、条件の一般化は、第11図の例に示すように、パ
ラメータ部分(カギカッコ“[”、′]”でくくられた
部分の場合の数を増やす(“、′で区切った値の並びを
増やす)方法と、個別条件(カッコ゛j (n 、  
#) #lでくくられた部分)を減らす方法を種々に組
み合せて行なう(一般化された条件の方がカバーするシ
ステム状態が広い)。
As shown in the example in Figure 11, the conditions can be generalized by increasing the number of parameter parts (the part enclosed in square brackets “[”, ′]”). ) method and individual conditions (brackets ゛j (n,
#) The parts enclosed by #l) are combined in various ways (generalized conditions cover a wider range of system states).

次に、ステップ1005で探し出した一般化された条件
が、今扱っている実例の結論と異なる結論を持つ実例の
システム状態をカバーしてしまわないかを、実例テーブ
ル301を見てチエツクする(ステップ1. OO6)
。カバーしてしまう場合は、全ての条件に一般化を試み
るまで、ステップ1005から繰り返す(ステップ10
06゜1007)。カバーしない場合は、矛盾の無い一
般化条件が見い出されることになるので、その条件でカ
バーされるルールテーブル501中の条件(余分な条件
)を削除した(ステップ1012)後、その条件を一般
化されたルールの条件としてルールテーブル501に追
加する(ステップ1013)。
Next, the example table 301 is checked to see if the generalized condition found in step 1005 covers the system state of an example that has a conclusion different from the conclusion of the example currently being handled (step 1005). 1.OO6)
. If all conditions are covered, repeat from step 1005 until generalization is attempted for all conditions (step 10).
06°1007). If not, a consistent generalization condition will be found, so after deleting the conditions (redundant conditions) in the rule table 501 that are covered by that condition (step 1012), the condition will be generalized. It is added to the rule table 501 as a condition of the specified rule (step 1013).

全ての条件に対し一般化を試みても、矛)14のない条
件が見い出されない場合は(ステップ1007)、もは
や、一般化による実例のカバーは不可能なので、実例そ
のものを新たなルールとしてルールテーブルに追加(ス
テップ1008)する。
Even if you try to generalize to all the conditions, if no condition is found that does not have ``14'' (step 1007), it is no longer possible to cover the example by generalization, so the example itself is set as a new rule. Add to the table (step 1008).

最後に、実例バッファ106中の実例を対応する実例テ
ーブル301に追加して(ステップ1009)リターン
する。
Finally, the example in the example buffer 106 is added to the corresponding example table 301 (step 1009) and the process returns.

以上の様に、本実施例によれば、入力された実例の誤り
の可能性を指摘チエツクし、誤りの場合これを排除する
ことができるので、実例に誤りを含む場合でも、正しい
ルールを導くことが可能となる。
As described above, according to this embodiment, it is possible to point out and check the possibility of an error in the input example, and eliminate it if it is an error, so even if the example contains an error, the correct rule can be derived. becomes possible.

なお1本実施例では、実例を人力する度に既入力実例と
の差異を計算し、あらかじめ決めであるしきい値に基づ
いき誤りを測定したが、複数の実例をまとめて入力し、
それぞれの間で実例間の差を計算し、相対的に他の実例
に対して差の大きい実例を誤りとして指摘(入力された
実例のうち例えば差の大きいものから30%を誤りの可
能性有とする)する方法もある。
Note that in this embodiment, each time an example is input manually, the difference from the input example is calculated, and errors are measured based on a predetermined threshold value.
The difference between the examples is calculated, and examples with relatively large differences from other examples are pointed out as errors (for example, 30% of the input examples with large differences are likely to be errors). There is also a way to do this.

また、誤り実例指摘の方法として、複数の実例をまとめ
て入力し、何らかのクラスタリンク手法 4(実例の集
合を幾つかの部分集合に分類する手法。
In addition, as a method for pointing out erroneous examples, multiple examples are input together and some cluster link method is used. 4 (a method of classifying a set of examples into several subsets).

既存のものでも良い)により部分集合に分割し、部分集
合の要素の少ないものを誤り実例を含む可能性有として
指摘する方法もある。
There is also a method of dividing the data into subsets (which may be existing ones) and pointing out subsets with fewer elements as potentially containing erroneous examples.

また、入力された実例をまず仮りにルール生成部に入り
し、ルールを生成し、その実例を入力する以前のルール
テーブルと新たなルールを生成した以後のルールテーブ
ルとの間で何らかの差異を計算しく例えば1本実施例で
述べた実例間の差異に準するもの)差異が大きければ入
力された実例を誤りの可能性有として指摘することもで
きる。
In addition, the input example is first tentatively entered into the rule generation section, a rule is generated, and some difference is calculated between the rule table before inputting the example and the rule table after the new rule is generated. If the difference is large (e.g., similar to the difference between the examples described in this embodiment), the input example can be pointed out as potentially erroneous.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、具体的実例を与えるだけで。 According to the invention, merely by giving a concrete example.

多くの対象状態に適用できろ一般的ルールを導く帰格納
ルール獲得システムにおいて、与えた実例が誤っていた
場合にも、これを排除し正しいルールを導くことが可能
となり、大規模、複雑な対象の場合でも、正しいルール
を効率的に作成できる効果がある。
In a recursive storage rule acquisition system that derives general rules that can be applied to many target states, even if the given examples are incorrect, it is possible to eliminate them and derive the correct rules, making it possible to solve large-scale, complex targets. Even in this case, it has the effect of efficiently creating correct rules.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例のブロック構成図、第2図は
ジョブショップの制御指示の実例を示す図、第3図は実
例情報記憶部の詳細図、第4図はジョブショップの制御
ルールの例を示す図、第5図はルール記憶部の詳細図、
第6図は実例バッファの内容図、第7図から第11図は
、本実施例の動作を説明するための処理フロー図及び処
理例を示す図である。 101・・・ルール獲得部、102・・・入出力端末、
103・・・ルール記憶部、104・・・実例情報記憶
部、105・・・実例入力部、106・・・実例バッフ
ァ、107・・・誤り判定部、108・・・誤り問い合
せ部、109・・・ルール生成部、301・・・実例ル
ールテーブル、302・・・誤り判定しきい値エリア、
501第 1 図 1Q’l   IL−1し王〕N埼叶 第 Z 図 ヤ;jii搗15糞剖計凛5、鳩者 第3目 302  %゛)判廻しさ−・植1り7早4(2) 第5図 So+  ル−ル〒−丁ンレ 箒 乙 図 茅 l閃 早′8図 第 9 図 C壬部Uキラ梱トフC〕(無〕) 九 3 第 10  図 a量り 第 11 11] O1+ φ  (←2(4))、(々鶴す
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing an example of job shop control instructions, FIG. 3 is a detailed diagram of the example information storage unit, and FIG. 4 is a diagram showing job shop control. A diagram showing an example of rules, FIG. 5 is a detailed diagram of the rule storage unit,
FIG. 6 is a content diagram of an example buffer, and FIGS. 7 to 11 are processing flow diagrams and processing examples for explaining the operation of this embodiment. 101... Rule acquisition unit, 102... Input/output terminal,
103... Rule storage section, 104... Example information storage section, 105... Example input section, 106... Example buffer, 107... Error determination section, 108... Error inquiry section, 109. . . . Rule generation unit, 301 . . . Example rule table, 302 . . . Error determination threshold area,
501 No. 1 Figure 1 Q'l IL-1 Shiou] N Sai Kano No. Z Figure Ya; jii 15 feces autopsy Rin 5, pigeon 3rd eye 302% (2) Figure 5 So+ Rule〒-Dingle broom Otsu Figure 茅 l Flash early '8 Figure 9 Figure C Mibu U Kira packing C] (None) 9 3 10 Figure a Weighing 11 11 ] O1+ φ (←2(4)), (Tsurusu

Claims (1)

【特許請求の範囲】 1、対象の状態とその状態に対する結論あるいは処置等
から成る実例を記憶する手段、幾つかの対象状態が満足
する条件とその条件が満足された時の結論あるいは処置
等から成るルールを記憶する手段、上記実例を一般化し
ルールを作成する手段から成る処理システムにおいて、
実例を入力し実例の誤りを指摘する手段を設け、上記ル
ール作成手段にてルールを作成する以前に実例の誤り指
摘手段により誤りを排除し、該ルール作成手段には誤り
の無い実例のみを入力することを特徴とするルール獲得
システム。 2、上記誤りの指摘手段は、実例どうしの違いの度合い
により、実例の誤りを指摘することを特徴とする第1項
のルール獲得システム。 3、上記誤りの指摘手段は、仮りに実例を上記ルール作
成手段に入力し、ルールを作成し、実例入力以前のルと
入力後のルールを比較しその違いの度合いにより、実例
の誤りを指摘することを特徴とする、第1項のルール獲
得システム。
[Claims] 1. Means for storing examples consisting of a target state and a conclusion or action for that state, based on conditions satisfied by several target states and a conclusion or action when the condition is satisfied. In a processing system comprising means for storing rules consisting of the following, and means for generalizing the above examples to create rules,
A means for inputting examples and pointing out errors in the examples is provided, and before a rule is created by the rule creation means, errors are eliminated by an example error pointing means, and only examples without errors are input to the rule creation means. A rule acquisition system that is characterized by: 2. The rule acquisition system according to item 1, wherein the error pointing means points out errors in the examples based on the degree of difference between the examples. 3. The above error pointing means inputs the example into the above rule creation means, creates a rule, compares the rule before inputting the example with the rule after inputting, and points out errors in the example based on the degree of difference. The rule acquisition system according to item 1, characterized in that:
JP63010645A 1988-01-22 1988-01-22 Rule acquisition system Pending JPH01187637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63010645A JPH01187637A (en) 1988-01-22 1988-01-22 Rule acquisition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63010645A JPH01187637A (en) 1988-01-22 1988-01-22 Rule acquisition system

Publications (1)

Publication Number Publication Date
JPH01187637A true JPH01187637A (en) 1989-07-27

Family

ID=11755952

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63010645A Pending JPH01187637A (en) 1988-01-22 1988-01-22 Rule acquisition system

Country Status (1)

Country Link
JP (1) JPH01187637A (en)

Similar Documents

Publication Publication Date Title
CN100470480C (en) Hardware accelerator personality compiler
Kasahara et al. Practical multiprocessor scheduling algorithms for efficient parallel processing
Hoitomt et al. Scheduling jobs with simple precedence constraints on parallel machines
US5323312A (en) Specific layout structure generating method and structured document layout processing and device for carrying out the same
JPH07319677A (en) Method and apparatus for creation of flowchart by using programmed computer for automatic generation of structured program
JP2001282817A (en) Method and system for data mining with decision tree
US5537514A (en) Method of rearranging and method of coding fuzzy reasoning rules, and method of fuzzy reasoning processing in accordance with said rules
CN105550225A (en) Index construction method and query method and apparatus
CN111080304A (en) Credible relationship identification method, device and equipment
JPH02181828A (en) Updating of pattern checking network
EP0318985A2 (en) Interrogating device and method
US5101362A (en) Modular blackboard based expert system
Chan et al. Exploratory design using constraints
WO1998049612A9 (en) Universal software structure for representing model structures
US5265193A (en) Efficiently organizing objects in a rete pattern matching network
JPH01187637A (en) Rule acquisition system
Ling et al. Advanced Petri Nets for modelling mobile agent enabled interorganizational workflows
Becker et al. A method for system interface reduction using N2 charts
US20040193637A1 (en) Systems and methods for automated data object processing
EP4193305A1 (en) Method and system for providing recommendations concerning a configuration process
JPH11306216A (en) Automatic arranging method and automatic arrangement system
Murray et al. A framework for selecting between knowledge-based and traditional systems design
JP7311373B2 (en) COMPUTER SYSTEM, PLAN GENERATION METHOD, AND PROGRAM
JPS59189471A (en) Wiring route searching system
US20220129246A1 (en) Functional Method for Universal Computation by Extended Formal Matrix Product