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

Examples

open allclose all

Basic Examples  (1)

Train a classification model on the Titanic Survival dataset:

The survival probability depends on age, sex and class:

Visualize how changing the age of 10 random passengers influences their survival probability:

Scope  (3)

Visualize the dependency of the prediction on a continuously varying feature value:

Visualize the dependency of each class probability in a classifier:

Select a specific class:

Use synthetic data to compute the impacts:

Options  (5)

ColorFunction  (1)

Specify a custom color function:

Use both coordinates to define the plot color:

MaxPlotPoints  (1)

The starting points to compute the curves are automatically computed:

Select a specific value:

PlotLabel  (1)

Plots are automatically labeled by feature and class:

Use PlotLabelNone to avoid displaying a label:

PlotPoints  (1)

Select the number of sampling points:

A high PlotPoints value can highlight nonlinearities in the model:

PlotStyle  (1)

Use a specific style for the plot:

Wolfram Research (2022), FeatureValueDependencyPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/FeatureValueDependencyPlot.html.

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

BibTeX

@misc{reference.wolfram_2024_featurevaluedependencyplot, author="Wolfram Research", title="{FeatureValueDependencyPlot}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/FeatureValueDependencyPlot.html}", note=[Accessed: 25-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_featurevaluedependencyplot, organization={Wolfram Research}, title={FeatureValueDependencyPlot}, year={2022}, url={https://reference.wolfram.com/language/ref/FeatureValueDependencyPlot.html}, note=[Accessed: 25-April-2024 ]}