Skip to content

Commit

Permalink
remove attn cnp
Browse files Browse the repository at this point in the history
remove attn cnp

remove attn cnp tests
  • Loading branch information
mastoffel committed Aug 12, 2024
1 parent 6d417f3 commit f289db8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 328 deletions.
6 changes: 5 additions & 1 deletion autoemulate/emulators/conditional_neural_process.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import warnings

import numpy as np
import torch
from scipy.stats import loguniform
Expand All @@ -14,7 +16,6 @@
from skorch.callbacks import LRScheduler
from torch import nn

from autoemulate.emulators.neural_networks.attn_cnp_module import AttnCNPModule
from autoemulate.emulators.neural_networks.cnp_module import CNPModule
from autoemulate.emulators.neural_networks.datasets import cnp_collate_fn
from autoemulate.emulators.neural_networks.datasets import CNPDataset
Expand Down Expand Up @@ -136,6 +137,9 @@ def __init__(
self.activation = activation
self.optimizer = optimizer
self.normalize_y = normalize_y
if attention:
warnings.warn("Attention is not implemented yet, setting to False.")
attention = False
self.attention = attention
self.device = device
self.random_state = random_state
Expand Down
153 changes: 0 additions & 153 deletions autoemulate/emulators/neural_networks/attn_cnp_module.py

This file was deleted.

174 changes: 0 additions & 174 deletions tests/test_attn_cnp.py

This file was deleted.

0 comments on commit f289db8

Please sign in to comment.