Skip to content

Commit 13c9197

Browse files
authored
Merge pull request #554 from alan-turing-institute/rm_cnp
rm CNPs
2 parents 311b5bf + 7e8dd9c commit 13c9197

File tree

9 files changed

+10
-25
lines changed

9 files changed

+10
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![Documentation](https://img.shields.io/badge/documentation-blue)](https://alan-turing-institute.github.io/autoemulate/)
88

99
<!-- SPHINX-START -->
10-
Simulations of physical systems are often slow and need lots of compute, which makes them unpractical for real-world applications like digital twins, or when they have to run thousands of times for sensitivity analyses. The goal of `AutoEmulate` is to make it easy to replace simulations with fast, accurate emulators. To do this, `AutoEmulate` automatically fits and compares various emulators, ranging from simple models like Radial Basis Functions and Second Order Polynomials to more complex models like Support Vector Machines, Gaussian Processes and Conditional Neural Processes to find the best emulator for a simulation.
10+
Simulations of physical systems are often slow and need lots of compute, which makes them unpractical for real-world applications like digital twins, or when they have to run thousands of times for sensitivity analyses. The goal of `AutoEmulate` is to make it easy to replace simulations with fast, accurate emulators. To do this, `AutoEmulate` automatically fits and compares various emulators, ranging from simple models like Radial Basis Functions and Second Order Polynomials to more complex models like Support Vector Machines and Gaussian Processes to find the best emulator for a simulation.
1111

1212
⚠️ Warning: This is an early version of the package and is still under development. We are working on improving the documentation and adding more features. If you have any questions or suggestions, please open an issue or a pull request.
1313

autoemulate/emulators/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
from ..model_registry import ModelRegistry
2-
from .conditional_neural_process import ConditionalNeuralProcess
3-
from .conditional_neural_process_attn import AttentiveConditionalNeuralProcess
42
from .gaussian_process import GaussianProcess
5-
from .gaussian_process_mogp import GaussianProcessMOGP
63
from .gaussian_process_mt import GaussianProcessMT
74
from .gaussian_process_sklearn import GaussianProcessSklearn
85
from .gradient_boosting import GradientBoosting
@@ -33,17 +30,8 @@
3330
model_registry.register_model(
3431
GaussianProcess().model_name, GaussianProcess, is_core=True
3532
)
36-
model_registry.register_model(
37-
ConditionalNeuralProcess().model_name, ConditionalNeuralProcess, is_core=True
38-
)
39-
4033

4134
# non-core models
42-
model_registry.register_model(
43-
AttentiveConditionalNeuralProcess().model_name,
44-
AttentiveConditionalNeuralProcess,
45-
is_core=False,
46-
)
4735
model_registry.register_model(
4836
GaussianProcessMT().model_name, GaussianProcessMT, is_core=False
4937
)

docs/getting-started/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ Here, we'll show you how to install `AutoEmulate` and get started with the basic
3131

3232
:::
3333

34-
:::{grid-item} <img src="https://pytorch.org/assets/images/pytorch-logo.png" height="16"/> **Deep Learning**
34+
:::{grid-item} <img src="https://pytorch.org/assets/images/pytorch-logo.png" height="16"/> **PyTorch models**
3535

3636
- Multi-output / Multi-task Gaussian Processes
37-
- Conditional Neural Processes
3837

3938
:::
4039
::::

docs/getting-started/quickstart.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@
17411741
"name": "python",
17421742
"nbconvert_exporter": "python",
17431743
"pygments_lexer": "ipython3",
1744-
"version": "3.12.10"
1744+
"version": "3.12.4"
17451745
}
17461746
},
17471747
"nbformat": 4,

docs/tutorials/02_speed.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@
15601560
"name": "python",
15611561
"nbconvert_exporter": "python",
15621562
"pygments_lexer": "ipython3",
1563-
"version": "3.12.10"
1563+
"version": "3.12.4"
15641564
}
15651565
},
15661566
"nbformat": 4,

docs/tutorials/03_emulation_sensitivity.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,6 @@
574574
"- lgbm: LightGBM\n",
575575
"- svm: SupportVectorMachines\n",
576576
"- gp: GaussianProcess\n",
577-
"- cnp: ConditionalNeuralProcess\n",
578-
"- acnp: AttentiveConditionalNeuralProcess\n",
579577
"- gpmt: GaussianProcessMT\n",
580578
"- gps: GaussianProcessSklearn\n",
581579
"- nns: NeuralNetSk\n",
@@ -687,7 +685,7 @@
687685
"source": [
688686
"em = AutoEmulate()\n",
689687
"parameter_names = list(parameters_range.keys())\n",
690-
"em.setup(sample_df[parameter_names], Y, models = ['gp','cnp','svm','lgbm'])\n",
688+
"em.setup(sample_df[parameter_names], Y, models = ['gp', 'svm','lgbm'])\n",
691689
"best_model = em.compare()\n"
692690
]
693691
},

tests/models/test_cnp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from autoemulate.emulators.neural_networks.cnp_module import Decoder
77
from autoemulate.emulators.neural_networks.cnp_module import Encoder
88

9-
109
# encoder ----------------------------
1110

1211

tests/test_estimators.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
from sklearn.utils.estimator_checks import parametrize_with_checks
1515
from sklearn.utils.estimator_checks import set_random_state
1616

17-
from autoemulate.emulators import AttentiveConditionalNeuralProcess
18-
from autoemulate.emulators import ConditionalNeuralProcess
1917
from autoemulate.emulators import GaussianProcess
20-
from autoemulate.emulators import GaussianProcessMOGP
2118
from autoemulate.emulators import GaussianProcessMT
2219
from autoemulate.emulators import GaussianProcessSklearn
2320
from autoemulate.emulators import GradientBoosting
@@ -27,6 +24,10 @@
2724
from autoemulate.emulators import RandomForest
2825
from autoemulate.emulators import SecondOrderPolynomial
2926
from autoemulate.emulators import SupportVectorMachines
27+
from autoemulate.emulators.conditional_neural_process import ConditionalNeuralProcess
28+
from autoemulate.emulators.conditional_neural_process_attn import (
29+
AttentiveConditionalNeuralProcess,
30+
)
3031

3132

3233
@parametrize_with_checks(

tests/test_model_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import pytest
22

3-
from autoemulate.emulators import ConditionalNeuralProcess
43
from autoemulate.emulators import GaussianProcessSklearn
54
from autoemulate.emulators import RadialBasisFunctions
5+
from autoemulate.emulators.conditional_neural_process import ConditionalNeuralProcess
66
from autoemulate.model_registry import ModelRegistry
77

88

0 commit comments

Comments
 (0)