Commit e3e3631e authored by Le Roux Erwan's avatar Le Roux Erwan
Browse files

[HYPERCUBE VISUALIZER] fix error in deviance value (that was equal to 2 deviance)

parent cdc6dc8b
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -102,7 +102,7 @@ def full_altitude_year_hypercube():
for study_class in SCM_STUDIES[:1]:
for trend_test_class in [GevLocationChangePointTest, GevScaleChangePointTest,
GevShapeChangePointTest][:1]:
for last_starting_year in [1967, 1977, 1987, 1997, 2007, None][-2::-1]:
for last_starting_year in [1967, 1977, 1987, 1997, 2007, None][-1:]:
visualizers = [
StudyVisualizer(study, temporal_non_stationarity=True, verbose=False, multiprocessing=True)
for study in study_iterator(study_class=study_class, only_first_one=only_first_one,
......
......@@ -57,7 +57,7 @@ class AbstractGevChangePointTest(AbstractUnivariateTest):
@property
def likelihood_ratio(self):
return 2 * (self.non_stationary_deviance - self.stationary_deviance)
return self.non_stationary_deviance - self.stationary_deviance
@property
def non_stationary_nllh(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment