JP2021189889A - Evaluation apparatus, evaluation method, and evaluation program - Google Patents
Evaluation apparatus, evaluation method, and evaluation program Download PDFInfo
- Publication number
- JP2021189889A JP2021189889A JP2020096167A JP2020096167A JP2021189889A JP 2021189889 A JP2021189889 A JP 2021189889A JP 2020096167 A JP2020096167 A JP 2020096167A JP 2020096167 A JP2020096167 A JP 2020096167A JP 2021189889 A JP2021189889 A JP 2021189889A
- Authority
- JP
- Japan
- Prior art keywords
- text data
- explanatory
- values
- evaluation device
- data
- 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.)
- Granted
Links
- 238000011156 evaluation Methods 0.000 title claims abstract description 54
- 238000009826 distribution Methods 0.000 claims abstract description 52
- 238000010801 machine learning Methods 0.000 claims abstract description 34
- 230000004044 response Effects 0.000 claims 1
- 238000000034 method Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000001514 detection method Methods 0.000 description 6
- 230000007935 neutral effect Effects 0.000 description 6
- 238000012800 visualization Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000010365 information processing Effects 0.000 description 3
- 235000008733 Citrus aurantifolia Nutrition 0.000 description 1
- 235000011941 Tilia x europaea Nutrition 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007418 data mining Methods 0.000 description 1
- 239000004571 lime Substances 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 238000012552 review Methods 0.000 description 1
Images
Abstract
Description
本発明は、機械学習モデルを評価するための評価装置、評価方法及び評価プログラムに関する。 The present invention relates to an evaluation device, an evaluation method, and an evaluation program for evaluating a machine learning model.
従来、例えば映画の口コミ等の文章の内容がポジティブであるかネガティブであるかといった分類、迷惑メールの検知、あるいは画像のクラスタリング等を行う際に、機械学習モデルを用いた自動の分類手法が提供されている。 Conventionally, an automatic classification method using a machine learning model has been provided when classifying sentences such as movie reviews as positive or negative, detecting unsolicited emails, or clustering images. Has been done.
このとき、利用する機械学習モデルの分類精度が信頼できるものであるかどうかが重要であり、機械学習モデルを評価する手法が提案されている。例えば、非特許文献1及び2では、特徴量に対する機械学習モデルによる予測結果を視覚的に提示する手法が提案されている。
また、例えば、非特許文献3及び4では、各特徴量の機械学習モデルの予測結果に対する影響度合いを説明する値を算出する手法が提案されている。
At this time, it is important whether the classification accuracy of the machine learning model to be used is reliable, and a method for evaluating the machine learning model has been proposed. For example, Non-Patent
Further, for example, Non-Patent
しかしながら、従来の評価手法では、例えば、特定の入力データの中でどの特徴量が結果に影響を及ぼしているのかを人が判断できたとしても、様々な入力データ(テキストデータ)の様々な箇所に現れる特定の特徴量(単語)が機械学習モデルで適切に扱われているか否かを判断することは難しかった。 However, in the conventional evaluation method, for example, even if a person can determine which feature amount influences the result in a specific input data, various parts of various input data (text data) can be determined. It was difficult to judge whether or not the specific features (words) appearing in the machine learning model were properly handled.
本発明は、機械学習モデルの信頼性を評価するために、データセットの中で特定の特徴量が機械学習モデルの予測結果にどのような影響を与えているかの傾向を提示できる評価装置、評価方法及び評価プログラムを提供することを目的とする。 The present invention is an evaluation device and evaluation capable of presenting a tendency of how a specific feature amount affects the prediction result of a machine learning model in a data set in order to evaluate the reliability of the machine learning model. The purpose is to provide methods and evaluation programs.
本発明に係る評価装置は、複数のテキストデータ、及び当該テキストデータそれぞれの正しい分類を含むデータセットを受け付けるデータセット入力部と、前記テキストデータを入力とした機械学習モデルによる前記分類の予測値を受け付ける予測値入力部と、前記テキストデータを構成する語句毎の前記予測値に対する影響度合いを説明する説明値を受け付ける説明値入力部と、指定された語句に対して、前記データセットに現れる箇所毎の前記説明値の分布データを出力する分布出力部と、を備える。 The evaluation device according to the present invention has a data set input unit that accepts a plurality of text data and a data set including the correct classification of each of the text data, and a predicted value of the classification by a machine learning model using the text data as an input. A predicted value input unit that accepts an explanatory value input unit that accepts an explanatory value that explains the degree of influence of each word constituting the text data on the predicted value, and a location that appears in the data set for a specified phrase. It is provided with a distribution output unit for outputting the distribution data of the above-mentioned explanatory values.
前記分布出力部は、複数の語句が指定されたことに応じて、当該複数の語句に対する前記説明値の分布データを比較して出力してもよい。 The distribution output unit may compare and output the distribution data of the explanatory values for the plurality of words and phrases according to the designation of the plurality of words and phrases.
前記分布出力部は、前記説明値をプロットしたグラフを出力してもよい。 The distribution output unit may output a graph in which the explanatory values are plotted.
前記分布出力部は、前記分布データの統計値を出力してもよい。 The distribution output unit may output the statistical value of the distribution data.
前記評価装置は、前記指定された語句が含まれる前記テキストデータの一覧と共に、前記説明値、前記予測値及び前記正しい分類を出力する一覧出力部を備えてもよい。 The evaluation device may include a list output unit that outputs the explanatory value, the predicted value, and the correct classification together with the list of the text data including the designated phrase.
前記一覧出力部は、前記一覧における前記予測値の正誤に関する統計値を出力してもよい。 The list output unit may output a statistic regarding the correctness of the predicted value in the list.
前記一覧出力部は、前記一覧から選択されたテキストデータの全文を、前記指定された語句、及び当該テキストデータの中で前記説明値の大きさが上位所定数の語句を強調して出力してもよい。 The list output unit outputs the entire text of the text data selected from the list by emphasizing the specified phrase and the phrase having the upper predetermined number of explanatory values in the text data. May be good.
前記評価装置は、前記データセットに含まれる語句のうち、前記説明値の大きさが上位所定数の語句を出力する語句出力部を備えてもよい。 The evaluation device may include a word / phrase output unit that outputs a predetermined number of words / phrases whose explanatory values are higher in size among the words / phrases included in the data set.
前記評価装置は、前記データセットのうち、処理対象のテキストデータを、前記予測値の正誤の区分に基づいて選別するフィルタ部を備えてもよい。 The evaluation device may include a filter unit that selects text data to be processed from the data set based on the correctness classification of the predicted value.
前記フィルタ部は、テキストデータの長さに基づいて、前記処理対象のテキストデータをさらに選別してもよい。 The filter unit may further select the text data to be processed based on the length of the text data.
本発明に係る評価方法は、複数のテキストデータ、及び当該テキストデータそれぞれの正しい分類を含むデータセットを受け付けるデータセット入力ステップと、前記テキストデータを入力とした機械学習モデルによる前記分類の予測値を受け付ける予測値入力ステップと、前記テキストデータを構成する語句毎の前記予測値に対する影響度合いを説明する説明値を受け付ける説明値入力ステップと、指定された語句に対して、前記データセットに現れる箇所毎の前記説明値の分布データを出力する分布出力ステップと、をコンピュータが実行する。 The evaluation method according to the present invention includes a data set input step that accepts a plurality of text data and a data set including the correct classification of each of the text data, and a predicted value of the classification by a machine learning model using the text data as an input. A predicted value input step to be accepted, an explanatory value input step to accept an explanatory value for explaining the degree of influence of each word constituting the text data on the predicted value, and a place appearing in the data set for a specified phrase. The computer executes the distribution output step of outputting the distribution data of the above-mentioned explanatory values.
本発明に係る評価プログラムは、前記評価装置としてコンピュータを機能させるためのものである。 The evaluation program according to the present invention is for operating a computer as the evaluation device.
本発明によれば、機械学習モデルの信頼性を評価するために、データセットの中で特定の特徴量が機械学習モデルの予測結果にどのような影響を与えているかの傾向を提示できる。 According to the present invention, in order to evaluate the reliability of a machine learning model, it is possible to present a tendency of how a specific feature amount affects the prediction result of the machine learning model in the data set.
以下、本発明の実施形態の一例について説明する。
図1は、本実施形態における評価装置1の機能構成を示す図である。
評価装置1は、サーバ装置又はパーソナルコンピュータ等の情報処理装置(コンピュータ)であり、制御部10及び記憶部20の他、各種データの入出力デバイス及び通信デバイス等を備える。
Hereinafter, an example of the embodiment of the present invention will be described.
FIG. 1 is a diagram showing a functional configuration of the evaluation device 1 in the present embodiment.
The evaluation device 1 is an information processing device (computer) such as a server device or a personal computer, and includes a
制御部10は、評価装置1の全体を制御する部分であり、記憶部20に記憶された各種プログラムを適宜読み出して実行することにより、本実施形態における各機能を実現する。制御部10は、CPUであってよい。
The
記憶部20は、ハードウェア群を評価装置1として機能させるための各種プログラム、及び各種データ等の記憶領域であり、ROM、RAM、フラッシュメモリ又はハードディスクドライブ(HDD)等であってよい。具体的には、記憶部20は、本実施形態の各機能を制御部10に実行させるためのプログラム(評価プログラム)、及び評価対象の機械学習モデル、機械学習モデルへの入力となるデータセット等を記憶する。
The
ここで、機械学習モデルは、テキストデータを入力として2クラス分類を行うものである。例えば、映画の口コミ等の文章(テキストデータ)がポジティブな内容である確率と、ネガティブな内容である確率とが、予測値として出力される。 Here, the machine learning model performs two-class classification by inputting text data. For example, the probability that a sentence (text data) such as a word of mouth of a movie has a positive content and the probability that the text (text data) has a negative content are output as predicted values.
制御部10は、データセット入力部11と、予測値入力部12と、説明値入力部13と、分布出力部14と、一覧出力部15と、単語出力部16(語句出力部)と、フィルタ部17とを備える。
The
データセット入力部11は、複数のテキストデータ(Datapoints)、及びテキストデータそれぞれについてユーザが判断した正しい分類(例えば、ポジティブ又はネガティブ)を含むデータセットを受け付ける。
テキストデータを構成する単語が特徴量(Features)として機械学習モデルへ入力される要素となる。
The data set
The words that make up the text data are the elements that are input to the machine learning model as features.
予測値入力部12は、テキストデータを入力とした機械学習モデルによる分類の予測値を受け付ける。
The predicted
説明値入力部13は、テキストデータを構成する単語毎の、機械学習モデルによる予測値に対する影響度合いを説明する説明値(Explanation values)を受け付ける。
本実施形態において、説明値は、正の値の場合にポジティブな予測結果に貢献し、負の値の場合にネガティブな予測結果に貢献する。また、説明値の絶対値が大きいほど単語の重要度が高く、予測結果への影響度合いが大きい。
なお、説明値の算出手法は限定されないが、例えば、非特許文献3又は4で提案されている既存の説明手法が適用可能である。
The explanatory
In the present embodiment, the explanatory value contributes to a positive prediction result when it is a positive value, and contributes to a negative prediction result when it is a negative value. In addition, the larger the absolute value of the explanatory value, the higher the importance of the word, and the greater the degree of influence on the prediction result.
The method for calculating the explanatory value is not limited, but for example, the existing explanatory method proposed in
分布出力部14は、ユーザにより指定された単語に対して、データセットに現れる箇所毎の説明値の分布データを出力する。このとき、複数の単語が指定された場合、分布出力部14は、これら複数の単語に対する説明値の分布データを比較して出力する。
具体的には、分布出力部14は、説明値をプロットしたグラフをディスプレイに表示させる。
The
Specifically, the
また、分布出力部14は、この分布データの統計値を出力してもよい。統計値は、例えば、出現総数、平均値、中央値、最小値、最大値、ポジティブな予測に影響している数、ネガティブな予測に影響している数、予測に影響しないニュートラルな数等である。
Further, the
一覧出力部15は、指定された単語が含まれるテキストデータの一覧と共に、説明値、予測値及び正しい分類を出力する。
このとき、一覧出力部15は、一覧における予測値の正誤に関する統計値を出力してもよい。統計値は、例えば、予測結果が正解の数及び割合、誤検知(False Positive)の数及び割合、検知漏れ(False Negative)の数及び割合等である。
The
At this time, the
また、一覧出力部15は、一覧から選択されたテキストデータの全文を、指定された単語、及びこのテキストデータの中で説明値の大きさ(絶対値)が上位所定数(例えば、10個)の単語を強調して出力する。
すなわち、予測結果に関わらず、ポジティブ又はネガティブのいずれかへ分類する影響度の大きい単語が協調される。
Further, the
That is, regardless of the prediction result, words with a high degree of influence that are classified into either positive or negative are coordinated.
単語出力部16は、データセットに含まれる単語のうち、説明値の大きさ(絶対値)が上位所定数(例えば、10個)の単語を出力する。このとき、正負(ポジティブ及びネガティブ)それぞれ別々に上位所定数の単語が抽出され、例えば、出現頻度の順に一覧表示されてもよい。
The
フィルタ部17は、データセットのうち、処理対象のテキストデータを、予測値の正誤の区分、すなわち、正解、誤検知、検知漏れ等の区分を指定する入力に基づいて選別する。
さらに、フィルタ部17は、テキストデータの長さに基づいて、処理対象のテキストデータをさらに選別してもよい。
The
Further, the
次に、評価装置1を前述の各機能部として動作させるための評価プログラム(可視化ツール)による画面表示例を説明する。 Next, a screen display example by an evaluation program (visualization tool) for operating the evaluation device 1 as each of the above-mentioned functional units will be described.
図2は、本実施形態における可視化ツールの画面構成例を示す図である。
この画面では、検索機能が提供され、指定された単語(キーワード)による検索と、キーワードリストの取り込みによる一括検索とが可能となっている。
FIG. 2 is a diagram showing an example of screen configuration of the visualization tool in the present embodiment.
On this screen, a search function is provided, and it is possible to perform a search by a specified word (keyword) and a batch search by importing a keyword list.
領域21では、データセットに対するフィルタ条件が入力される。この例では、「Result」欄において、予測値の正誤の区分として、正解(Correct)、誤検知(False Positive)、検知漏れ(False Negative)のうち、少なくともいずれかの選択が求められている。
また、「Word Length」欄において、テキストデータの長さとして、700ワード以下、701〜1000ワード、1001〜1400ワード、1401ワード以上のうち、少なくともいずれかの選択が求められている。なお、テキストデータの長さの指定方法は、例えば、数値範囲が直接入力される態様であってもよい。
In the
Further, in the "Word Language" column, it is required to select at least one of 700 words or less, 701 to 1000 words, 1001 to 1400 words, and 1401 words or more as the length of the text data. The method of specifying the length of the text data may be, for example, a mode in which a numerical range is directly input.
領域22には、単語出力部16により出力される説明値の大きさが上位の単語(Top Explanation Keywords)がポジティブ及びネガティブのそれぞれについて、10個ずつ出現頻度順にヒストグラムで表示されている。この表示は、フィルタ部17による選別後のデータセットを対象とした出力結果である。
In the
領域23は、キーワード又はキーワードリストによる検索結果のデータ又はグラフが表示される領域である。
また、領域24には、機械学習モデルによる分類精度、及びテキストデータ(Datapoints)の総数が表示されている。
The
Further, in the
図3は、本実施形態におけるキーワードリストによる検索結果の画面例を示す図である。
CSVファイル等によりキーワードリストが取り込まれると、複数のキーワードそれぞれが出現するテキストデータが検索され、検索されたテキストデータの数の順に領域31に一覧表示される。なお、キーワードがフィルタ後のデータセットに含まれない場合は、該当のキーワードが出現するテキストデータの数は0となる。
なお、検索された数は、キーワードの出現回数であってもよい。
FIG. 3 is a diagram showing a screen example of a search result by a keyword list in this embodiment.
When the keyword list is taken in by a CSV file or the like, the text data in which each of the plurality of keywords appears is searched, and the list is displayed in the
The number of searches may be the number of occurrences of the keyword.
さらに、キーワードの一覧から1つが選択されると、一覧出力部15は、選択されたキーワードを含むテキストデータの検索結果を領域32に一覧表示させる。
この例では、一覧の各行において、テキストデータの少なくとも一部が、選択されたキーワードが中央に、かつ、前後の単語群と共に配置されるように、コンコーダンスリストとして検索結果が表示されている。
これにより、ユーザは、指定したキーワードがデータセットの中でどのように使用されているかを容易に把握できる。
Further, when one is selected from the list of keywords, the
In this example, in each line of the list, the search results are displayed as a concordance list so that at least a portion of the text data is placed in the center of the selected keyword and with the preceding and following word groups.
This allows the user to easily understand how the specified keyword is used in the dataset.
一覧の各行には、テキストデータ(データポイント)のID、及びこのテキストデータにおけるキーワードの説明値が表示される。さらに、機械学習モデルによる予測値が区分(ポジティブ及びネガティブ)毎の確率(%)として、ユーザが付与した正しい分類(Ground Truth)と共に表示される。
なお、1つのテキストデータにキーワードが複数現れる場合、キーワードが現れる度に別の行に出力される。
In each line of the list, the ID of the text data (data point) and the explanatory value of the keyword in this text data are displayed. Further, the predicted value by the machine learning model is displayed as the probability (%) for each division (positive and negative) together with the correct classification (Ground Truth) given by the user.
When a plurality of keywords appear in one text data, each time the keyword appears, it is output to another line.
また、領域33には、検索条件としてのキーワード及びフィルタ条件と、検索結果の統計情報として、キーワードの出現回数(Occurences)、キーワードが含まれるテキストデータの数(Datapoints)、正解の件数及び割合、誤検知の件数及び割合、検知漏れの件数及び割合とが表示されている。
Further, in the
図4は、本実施形態におけるテキストデータの一覧表示において各行が選択された場合の画面例を示す図である。
選択されたテキストデータの全文が領域41に表示される。このとき、テキストデータに含まれる単語のうち、指定されたキーワードと共に、説明値の絶対値が上位であり影響度の高い重要な単語が10個、強調表示されている。
具体的には、キーワードである「good」の色が変更され、ポジティブに影響する重要な単語とネガティブに影響する重要な単語とが、それぞれ異なる背景色で表示されている。
FIG. 4 is a diagram showing a screen example when each line is selected in the list display of text data in the present embodiment.
The entire text of the selected text data is displayed in the
Specifically, the color of the keyword "good" has been changed, and important words that have a positive effect and important words that have a negative effect are displayed in different background colors.
図5は、本実施形態における説明値の分布をグラフ表示した画面例を示す図である。
グラフオプションが選択された場合、分布出力部14は、検索されたキーワードの説明値の分布を、領域51にグラフ表示する。
FIG. 5 is a diagram showing a screen example in which the distribution of explanatory values in the present embodiment is displayed as a graph.
When the graph option is selected, the
この例では、指定されたキーワード「good」が機械学習モデルにおいてどのように扱われているか、すなわち、いずれの分類(ポジティブ又はネガティブ)へどの程度影響しているかを示す説明値が、データセットの中の「good」の出現箇所毎にプロットされている。 In this example, the explanatory values that indicate how the specified keyword "good" is treated in the machine learning model, that is, how much it affects which classification (positive or negative), is the data set. It is plotted for each place where "good" appears.
水平軸を説明値とし、プロットされる点は、正の値と負の値とで色分けされている。
この場合、中立(説明値≒0)な評価が多いが、ポジティブ(説明値>0)に評価される場合がネガティブ(説明値<0)に評価される場合よりも多いことが視覚的に把握できる。
With the horizontal axis as the explanatory value, the plotted points are color-coded by positive and negative values.
In this case, there are many evaluations that are neutral (explanatory value ≒ 0), but it is visually understood that there are more cases where evaluation is positive (explanatory value> 0) than when evaluation is negative (explanatory value <0). can.
また、領域52には、グラフにプロットされた説明値の分布の特徴を表す統計情報が表示される。
説明値の分布グラフ、及び統計情報は、複数のキーワードを比較して出力することも可能である。
Further, in the
It is also possible to compare and output a plurality of keywords in the distribution graph of the explanatory values and the statistical information.
図6は、本実施形態における説明値の分布に関する統計情報の表示例を示す図である。
この例では、「better」及び「worst」の2つの単語を比較して、それぞれの統計値を並べて表示している。
FIG. 6 is a diagram showing a display example of statistical information regarding the distribution of explanatory values in the present embodiment.
In this example, the two words "better" and "worst" are compared and their respective statistics are displayed side by side.
具体的には、例えば、キーワードの出現回数(Occurences)、平均値(Mean)、中央値(Median)、最小値(Min)、最大値(Max)、ポジティブな予測に影響している数(説明値>0)、ネガティブな予測に影響している数(説明値<0)、予測に影響しない中立な数(説明値≒0)が示される。
なお、ポジティブ、中立、ネガティブを分ける説明値の閾値は、予め設定されてよい。
Specifically, for example, the number of occurrences of the keyword (Occurences), the mean value (Mean), the median value (Median), the minimum value (Min), the maximum value (Max), and the number affecting the positive prediction (explanation). A value> 0), a number affecting the negative prediction (explanatory value <0), and a neutral number not affecting the prediction (explanatory value ≈ 0) are shown.
The threshold value of the explanatory value for separating positive, neutral, and negative may be set in advance.
この統計情報からは、例えば、次のような特徴が把握される。
・「better」は、「worst」に比べて出現頻度が高い。
・「better」の平均値及び中央値は0付近で中立であるが、「worst」はネガティブ側に寄っている。
・「better」も「worst」も、最小値及び最大値の大きさが同等であり、正負両側に広がっているが、「worst」の方が大きな値が存在するため、より予測結果への影響度が高い。
・「better」は、ポジティブな評価とネガティブな評価とが同等数あるが、「worst」は、ほぼネガティブな評価となっている。
From this statistical information, for example, the following features can be grasped.
-"Better" appears more frequently than "worst".
-The average and median values of "better" are neutral near 0, but "worst" is closer to the negative side.
-Both "better" and "worst" have the same minimum and maximum values and are spread on both the positive and negative sides, but "worst" has a larger value, so it has a greater effect on the prediction results. The degree is high.
-"Better" has the same number of positive evaluations and negative evaluations, but "worst" has almost negative evaluations.
図7は、本実施形態における説明値の分布を単語間で比較して表示した画面例を示す図である。
この例では、「good」と「bad」とで説明値の分布を比較している。
「good」の説明値は、ポジティブ側に偏り、「bad」の説明値は、逆にネガティブ側に偏っていることが分かる。
FIG. 7 is a diagram showing a screen example in which the distribution of explanatory values in the present embodiment is compared and displayed between words.
In this example, the distribution of explanatory values is compared between "good" and "bad".
It can be seen that the explanatory value of "good" is biased toward the positive side, and the explanatory value of "bad" is biased toward the negative side.
本実施形態によれば、評価装置1は、複数のテキストデータを含むデータセットと、テキストデータを入力とした機械学習モデルによる分類の予測値と、テキストデータを構成する単語毎の説明値とを入力として、指定された単語に対して、データセットに現れる箇所毎の説明値の分布データを出力する。
これにより、評価装置1は、データセットの中で特定の単語(特徴量)が機械学習モデルの予測結果にどのような影響を与えているかの傾向を可視化して提示できる。
According to the present embodiment, the evaluation device 1 sets a data set including a plurality of text data, a predicted value of classification by a machine learning model using the text data as an input, and an explanatory value for each word constituting the text data. As an input, the distribution data of the explanatory values for each part appearing in the data set is output for the specified word.
As a result, the evaluation device 1 can visualize and present the tendency of how a specific word (feature amount) affects the prediction result of the machine learning model in the data set.
この結果、ユーザは、単語毎に説明値の分布の確からしさを確認できるので、例えば、ユーザが保有しているデータセットの中で、中立と思われる単語の説明値の分布が正負いずれかに偏っていたり、逆に、重要と思われる単語の説明値が0付近に集中していたりといった不自然な分布を容易に発見できる。これにより、ユーザは、利用する機械学習モデルの信頼性を適切に評価できる。 As a result, the user can confirm the certainty of the distribution of the explanatory values for each word. For example, in the data set owned by the user, the distribution of the explanatory values of the words that are considered to be neutral is either positive or negative. Unnatural distributions such as being biased or, conversely, the explanatory values of words that are considered important are concentrated near 0 can be easily found. As a result, the user can appropriately evaluate the reliability of the machine learning model to be used.
評価装置1は、複数の単語が指定されたことに応じて、これらの単語に対する説明値の分布データを比較して出力するので、ユーザは、単語間での分布の相違を容易に把握でき、分布の確からしさを確認できる。 Since the evaluation device 1 compares and outputs the distribution data of the explanatory values for these words according to the designation of a plurality of words, the user can easily grasp the difference in the distribution between the words. You can check the certainty of the distribution.
評価装置1は、説明値をプロットしたグラフを出力するので、ユーザは、視覚的に容易に説明値の分布を把握でき、確からしさを確認できる。
評価装置1は、分布データの統計値を出力するので、ユーザは、客観的な数値データに基づいて、説明値の分布の確からしさを確認できる。
Since the evaluation device 1 outputs a graph plotting the explanatory values, the user can easily visually grasp the distribution of the explanatory values and confirm the certainty.
Since the evaluation device 1 outputs the statistical value of the distribution data, the user can confirm the certainty of the distribution of the explanatory values based on the objective numerical data.
評価装置1は、指定された単語が含まれるテキストデータの一覧と共に、説明値、予測値及び正しい分類を出力する。
これにより、ユーザは、指定した単語がデータセットの中でどのように使われているかを確認しつつ、各出現箇所において、機械学習モデルの予測値にどの程度影響しているかを詳細に調査できる。
The evaluation device 1 outputs an explanatory value, a predicted value, and a correct classification together with a list of text data including the designated word.
This allows the user to see how the specified word is used in the dataset and to investigate in detail how much each occurrence affects the predicted value of the machine learning model. ..
評価装置1は、テキストデータの一覧における予測値の正誤に関する統計値を出力する。これにより、ユーザは、指定した単語を含むテキストデータについて、機械学習モデルの予測精度を確認し、この単語による影響を把握することができる。 The evaluation device 1 outputs a statistical value regarding the correctness of the predicted value in the list of text data. As a result, the user can confirm the prediction accuracy of the machine learning model for the text data including the specified word and understand the influence of this word.
評価装置1は、一覧から選択されたテキストデータの全文を、指定された単語、及びテキストデータの中で説明値の大きさが上位所定数の単語を強調した上で出力する。
これにより、ユーザは、指定した単語を含むテキストデータ全体を確認しつつ、この中で影響度合いの高い他の単語群を容易に把握し、機械学習モデルの信頼性を総合的に評価できる。
また、評価装置1は、データセットに含まれる単語のうち、説明値の大きさが上位所定数の単語を出力することで、特徴量を適切にユーザに提示できる。
The evaluation device 1 outputs the entire text of the text data selected from the list after emphasizing the designated words and the words having the upper predetermined number of explanatory values in the text data.
As a result, the user can check the entire text data including the specified word, easily grasp other word groups having a high degree of influence, and comprehensively evaluate the reliability of the machine learning model.
Further, the evaluation device 1 can appropriately present the feature amount to the user by outputting the words having the magnitude of the upper predetermined number of the explanatory values among the words included in the data set.
評価装置1は、データセットのうち、処理対象のテキストデータを、予測値の正誤の区分に基づいて、あるいは、テキストデータの長さに基づいて選別する。
これにより、ユーザは、テキストデータの種類を絞り込み、この範囲での特定の単語の影響度を詳細に評価できる。
The evaluation device 1 selects the text data to be processed from the data set based on the classification of the correctness of the predicted value or the length of the text data.
As a result, the user can narrow down the types of text data and evaluate the degree of influence of a specific word in this range in detail.
以上、本発明の実施形態について説明したが、本発明は前述した実施形態に限るものではない。また、前述した実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、実施形態に記載されたものに限定されるものではない。 Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments. Moreover, the effects described in the above-described embodiments are merely a list of the most suitable effects resulting from the present invention, and the effects according to the present invention are not limited to those described in the embodiments.
前述の実施形態では、テキストデータが英語の場合を例示したが、これには限られず、本発明は、任意の言語のテキストデータに適用可能である。 In the above-described embodiment, the case where the text data is in English has been exemplified, but the present invention is not limited to this, and the present invention can be applied to text data in any language.
また、前述の実施形態では、説明値の分布データを複数の単語間で比較する場合、2つのキーワードが指定される例を示したが、比較する単語は2つには限られず、3つ以上の単語がグラフ及び統計情報により比較して示されてもよい。 Further, in the above-described embodiment, when comparing the distribution data of the explanatory values between a plurality of words, an example in which two keywords are specified is shown, but the number of words to be compared is not limited to two, and three or more words are compared. Words may be compared and shown by graphs and statistical information.
また、前述の実施形態では、テキストデータの特徴量として、テキストデータを構成する単語を例示し、その説明値の分布を出力する形態を説明した。本発明において、テキストデータの特徴量は、単語には限られず、1又は複数の単語から構成される語句であってもよい。
この場合、検索のためのキーワードには、1又は複数の連続した単語が入力され、また、一覧出力部15及び単語出力部16等による重要単語の提示は、所定数の語句の提示となる。なお、テキストデータ中の語句を判別するために、予め語句を定義した辞書が設けられてもよいし、既存の構文解析の技術により自動で語句の区切りが判別されてもよい。
Further, in the above-described embodiment, as the feature amount of the text data, a word constituting the text data is exemplified, and a mode of outputting the distribution of the explanatory values has been described. In the present invention, the feature amount of the text data is not limited to a word, and may be a phrase composed of one or a plurality of words.
In this case, one or a plurality of consecutive words are input as the keyword for the search, and the presentation of important words by the
評価装置1による評価方法は、ソフトウェアにより実現される。ソフトウェアによって実現される場合には、このソフトウェアを構成するプログラムが、情報処理装置(コンピュータ)にインストールされる。また、これらのプログラムは、CD−ROMのようなリムーバブルメディアに記録されてユーザに配布されてもよいし、ネットワークを介してユーザのコンピュータにダウンロードされることにより配布されてもよい。さらに、これらのプログラムは、ダウンロードされることなくネットワークを介したWebサービスとしてユーザのコンピュータに提供されてもよい。 The evaluation method by the evaluation device 1 is realized by software. When realized by software, the programs that make up this software are installed in the information processing device (computer). Further, these programs may be recorded on a removable medium such as a CD-ROM and distributed to the user, or may be distributed by being downloaded to the user's computer via a network. Further, these programs may be provided to the user's computer as a Web service via a network without being downloaded.
1 評価装置
10 制御部
11 データセット入力部
12 予測値入力部
13 説明値入力部
14 分布出力部
15 一覧出力部
16 単語出力部(語句出力部)
17 フィルタ部
20 記憶部
1
17
Claims (12)
前記テキストデータを入力とした機械学習モデルによる前記分類の予測値を受け付ける予測値入力部と、
前記テキストデータを構成する語句毎の前記予測値に対する影響度合いを説明する説明値を受け付ける説明値入力部と、
指定された語句に対して、前記データセットに現れる箇所毎の前記説明値の分布データを出力する分布出力部と、を備える評価装置。 A dataset input unit that accepts multiple text data and a dataset containing the correct classification of each text data,
A predicted value input unit that accepts predicted values of the classification by a machine learning model that inputs the text data, and
An explanatory value input unit that accepts explanatory values that explain the degree of influence on the predicted value for each word that constitutes the text data, and an explanatory value input unit.
An evaluation device including a distribution output unit that outputs distribution data of the explanatory values for each location appearing in the data set for a specified phrase.
前記テキストデータを入力とした機械学習モデルによる前記分類の予測値を受け付ける予測値入力ステップと、
前記テキストデータを構成する語句毎の前記予測値に対する影響度合いを説明する説明値を受け付ける説明値入力ステップと、
指定された語句に対して、前記データセットに現れる箇所毎の前記説明値の分布データを出力する分布出力ステップと、をコンピュータが実行する評価方法。 A dataset input step that accepts multiple text data and a dataset containing the correct classification of each of the text data.
A predicted value input step that accepts predicted values of the classification by a machine learning model using the text data as input, and
An explanatory value input step that accepts an explanatory value that explains the degree of influence on the predicted value for each word that constitutes the text data, and an explanatory value input step.
An evaluation method in which a computer executes a distribution output step for outputting distribution data of the explanatory values for each location appearing in the data set for a specified phrase.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020096167A JP7282715B2 (en) | 2020-06-02 | 2020-06-02 | Evaluation device, evaluation method and evaluation program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020096167A JP7282715B2 (en) | 2020-06-02 | 2020-06-02 | Evaluation device, evaluation method and evaluation program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021189889A true JP2021189889A (en) | 2021-12-13 |
JP7282715B2 JP7282715B2 (en) | 2023-05-29 |
Family
ID=78849883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020096167A Active JP7282715B2 (en) | 2020-06-02 | 2020-06-02 | Evaluation device, evaluation method and evaluation program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7282715B2 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011170786A (en) * | 2010-02-22 | 2011-09-01 | Nomura Research Institute Ltd | Document classification system, document classification program, and document classification method |
JP2018513507A (en) * | 2015-03-20 | 2018-05-24 | フラウンホッファー−ゲゼルシャフト ツァ フェルダールング デァ アンゲヴァンテン フォアシュンク エー.ファオ | Relevance score assignment for artificial neural networks |
-
2020
- 2020-06-02 JP JP2020096167A patent/JP7282715B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011170786A (en) * | 2010-02-22 | 2011-09-01 | Nomura Research Institute Ltd | Document classification system, document classification program, and document classification method |
JP2018513507A (en) * | 2015-03-20 | 2018-05-24 | フラウンホッファー−ゲゼルシャフト ツァ フェルダールング デァ アンゲヴァンテン フォアシュンク エー.ファオ | Relevance score assignment for artificial neural networks |
Non-Patent Citations (1)
Title |
---|
金 明哲, 「テキストデータの統計科学入門」, JPN6023016378, 28 April 2009 (2009-04-28), pages 177 - 194, ISSN: 0005044748 * |
Also Published As
Publication number | Publication date |
---|---|
JP7282715B2 (en) | 2023-05-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11775596B1 (en) | Models for classifying documents | |
US9646077B2 (en) | Time-series analysis based on world event derived from unstructured content | |
US8607198B2 (en) | Cross-concern code coverage assessment | |
US8006138B2 (en) | Software quality assessment based on semantic similarities | |
Shah et al. | Using app reviews for competitive analysis: tool support | |
JP2017041171A (en) | Test scenario generation support device and test scenario generation support method | |
CN114270391A (en) | Quantifying privacy impact | |
US9558462B2 (en) | Identifying and amalgamating conditional actions in business processes | |
US20230010680A1 (en) | Business Lines | |
JP2007011604A (en) | Fault diagnostic system and program | |
US20130198147A1 (en) | Detecting statistical variation from unclassified process log | |
US11544600B2 (en) | Prediction rationale analysis apparatus and prediction rationale analysis method | |
CN114676231A (en) | Target information detection method, device and medium | |
KR20210100389A (en) | Method for searching similar patents | |
JP7282715B2 (en) | Evaluation device, evaluation method and evaluation program | |
Dobrzyński et al. | Text mining studies of software repository contents | |
KR102217092B1 (en) | Method and apparatus for providing quality information of application | |
Dang | A practical approach for ranking software warnings from multiple static code analysis reports | |
US8359329B2 (en) | Method, computer apparatus and computer program for identifying unusual combinations of values in data | |
JP4525224B2 (en) | Document management program, document management method, and document management apparatus | |
CN115563288B (en) | Text detection method and device, electronic equipment and storage medium | |
KR102339498B1 (en) | Method for collecting code context to improve bug detection rules | |
TWI819239B (en) | Product substance inspection system and product substance inspection method | |
KR102395550B1 (en) | Method and apparatus for analyzing confidential information | |
US20220374914A1 (en) | Regulatory obligation identifier |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220607 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230329 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20230425 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230517 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7282715 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |