Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Wolfram Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • System Modeler
  • Wolfram Player
  • Finance Platform
  • Wolfram Engine
  • Enterprise Private Cloud
  • Application Server
  • Wolfram|Alpha Notebook Edition
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

WolframConsulting.com

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Wolfram Notebook Assistant + LLM Kit
    • System Modeler
    • Wolfram Player
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Wolfram Engine
    • Enterprise Private Cloud
    • Application Server
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
ActivePrediction
  • See Also
    • Predict
    • ActivePredictionObject
    • BayesianMinimization
    • BayesianMaximization
  • Related Guides
    • Supervised Machine Learning
    • Machine Learning
    • See Also
      • Predict
      • ActivePredictionObject
      • BayesianMinimization
      • BayesianMaximization
    • Related Guides
      • Supervised Machine Learning
      • Machine Learning

ActivePrediction[f,{conf1,conf2, …}]

gives an object representing the result of active prediction obtained by using the function f to determine values for the example configurations confi.

ActivePrediction[f,reg]

generates configurations within the region specified by reg.

ActivePrediction[f,sampler]

generates configurations by applying the function sampler.

ActivePrediction[f,{conf1,conf2,…}nsampler]

applies the function nsampler to successively generate configurations starting from one of the confi.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Options  
InitialEvaluationHistory  
MaxIterations  
Method  
Applications  
LogLikelihood Function Predictor  
See Also
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • Predict
    • ActivePredictionObject
    • BayesianMinimization
    • BayesianMaximization
  • Related Guides
    • Supervised Machine Learning
    • Machine Learning
    • See Also
      • Predict
      • ActivePredictionObject
      • BayesianMinimization
      • BayesianMaximization
    • Related Guides
      • Supervised Machine Learning
      • Machine Learning

ActivePrediction

ActivePrediction[f,{conf1,conf2, …}]

gives an object representing the result of active prediction obtained by using the function f to determine values for the example configurations confi.

ActivePrediction[f,reg]

generates configurations within the region specified by reg.

ActivePrediction[f,sampler]

generates configurations by applying the function sampler.

ActivePrediction[f,{conf1,conf2,…}nsampler]

applies the function nsampler to successively generate configurations starting from one of the confi.

Details and Options

  • ActivePrediction[…] returns an ActivePredictionObject[…] whose properties can be obtained using ActivePredictionObject[…]["prop"].
  • Possible properties include:
  • "EvaluationHistory"configurations explored and values corresponding to them
    "Method"method used for active prediction
    "PredictorFunction"best PredictorFunction[…] obtained
    "PredictorMeasurementsObject"latest PredictorMeasurementsObject[…] obtained
    "OracleFunction"original function f used to determine values
    "LearningCurve"plot of mean cross-entropy evolution
    "Properties"list of all available properties
  • Configurations can be of any form accepted by Predict (single data element, list of data elements, association of data elements, etc.) and of any type accepted by Predict (numerical, textual, sounds, images, etc.).
  • When applied to a configuration conf, the output of the function f must be a real-number value.
  • In ActivePrediction[f,spec], spec defines the domain of the function f. A domain can be defined by a list of configurations, a geometric region or a configuration generator function.
  • In ActivePrediction[f,sampler], sampler[] must output a configuration suitable for f to be applied to it.
  • In ActivePrediction[f,{conf1,conf2,…}nsampler], nsampler[conf] must output a configuration.
  • ActivePrediction has the same options as Predict, with the following additions and changes: [List of all options]
  • InitialEvaluationHistory Noneinitial set of configurations and values
    MaxIterations 2000maximum number of iterations
    Method Automaticmethod used to determine configurations to query and the prediction algorithm to use
    RandomSeeding1234what seeding of pseudorandom generators should be done internally
  • Possible settings for Method include:
  • Automaticautomatically choose method
    "Randomized"choose random configurations from the domain
    "MaxEntropy"choose configurations for which the predictor has maximum uncertainty
    assocassociation specifying the evaluation strategy and prediction method
  • In the form Methodassoc, the association can have elements:
  • "EvaluationStrategy"method for determining which configurations to query
    "PredictionMethod"method to use for prediction
  • Possible settings for RandomSeeding include:
  • Automaticautomatically reseed every time the function is called
    Inheriteduse externally seeded random numbers
    seeduse an explicit integer or strings as a seed
  • List of all options

    • AcceptanceThresholdAutomaticrarer probability threshold for anomaly detector
      AnomalyDetectorNoneanomaly detector used by the predictor
      FeatureExtractorIdentityhow to extract features from which to learn
      FeatureNamesAutomaticfeature names to assign for input data
      FeatureTypesAutomaticfeature types to assume for input data
      IndeterminateThreshold0below what probability density to return Indeterminate
      InitialEvaluationHistoryNoneinitial set of configurations and values
      MaxIterations2000maximum number of iterations
      MethodAutomaticmethod used to determine configurations to query and the prediction algorithm to use
      MissingValueSynthesisAutomatichow to synthesize missing values
      PerformanceGoalAutomaticaspects of performance to try to optimize
      RandomSeeding1234what seeding of pseudorandom generators should be done internally
      RecalibrationFunctionAutomatichow to post-process predicted value
      TargetDevice"CPU"the target device on which to perform training
      TimeGoalAutomatichow long to spend training the classifier
      TrainingProgressReportingAutomatichow to report progress during training
      UtilityFunctionAutomaticutility as function of actual and predicted value
      ValidationSetAutomaticdata on which to validate the model generated

Examples

open all close all

Basic Examples  (3)

Train an ActivePredictionObject[…] to find the predictor for a function, given a set of configurations:

Extract the resulting predictor:

Predict new examples:

Train a prediction object to find the predictor for a function whose domain is defined by an interval:

Extract the predictor:

Predict new examples:

Train a prediction object to find the predictor for the Det function, with the domain defined by a configuration generator:

Extract the predictor:

Predict new examples:

Scope  (3)

Train a prediction object to find a predictor for the sine function in an interval:

Obtain the list of available object properties:

Obtain the history of explored configurations:

Obtain the predictors trained during active prediction, along with some of their properties:

Obtain the final predictor:

Obtain the method used to choose configurations to add to the training set:

Obtain some other properties:

Display the performances of the predictors trained during active prediction:

Visualize the predictions of the predictor on new examples:

Train a prediction object to find the predictor for a function that computes the color distance between a given color and the red color, with the domain defined by a random color generator:

Obtain the predictor:

Display the performances of the predictors trained during active prediction:

Display the comparison plot of the predictor for a test set:

Define a nontrivial function, with the domain defined by a neighborhood configuration generator:

Train a prediction object to find a predictor for the function, starting with some initial configurations:

Obtain the predictor:

Visualize the predictions of the predictor. It provides a good model of the function in the neighborhood of the initial configurations:

Options  (3)

InitialEvaluationHistory  (1)

Define a quadratic function whose domain is defined by a set of numbers:

Construct an initial "training set":

Train a prediction object to find a predictor for the function using the preceding information:

The examples in the first row in the training history now correspond to the initial training set:

MaxIterations  (1)

Define a nontrivial two-dimensional function:

Train a prediction object to find a predictor for the function within a unit disk:

Obtain the number of function evaluations:

Specify the maximum number of iterations:

Check the number of function evaluations now:

Method  (1)

Define a nontrivial stochastic function:

Train a prediction object by specifying the method as an association, choosing the evaluation strategy and the prediction method:

Obtain the predictor:

Specify a different method for active prediction:

Obtain the predictor again:

Visualize the predictions of the two predictors. "GaussianProcess" produces a smoother predictor relative to "NearestNeighbors":

Applications  (2)

Efficiently train a model to predict the elevation at a specific location:

Sample 1000 random locations to test the quality of the model:

Compare the predicted elevation versus the actual elevation obtained via a server call:

LogLikelihood Function Predictor  (1)

Load Fisher's Iris dataset and divide it into a training set and a test set:

Construct a LogLikelihood function that trains a classifier on the training sample and then gives the "LogLikelihoodRate" on the test sample for a given choice of the hyperparameters:

Train a prediction object to find a predictor for the LogLikelihood function over a rectangular domain:

Obtain the predictor:

Obtain the coordinates of the explored configurations and their values:

Visualize the prediction of the predictor together with the explored configurations:

See Also

Predict  ActivePredictionObject  BayesianMinimization  BayesianMaximization

Related Guides

    ▪
  • Supervised Machine Learning
  • ▪
  • Machine Learning

History

Introduced in 2017 (11.1) | Updated in 2017 (11.2)

Wolfram Research (2017), ActivePrediction, Wolfram Language function, https://reference.wolfram.com/language/ref/ActivePrediction.html (updated 2017).

Text

Wolfram Research (2017), ActivePrediction, Wolfram Language function, https://reference.wolfram.com/language/ref/ActivePrediction.html (updated 2017).

CMS

Wolfram Language. 2017. "ActivePrediction." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/ActivePrediction.html.

APA

Wolfram Language. (2017). ActivePrediction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ActivePrediction.html

BibTeX

@misc{reference.wolfram_2025_activeprediction, author="Wolfram Research", title="{ActivePrediction}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/ActivePrediction.html}", note=[Accessed: 01-December-2025]}

BibLaTeX

@online{reference.wolfram_2025_activeprediction, organization={Wolfram Research}, title={ActivePrediction}, year={2017}, url={https://reference.wolfram.com/language/ref/ActivePrediction.html}, note=[Accessed: 01-December-2025]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Player
  • Wolfram Engine

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2025 Wolfram
© 2025 Wolfram | Legal & Privacy Policy |
English