-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First draf of Transfer Learning User Guide
- Loading branch information
Showing
1 changed file
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,41 @@ | ||
# Transfer Learning | ||
|
||
This page will soon contain information about transfer learning. | ||
In the meantime, please see the [examples](../../examples/examples) instead. | ||
BayBE offers the possibility to mix data from multiple campaigns in order to accelerate | ||
optimization. | ||
Using data from multiple campaigns is currently supported when using a Gaussian Process | ||
Surrogate model and is implemented by the [`TaskParameter`](baybe.parameters.categorical.TaskParameter). | ||
|
||
```{admonition} Terminology | ||
:class: note | ||
The term "Transfer Learning" is used in a lot of different ways. | ||
The act of combining the data of several contexts can be done via multiple models, | ||
shared architectures, special kernels in a single model and whatnot. | ||
We do not necessarily want to limit to any of these methods, even though BayBE currently | ||
offers only a single one. | ||
``` | ||
|
||
## The role of ``TaskParameter`` | ||
|
||
The ``TaskParameter`` is used to "mark" the context of an individual experiment. The | ||
set of all possible contexts is provided upon the initialization of a ``TaskParameter`` | ||
by providing them as ``values``. | ||
|
||
```python | ||
from baybe.parameters import TaskParameter | ||
|
||
TaskParameter(name="Month", values=["Nov23", "Dec23", "Jan24"]) | ||
``` | ||
|
||
If not specified further, a ``campaign`` using the ``TaskParameter`` as specified above | ||
would now make recommendations for all possible values of the parameter. Using the | ||
``active_values`` argument upon initialization, this behavior can be changed such that | ||
the ``campaign`` only makes recommendations for the corresponding values. | ||
|
||
```python | ||
from baybe.parameters import TaskParameter | ||
|
||
TaskParameter(name="Month", values=["Nov23", "Dec23", "Jan24"], active_values=["Jan24"]) | ||
``` | ||
|
||
This can be abstracted easily to other scenarios such as changing substrates (while | ||
screening same reaction conditions) or formulating mixtures for different cell lines. |