-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
253 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
from sklarpy.copulas.marginal_fitter import MarginalFitter | ||
from sklarpy.copulas.distributions import gaussian_copula, \ | ||
gaussian_kde_copula, gen_hyperbolic_copula, marginal_hyperbolic_copula, \ | ||
hyperbolic_copula, nig_copula, skewed_t_copula, student_t_copula, \ | ||
sym_gen_hyperbolic_copula, sym_marginal_hyperbolic_copula, \ | ||
sym_hyperbolic_copula, sym_nig_copula, clayton_copula, gumbel_copula, \ | ||
frank_copula | ||
from sklarpy.copulas.distributions import ( | ||
gaussian_copula, gaussian_kde_copula, gh_copula, mh_copula, | ||
hyperbolic_copula, nig_copula, skewed_t_copula, student_t_copula, | ||
sgh_copula, smh_copula, shyperbolic_copula, snig_copula, clayton_copula, | ||
gumbel_copula, frank_copula) | ||
from sklarpy.copulas.distributions_map import distributions_map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,81 @@ | ||
# Contains code for building copula models | ||
from sklarpy.copulas._distributions._gaussian import \ | ||
gaussian_copula_gen | ||
from sklarpy.copulas._distributions._gaussian_kde import \ | ||
gaussian_kde_copula_gen | ||
from sklarpy.copulas._distributions._generalized_hyperbolic import \ | ||
gen_hyperbolic_copula_gen | ||
from sklarpy.copulas._distributions._hyperbolics import \ | ||
marginal_hyperbolic_copula_gen, hyperbolic_copula_gen, nig_copula_gen | ||
from sklarpy.copulas._distributions._gaussian import gaussian_copula_gen | ||
from sklarpy.copulas._distributions._gaussian_kde import ( | ||
gaussian_kde_copula_gen) | ||
from sklarpy.copulas._distributions._generalized_hyperbolic import ( | ||
gen_hyperbolic_copula_gen) | ||
from sklarpy.copulas._distributions._hyperbolics import ( | ||
marginal_hyperbolic_copula_gen, hyperbolic_copula_gen, nig_copula_gen) | ||
from sklarpy.copulas._distributions._skewed_t import skewed_t_copula_gen | ||
from sklarpy.copulas._distributions._student_t import student_t_copula_gen | ||
from sklarpy.copulas._distributions._symmetric_generalized_hyperbolic import \ | ||
sym_gen_hyperbolic_copula_gen | ||
from sklarpy.copulas._distributions._symmetric_hyperbolics import \ | ||
sym_marginal_hyperbolic_copula_gen, sym_hyperbolic_copula_gen, \ | ||
sym_nig_copula_gen | ||
from sklarpy.copulas._distributions._archimedean import clayton_copula_gen, \ | ||
gumbel_copula_gen, frank_copula_gen | ||
|
||
from sklarpy.multivariate import multivariate_normal, \ | ||
multivariate_gaussian_kde, multivariate_gen_hyperbolic, \ | ||
multivariate_marginal_hyperbolic, multivariate_hyperbolic, \ | ||
multivariate_nig, multivariate_student_t, multivariate_skewed_t,\ | ||
multivariate_sym_gen_hyperbolic, multivariate_sym_marginal_hyperbolic, \ | ||
multivariate_sym_hyperbolic, multivariate_sym_nig | ||
|
||
from sklarpy.multivariate.distributions import multivariate_clayton, \ | ||
multivariate_gumbel, bivariate_frank | ||
|
||
__all__ = ['gaussian_copula', 'gaussian_kde_copula', 'gen_hyperbolic_copula', | ||
'marginal_hyperbolic_copula', 'hyperbolic_copula', 'nig_copula', | ||
'skewed_t_copula', 'student_t_copula', 'sym_gen_hyperbolic_copula', | ||
'sym_marginal_hyperbolic_copula', 'sym_hyperbolic_copula', | ||
'sym_nig_copula','clayton_copula', 'gumbel_copula', 'frank_copula'] | ||
from sklarpy.copulas._distributions._symmetric_generalized_hyperbolic import ( | ||
sym_gen_hyperbolic_copula_gen) | ||
from sklarpy.copulas._distributions._symmetric_hyperbolics import ( | ||
sym_marginal_hyperbolic_copula_gen, sym_hyperbolic_copula_gen, | ||
sym_nig_copula_gen) | ||
from sklarpy.copulas._distributions._archimedean import ( | ||
clayton_copula_gen, gumbel_copula_gen, frank_copula_gen) | ||
|
||
from sklarpy.multivariate import ( | ||
mvt_normal, mvt_gaussian_kde, mvt_gh, mvt_mh, mvt_hyperbolic, mvt_nig, | ||
mvt_student_t, mvt_skewed_t, mvt_sgh, mvt_smh, mvt_shyperbolic, mvt_snig) | ||
|
||
from sklarpy.multivariate.distributions import ( | ||
mvt_clayton, mvt_gumbel, bvt_frank) | ||
|
||
__all__ = ['gaussian_copula', 'gaussian_kde_copula', 'gh_copula', 'mh_copula', | ||
'hyperbolic_copula', 'nig_copula', 'skewed_t_copula', | ||
'student_t_copula', 'sgh_copula', 'smh_copula', | ||
'shyperbolic_copula', 'snig_copula', 'clayton_copula', | ||
'gumbel_copula', 'frank_copula'] | ||
|
||
############################################################################### | ||
# Numerical/Non-Parametric | ||
############################################################################### | ||
gaussian_kde_copula: gaussian_kde_copula_gen = \ | ||
gaussian_kde_copula_gen( | ||
name="gaussian_kde", mv_object=multivariate_gaussian_kde) | ||
name="gaussian_kde", mv_object=mvt_gaussian_kde) | ||
|
||
############################################################################### | ||
# Parametric | ||
############################################################################### | ||
gaussian_copula: gaussian_copula_gen = \ | ||
gaussian_copula_gen(name="gaussian", mv_object=multivariate_normal) | ||
gaussian_copula_gen(name="gaussian", mv_object=mvt_normal) | ||
|
||
gen_hyperbolic_copula: gen_hyperbolic_copula_gen = \ | ||
gen_hyperbolic_copula_gen( | ||
name="gen_hyperbolic", mv_object=multivariate_gen_hyperbolic) | ||
gh_copula: gen_hyperbolic_copula_gen = gen_hyperbolic_copula_gen( | ||
name="gh", mv_object=mvt_gh) | ||
|
||
marginal_hyperbolic_copula: marginal_hyperbolic_copula_gen = \ | ||
marginal_hyperbolic_copula_gen( | ||
name="marginal_hyperbolic", mv_object=multivariate_marginal_hyperbolic) | ||
mh_copula: marginal_hyperbolic_copula_gen = marginal_hyperbolic_copula_gen( | ||
name="mh", mv_object=mvt_mh) | ||
|
||
hyperbolic_copula: hyperbolic_copula_gen = \ | ||
hyperbolic_copula_gen( | ||
name="hyperbolic", mv_object=multivariate_hyperbolic) | ||
hyperbolic_copula: hyperbolic_copula_gen = hyperbolic_copula_gen( | ||
name="hyperbolic", mv_object=mvt_hyperbolic) | ||
|
||
nig_copula: nig_copula_gen = \ | ||
nig_copula_gen(name="nig", mv_object=multivariate_nig) | ||
nig_copula: nig_copula_gen = nig_copula_gen(name="nig", mv_object=mvt_nig) | ||
|
||
skewed_t_copula: skewed_t_copula_gen = \ | ||
skewed_t_copula_gen( | ||
name="skewed_t", mv_object=multivariate_skewed_t) | ||
skewed_t_copula: skewed_t_copula_gen = skewed_t_copula_gen( | ||
name="skewed_t", mv_object=mvt_skewed_t) | ||
|
||
student_t_copula: student_t_copula_gen = \ | ||
student_t_copula_gen( | ||
name="student_t", mv_object=multivariate_student_t) | ||
student_t_copula: student_t_copula_gen = student_t_copula_gen( | ||
name="student_t", mv_object=mvt_student_t) | ||
|
||
sym_gen_hyperbolic_copula: sym_gen_hyperbolic_copula_gen = \ | ||
sym_gen_hyperbolic_copula_gen( | ||
name="sym_gen_hyperbolic", mv_object=multivariate_sym_gen_hyperbolic) | ||
sgh_copula: sym_gen_hyperbolic_copula_gen = sym_gen_hyperbolic_copula_gen( | ||
name="sgh", mv_object=mvt_sgh) | ||
|
||
sym_marginal_hyperbolic_copula: sym_marginal_hyperbolic_copula_gen = \ | ||
sym_marginal_hyperbolic_copula_gen( | ||
name="sym_marginal_hyperbolic", | ||
mv_object=multivariate_sym_marginal_hyperbolic) | ||
smh_copula: sym_marginal_hyperbolic_copula_gen = \ | ||
sym_marginal_hyperbolic_copula_gen(name="smh", mv_object=mvt_smh) | ||
|
||
sym_hyperbolic_copula: sym_hyperbolic_copula_gen = \ | ||
sym_hyperbolic_copula_gen(name="sym_hyperbolic", | ||
mv_object=multivariate_sym_hyperbolic) | ||
shyperbolic_copula: sym_hyperbolic_copula_gen = sym_hyperbolic_copula_gen( | ||
name="shyperbolic", mv_object=mvt_shyperbolic) | ||
|
||
sym_nig_copula: sym_nig_copula_gen = \ | ||
sym_nig_copula_gen(name="sym_nig", mv_object=multivariate_sym_nig) | ||
snig_copula: sym_nig_copula_gen = sym_nig_copula_gen( | ||
name="snig", mv_object=mvt_snig) | ||
|
||
clayton_copula: clayton_copula_gen = \ | ||
clayton_copula_gen(name="clayton", mv_object=multivariate_clayton) | ||
clayton_copula_gen(name="clayton", mv_object=mvt_clayton) | ||
|
||
gumbel_copula: gumbel_copula_gen = \ | ||
gumbel_copula_gen(name="gumbel", mv_object=multivariate_gumbel) | ||
gumbel_copula_gen(name="gumbel", mv_object=mvt_gumbel) | ||
|
||
frank_copula: frank_copula_gen = \ | ||
frank_copula_gen(name="frank", mv_object=bivariate_frank) | ||
frank_copula_gen(name="frank", mv_object=bvt_frank) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
from sklarpy.multivariate.distributions import multivariate_gaussian_kde, \ | ||
multivariate_gen_hyperbolic, multivariate_marginal_hyperbolic, \ | ||
multivariate_hyperbolic, multivariate_nig, multivariate_normal, \ | ||
multivariate_skewed_t, multivariate_student_t, \ | ||
multivariate_sym_gen_hyperbolic, multivariate_sym_marginal_hyperbolic, \ | ||
multivariate_sym_hyperbolic, multivariate_sym_nig | ||
from sklarpy.multivariate.distributions import ( | ||
mvt_gaussian_kde, mvt_gh, mvt_mh, mvt_hyperbolic, mvt_nig, mvt_normal, | ||
mvt_skewed_t, mvt_student_t, mvt_sgh, mvt_smh, mvt_shyperbolic, mvt_snig) | ||
|
||
from sklarpy.multivariate.distributions_map import distributions_map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.