Skip to content
Snippets Groups Projects
Commit e7f44b32 authored by kohlhaasrebecca's avatar kohlhaasrebecca
Browse files

[docs] SeqDesign on webpage

parent 6ef8d7de
No related branches found
No related tags found
1 merge request!32Merge last changes for new release
Pipeline #47258 failed
...@@ -2,10 +2,10 @@ Active learning: iteratively expanding the training set ...@@ -2,10 +2,10 @@ Active learning: iteratively expanding the training set
******************************************************* *******************************************************
Active learning (AL), also called sequential training, is the iterative choice of additional training samples after the initial training of a surrogate model. Active learning (AL), also called sequential training, is the iterative choice of additional training samples after the initial training of a surrogate model.
The new samples can be chosen in an explorative manner or by exploiting available data and properties of the surrogate. The new samples can be chosen in an explorative manner or by exploiting available data and properties of the surrogate.
The relevant functions are contained in the class :any:`bayesvalidrox.surrogate_models.sequential_design.SequentialDesign` and :any:`bayesvalidrox.surrogate_models.exploration.Exploration`.
.. warning:: .. warning::
The active learning methods are currently being reworked. Exploration with 'voronoi' is disabled for release v1.1.0!
This should not change the function call ``Engine.train_sequential()``, but will change the associated class structures.
.. image:: ../diagrams/active_learning_reduced.png .. image:: ../diagrams/active_learning_reduced.png
:width: 550 :width: 550
...@@ -54,6 +54,5 @@ Once all properties are set, we can assemble the engine and start it. ...@@ -54,6 +54,5 @@ Once all properties are set, we can assemble the engine and start it.
This time we use ``train_sequential``. This time we use ``train_sequential``.
>>> Engine_ = Engine(MetaMod, Model, ExpDesign) >>> Engine_ = Engine(MetaMod, Model, ExpDesign)
>>> Engine_.start_engine()
>>> Engine_.train_sequential() >>> Engine_.train_sequential()
\ No newline at end of file
...@@ -85,14 +85,9 @@ For this the sampling method should be set to 'user' and our samples given as `` ...@@ -85,14 +85,9 @@ For this the sampling method should be set to 'user' and our samples given as ``
>>> ExpDesign.sampling_method = 'user' >>> ExpDesign.sampling_method = 'user'
>>> ExpDesign.root_samples = samples >>> ExpDesign.root_samples = samples
Now we create an engine object with the model, experimental design and surrogate model. Now we create an engine object with the model, experimental design and surrogate model and run the training.
With the function ``start_engine`` the engine performs its preparations for training.
>>> Engine_ = Engine(MetaMod, Model, ExpDesign) >>> Engine_ = Engine(MetaMod, Model, ExpDesign)
>>> Engine_.start_engine()
Then we train the surrogate model.
>>> Engine.train_normal() >>> Engine.train_normal()
We can evaluate the trained surrogate model in two ways, via the engine, or directly. We can evaluate the trained surrogate model in two ways, via the engine, or directly.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment