Documentation Home
MySQL 9.2 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.8Mb
PDF (A4) - 40.9Mb
Man Pages (TGZ) - 259.7Kb
Man Pages (Zip) - 366.9Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


27.3.9.3 Explainer Class

This class is an abstraction of the AutoML explainer model as described in Training Explainers. It has no explicit constructor, but rather is obtained by invoking Classifier.getExplainer() or Regressor.getExplainer().

Explainer exposes a single method, explain(), in two variants, both of which are described in this section.

Explainer.explain()

Version 1

This form of explain() is a JavaScript wrapper for ML_EXPLAIN_TABLE, and explains the training data from a given table using any supplied options, and placing the results in an output table.

Signature

  • Explainer.explain(
      Table testData, 
      Table outputTable[, 
      Object options]
    )

Arguments

  • testData (Table): Table containing data to be explained.

  • outputTable (Table): Table used for storing results.

  • options (Object) (optional): Set of options to use when explaining. For more information, see Table Explanations.

Return type

  • None. (Inserts into a table.)

Version 2

Explains a sample containing training data, which must contain members used in training; extra members are ignored. This form of explain() is a wrapper for ML_EXPLAIN_ROW.

Signature

  • explain(
      Object sample[, 
      Object options]
    )

Arguments

  • sample (Object): A sample containing training data.

  • options (Object) (optional): Options to be used; see Row Explanations, for more information.

Return type

  • None.