FeatureValueDependencyPlot
FeatureValueDependencyPlot[model,data]
plots the dependency of the result of model on the value of a particular feature in data.
FeatureValueDependencyPlot[model]
estimates the feature value dependency using synthetic data.
FeatureValueDependencyPlot[modelfname,…]
plots only the dependency on the specified feature fname.
FeatureValueDependencyPlot[modelfnameclass,…]
plots only the dependency on the classification class.
Details and Options
- FeatureValueDependencyPlot is used to interpret the contribution of examples' feature values to the results of a machine learning model, such as a regression or a classification.
- For every example, the result of model is plotted while changing the value of a single example feature.
- Possible values for model are:
-
ClassifierFunction[…] a classification model PredictorFunction[…] a regression model - For a classifier, the model result is a class probability. For a predictor, it is the predicted value.
- Possible values for data are:
-
example a single example {example1,…} a List, Association or Dataset of examples Automatic uses the model's missing imputer to generate examples - If no data is provided, synthetic examples will be generated using the model's missing imputer.
- Possible values for fname are:
-
All impact of all the features (default) feature impact of feature only {feature1,…} impact of a list of featurei - When model is a ClassifierFunction[…], possible values for class are:
-
All impact on all the classes (default) name impact on class name only {name1,…} impact on a list of namei - FeatureValueDependencyPlot has the same options as Graphics, with the following additions and changes: [List of all options]
-
AspectRatio 1/GoldenRatio ratio of height to width Axes True whether to draw axes AxesLabel Automatic axes labels DataRange Automatic the range of x values to assume for data IntervalMarkers Automatic how to render uncertainty IntervalMarkersStyle Automatic style for uncertainty elements Filling None how to fill in stems for each point FillingStyle Automatic style to use for filling Joined True whether to join points LabelingFunction Automatic how to label points LabelingSize Automatic maximum size of callouts and labels MultiaxisArrangement None how to arrange multiple axes for data PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotLabel Automatic overall label for the plot PlotLabels Automatic labels for data PlotLayout "Overlaid" how to position data PlotLegends None legends for data PlotMarkers None markers to use to indicate each point PlotRange Automatic range of values to include PlotRangeClipping True whether to clip at the plot range PlotStyle Automatic graphics directives to determine styles of points PlotTheme $PlotTheme overall theme for the plot ScalingFunctions Automatic how to scale individual coordinates TargetUnits Automatic units to display in the plot -
AlignmentPoint Center the default point in the graphic to align with AspectRatio 1/GoldenRatio ratio of height to width Axes True whether to draw axes AxesLabel Automatic axes labels AxesOrigin Automatic where axes should cross AxesStyle {} style specifications for the axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic ContentSelectable Automatic whether to allow contents to be selected CoordinatesToolOptions Automatic detailed behavior of the coordinates tool DataRange Automatic the range of x values to assume for data Epilog {} primitives rendered after the main plot Filling None how to fill in stems for each point FillingStyle Automatic style to use for filling FormatType TraditionalForm the default format type for text Frame False whether to put a frame around the plot FrameLabel None frame labels FrameStyle {} style specifications for the frame FrameTicks Automatic frame ticks FrameTicksStyle {} style specifications for frame ticks GridLines None grid lines to draw GridLinesStyle {} style specifications for grid lines ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels etc. ImageSize Automatic the absolute size at which to render the graphic IntervalMarkers Automatic how to render uncertainty IntervalMarkersStyle Automatic style for uncertainty elements Joined True whether to join points LabelingFunction Automatic how to label points LabelingSize Automatic maximum size of callouts and labels LabelStyle {} style specifications for labels Method Automatic details of graphics methods to use MultiaxisArrangement None how to arrange multiple axes for data PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotLabel Automatic overall label for the plot PlotLabels Automatic labels for data PlotLayout "Overlaid" how to position data PlotLegends None legends for data PlotMarkers None markers to use to indicate each point PlotRange Automatic range of values to include PlotRangeClipping True whether to clip at the plot range PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic the final display region to be filled PlotStyle Automatic graphics directives to determine styles of points PlotTheme $PlotTheme overall theme for the plot PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} primitives rendered before the main plot RotateLabel True whether to rotate y labels on the frame ScalingFunctions Automatic how to scale individual coordinates TargetUnits Automatic units to display in the plot Ticks Automatic axes ticks TicksStyle {} style specifications for axes ticks
List of all options
Examples
open allclose allBasic Examples (1)
Scope (3)
Options (5)
MaxPlotPoints (1)
PlotLabel (1)
PlotPoints (1)
Select the number of sampling points:
A high PlotPoints value can highlight nonlinearities in the model:
Text
Wolfram Research (2022), FeatureValueDependencyPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/FeatureValueDependencyPlot.html.
CMS
Wolfram Language. 2022. "FeatureValueDependencyPlot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FeatureValueDependencyPlot.html.
APA
Wolfram Language. (2022). FeatureValueDependencyPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FeatureValueDependencyPlot.html