An error occurred while loading the file. Please try again.
-
Le Roux Erwan authored59f359d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from extreme_estimator.R_fit.gev_fit.abstract_margin_model import AbstractMarginModel
from extreme_estimator.R_fit.max_stable_fit.abstract_max_stable_model import AbstractMaxStableModel
from extreme_estimator.estimator.abstract_estimator import AbstractEstimator
from extreme_estimator.estimator.margin_estimator import SmoothMarginEstimator
from extreme_estimator.estimator.max_stable_estimator import MaxStableEstimator
from spatio_temporal_dataset.dataset.abstract_dataset import AbstractDataset
class AbstractFullEstimator(AbstractEstimator):
pass
class SmoothMarginalsThenUnitaryMsp(AbstractFullEstimator):
def __init__(self, dataset: AbstractDataset, margin_model: AbstractMarginModel,
max_stable_model: AbstractMaxStableModel):
super().__init__(dataset)
# Instantiate the two associated estimators
self.margin_estimator = SmoothMarginEstimator(dataset=dataset, margin_model=margin_model)
self.max_stable_estimator = MaxStableEstimator(dataset=dataset, max_stable_model=max_stable_model)
def _fit(self):
# Estimate the margin parameters
self.margin_estimator.fit()
# Compute the maxima_frech
maxima_frech = self.margin_estimator.margin_model.gev2frech(maxima_gev=self.dataset.maxima_gev,
df_gev_params=self.margin_estimator.df_gev_params)
# Update maxima frech field through the dataset object
self.dataset.maxima_frech = maxima_frech
# Estimate the max stable parameters
self.max_stable_estimator.fit()
class FullEstimatorInASingleStep(AbstractFullEstimator):
pass
class FullEstimatorInASingleStepWithSmoothMarginals(AbstractFullEstimator):
"""The method of Gaume, check if its method is in a single step or not"""
pass
class PointwiseAndThenUnitaryMsp(AbstractFullEstimator):
pass
class StochasticExpectationMaximization(AbstractFullEstimator):
pass
class INLAgoesExtremes(AbstractFullEstimator):
pass