データ・バイアス検出の出力表のスキーマ

データ・バイアス検出の出力表では、データ・バイアス検出の出力についてスキーマが提供されます。出力データは、ジョブ・リクエストでユーザーが指定した表に書き込まれます。これは必須の入力です。この表はOracle Machine Learning Serviceによって作成され、その形式はジョブ・タイプによって異なります。

出力データ形式: 出力データは、ユーザー指定の出力表に書き込まれます。この表は、Oracle Machine Learning Servicesによって作成されます。この出力表の名前は<jobName>_<outputData>という形式です。たとえば、jobNameがDATA_BIAS_JOBであり、outputDataがADULT_BIAS_RESULTである場合、出力表名はDATA_BIAS_JOB_ADULT_BIAS_RESULTです。

ノート:

データ・ソースへのアクセスは、データベース権限によって管理されます。

表 - データ・バイアス検出の出力表のスキーマ

タイプ 説明
FEATURE_NAME VARCHAR2 sensitiveFeaturesパラメータに含まれている特徴の名前。
RESULT CLOB クラス不均衡(CI)、統計的均一性(SP)および条件付き人口統計差異(CDD)を含むJSON文字列。

カテゴリ型変数の場合と数値型変数の場合のJSONスキーマの例を次に示します:

カテゴリ型変数およびpairwiseMode=0

{
  "$schema": "http://json-schema.org/categorical-simple/schema#",
  "type": "object",
  "properties": {
    "metric": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "group": {
            "type": "string"
          },
          "CI": {
            "type": "number"
          },
          "SP": {
            "type": "number"
          }
        }
      }
    },
    "cdd": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "strata": {
            "type": "string"
          },
          "result": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "group_a": {
                  "type": "string"
                },
                "CDD": {
                  "type": "number"
                },
                "detail": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "subgroup": {
                        "type": "string"
                      },
                      "DD": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "reweighing_matrix": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "group": {
            "type": "string"
          },
          "group_a_pos_weight": {
            "type": "number"
          },
          "non_group_a_pos_weight": {
            "type": "number"
          },
          "group_a_neg_weight": {
            "type": "number"
          },
          "non_group_a_neg_weight": {
            "type": "number"
          }
        }
      }
    }
  }
}

数値型変数およびpairwiseMode=0

{
  "$schema": "http://json-schema.org/numerical-simple/schema#",
  "type": "object",
  "properties": {
    "metric": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "bin_upper_boundary_a": {
            "type": [
              "number",
              "null"
            ]
          },
          "CI": {
            "type": "number"
          },
          "SP": {
            "type": "number"
          }
        }
      }
    },
    "cdd": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "strata": {
            "type": "string"
          },
          "result": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bin_upper_boundary_a": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "CDD": {
                  "type": "number"
                },
                "detail": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "subgroup_bin_upper_boundary": {
                        "type": "string"
                      },
                      "DD": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "reweighing_matrix": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "bin_upper_boundary_a": {
            "type": [
              "number",
              "null"
            ]
          },
          "group_a_pos_weight": {
            "type": "number"
          },
          "non_group_a_pos_weight": {
            "type": "number"
          },
          "group_a_neg_weight": {
            "type": "number"
          },
          "non_group_a_neg_weight": {
            "type": "number"
          }
        }
      }
    }
  }
}

pairwiseMode=1

{
  "$schema": "http://json-schema.org/paiwise/schema#",
  "type": "object",
  "properties": {
    "metric": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "group_a": {
            "type": "string"
          },
          "group_b": {
            "type": "string"
          },
          "CI": {
            "type": "number"
          },
          "SP": {
            "type": "number"
          }
        }
      }
    },
    "cdd": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "strata": {
            "type": "string"
          },
          "result": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "group_a": {
                  "type": "string"
                },
                "group_b": {
                  "type": "string"
                },
                "CDD": {
                  "type": "number"
                },
                "detail": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "subgroup": {
                        "type": "string"
                      },
                      "DD": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "reweighing_matrix": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "group_a": {
            "type": "string"
          },
          "group_b": {
            "type": "string"
          },
          "group_a_pos_weight": {
            "type": "number"
          },
          "group_b_pos_weight": {
            "type": "number"
          },
          "group_a_neg_weight": {
            "type": "number"
          },
          "group_b_neg_weight": {
            "type": "number"
          }
        }
      }
    }
  }
}