-
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.
Took 4 minutes
- Loading branch information
Showing
27 changed files
with
292 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Contains helper functions for testing SklarPy multivariate code | ||
import os | ||
|
||
from sklarpy.multivariate import * | ||
from sklarpy import load | ||
|
||
__all__ = ['get_dist'] | ||
|
||
|
||
def get_dist(name: str, d: int = 3) -> tuple: | ||
"""Fits a distribution to data. | ||
Parameters | ||
---------- | ||
name : str | ||
The name of the distribution as in distributions_map | ||
d: int | ||
The dimension of the data. | ||
Returns | ||
------- | ||
res: tuple | ||
non-fitted dist, fitted dist, parameters for fitted dist | ||
""" | ||
dist = eval(name) | ||
path: str = f'{os.getcwd()}\\sklarpy\\tests\\multivariate\\{name}_{d}D' | ||
params = load(path) | ||
fitted = dist.fit(params=params) | ||
return dist, fitted, params |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+573 Bytes
sklarpy/tests/multivariate/multivariate_marginal_hyperbolic_2D.pickle
Binary file not shown.
Binary file added
BIN
+629 Bytes
sklarpy/tests/multivariate/multivariate_marginal_hyperbolic_3D.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+556 Bytes
sklarpy/tests/multivariate/multivariate_sym_gen_hyperbolic_2D.pickle
Binary file not shown.
Binary file added
BIN
+604 Bytes
sklarpy/tests/multivariate/multivariate_sym_gen_hyperbolic_3D.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+529 Bytes
sklarpy/tests/multivariate/multivariate_sym_marginal_hyperbolic_2D.pickle
Binary file not shown.
Binary file added
BIN
+577 Bytes
sklarpy/tests/multivariate/multivariate_sym_marginal_hyperbolic_3D.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.