AUTO_VI$vss {autovi} | R Documentation |
Predict the visual signal strength
Description
This function predicts the visual signal strength.
Usage
AUTO_VI$vss( p = self$plot_resid(), auxiliary = NULL, keras_model = self$keras_model, node_index = self$node_index, extract_feature_from_layer = NULL )
Arguments
p |
|
auxiliary |
Dataframe. A dataframe of auxiliary values. This is only used
when the keras model has multiple inputs. If it is not provided, the
values will be automatically computed based on the residual plot of the
fitted model. See also |
keras_model |
Keras model. A trained computer vision model. |
node_index |
Integer. An index indicating which node of the output layer contains the visual signal strength. This is particularly useful when the keras model has more than one output nodes. |
extract_feature_from_layer |
Character/Integer. A layer name or an integer layer index for extracting features from a layer. |
Value
A tibble. The first column is vss
which is the prediction, the
rest of the columns are features extracted from a layer.
Examples
keras_model <- try(get_keras_model("vss_phn_32"))
if (!inherits(keras_model, "try-error")) {
myvi <- auto_vi(lm(dist ~ speed, data = cars), keras_model)
myvi$vss()
}