ModelFox.PredictOptions (modelfox v0.8.0) View Source

These are the options passed to ModelFox.predict.

threshold

If your model is a binary classifier, use this field to make predictions using the threshold you chose on the tuning page of the app. The default value is 0.5.

compute_feature_contributions

Computing feature contributions is disabled by default. If you set this field to true, you will be able to access the feature contributions with the feature_contributions field of the predict output.

Link to this section Summary

Link to this section Types

Specs

t() :: %ModelFox.PredictOptions{
  compute_feature_contributions: boolean(),
  threshold: float()
}