-
Hi, thanks for maintaining this incredibly useful package. After fitting the EVA model with import re
test = model
test2 = test.model.__repr__()
# Define regular expressions to extract the values
c_pattern = re.compile(r'c=([-0-9.]+)')
scale_pattern = re.compile(r'scale=([-0-9.]+)')
floc_pattern = re.compile(r'floc=([-0-9.]+)')
# Use regular expressions to find the values in the string
c_match = c_pattern.search(test2)
scale_match = scale_pattern.search(test2)
floc_match = floc_pattern.search(test2)
# Extract the values
c_value = float(c_match.group(1))
scale_value = float(scale_match.group(1))
floc_value = float(floc_match.group(1)) Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, for the BM parameters, you could check: for the POT: replace the "nameofyourmodel" with the name that you have given. Or you can search somewhere similar if you're using another model and not MLE. |
Beta Was this translation helpful? Give feedback.
Hi, for the BM parameters, you could check:
nameofyourmodel.model.distribution.mle_parameters['loc']
nameofyourmodel.model.distribution.mle_parameters['scale']
for the POT:
nameofyourmodel.model.distribution.fixed_parameters['floc']
nameofyourmodel.model.distribution.mle_parameters['scale']
nameofyourmodel.model.distribution.mle_parameters['c']
replace the "nameofyourmodel" with the name that you have given.
Or you can search somewhere similar if you're using another model and not MLE.
Hope this helps, somehow.