copulas 0.14.1.dev0__py3-none-any.whl → 0.14.2.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
copulas/__init__.py CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  __author__ = 'DataCebo, Inc.'
4
4
  __email__ = 'info@sdv.dev'
5
- __version__ = '0.14.1.dev0'
5
+ __version__ = '0.14.2.dev0'
6
6
 
7
7
  import sys
8
8
  import warnings
copulas/visualization.py CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  import pandas as pd
4
4
  import plotly.express as px
5
- import plotly.figure_factory as ff
5
+ import plotly.graph_objects as go
6
+ import scipy
6
7
 
7
8
 
8
9
  class PlotConfig:
@@ -30,9 +31,25 @@ def _generate_1d_plot(data, title, labels, colors):
30
31
  Returns:
31
32
  plotly.graph_objects._figure.Figure
32
33
  """
33
- fig = ff.create_distplot(
34
- hist_data=data, group_labels=labels, show_hist=False, show_rug=False, colors=colors
35
- )
34
+ traces = []
35
+ for index, _data in enumerate(data):
36
+ start = min(_data)
37
+ end = max(_data)
38
+
39
+ curve_x = [start + x * (end - start) / 500 for x in range(500)]
40
+ curve_y = scipy.stats.gaussian_kde(_data)(curve_x)
41
+
42
+ traces.append(
43
+ go.Scatter(
44
+ x=curve_x,
45
+ y=curve_y,
46
+ mode='lines',
47
+ name=labels[index],
48
+ line={'color': colors[index]},
49
+ )
50
+ )
51
+
52
+ fig = go.Figure(data=traces)
36
53
 
37
54
  for i, name in enumerate(labels):
38
55
  fig.update_traces(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: copulas
3
- Version: 0.14.1.dev0
3
+ Version: 0.14.2.dev0
4
4
  Summary: Create tabular synthetic data using copulas-based modeling.
5
5
  Author-email: "DataCebo, Inc." <info@sdv.dev>
6
6
  License-Expression: BUSL-1.1
@@ -8,24 +8,22 @@ Project-URL: Source Code, https://github.com/sdv-dev/Copulas/
8
8
  Project-URL: Issue Tracker, https://github.com/sdv-dev/Copulas/issues
9
9
  Project-URL: Changes, https://github.com/sdv-dev/Copulas/blob/main/HISTORY.md
10
10
  Project-URL: Twitter, https://twitter.com/sdv_dev
11
- Project-URL: Chat, https://bit.ly/sdv-slack-invite
11
+ Project-URL: Chat, https://forum.datacebo.com/
12
12
  Keywords: copulas
13
13
  Classifier: Development Status :: 2 - Pre-Alpha
14
14
  Classifier: Intended Audience :: Developers
15
15
  Classifier: Natural Language :: English
16
16
  Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.9
18
17
  Classifier: Programming Language :: Python :: 3.10
19
18
  Classifier: Programming Language :: Python :: 3.11
20
19
  Classifier: Programming Language :: Python :: 3.12
21
20
  Classifier: Programming Language :: Python :: 3.13
22
21
  Classifier: Programming Language :: Python :: 3.14
23
22
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
- Requires-Python: <3.15,>=3.9
23
+ Requires-Python: <3.15,>=3.10
25
24
  Description-Content-Type: text/markdown
26
25
  License-File: LICENSE
27
- Requires-Dist: numpy>=1.21.0; python_version < "3.10"
28
- Requires-Dist: numpy>=1.23.3; python_version >= "3.10" and python_version < "3.12"
26
+ Requires-Dist: numpy>=1.23.3; python_version < "3.12"
29
27
  Requires-Dist: numpy>=1.26.0; python_version >= "3.12" and python_version < "3.13"
30
28
  Requires-Dist: numpy>=2.1.0; python_version >= "3.13" and python_version < "3.14"
31
29
  Requires-Dist: numpy>=2.3.2; python_version >= "3.14"
@@ -36,8 +34,7 @@ Requires-Dist: pandas<3,>=2.2.3; python_version >= "3.13" and python_version < "
36
34
  Requires-Dist: pandas<3,>=2.3.3; python_version >= "3.14"
37
35
  Requires-Dist: plotly>=5.10.0; python_version < "3.13"
38
36
  Requires-Dist: plotly>=5.12.0; python_version >= "3.13"
39
- Requires-Dist: scipy>=1.7.3; python_version < "3.10"
40
- Requires-Dist: scipy>=1.9.2; python_version >= "3.10" and python_version < "3.12"
37
+ Requires-Dist: scipy>=1.9.2; python_version < "3.12"
41
38
  Requires-Dist: scipy>=1.12.0; python_version >= "3.12" and python_version < "3.13"
42
39
  Requires-Dist: scipy>=1.14.1; python_version >= "3.13" and python_version < "3.14"
43
40
  Requires-Dist: scipy>=1.16.1; python_version >= "3.14"
@@ -92,7 +89,7 @@ Dynamic: license-file
92
89
  [![Downloads](https://pepy.tech/badge/copulas)](https://pepy.tech/project/copulas)
93
90
  [![Unit Tests](https://github.com/sdv-dev/Copulas/actions/workflows/unit.yml/badge.svg)](https://github.com/sdv-dev/Copulas/actions/workflows/unit.yml)
94
91
  [![Coverage Status](https://codecov.io/gh/sdv-dev/Copulas/branch/main/graph/badge.svg)](https://codecov.io/gh/sdv-dev/Copulas)
95
- [![Slack](https://img.shields.io/badge/Community-Slack-blue?style=plastic&logo=slack)](https://bit.ly/sdv-slack-invite)
92
+ [![Forum](https://img.shields.io/badge/Forum-Join%20now!-36C5F0)](https://forum.datacebo.com)
96
93
 
97
94
  <br/>
98
95
  <p align="center" style="text-align:center">
@@ -176,10 +173,10 @@ Click below to run the code yourself on a Colab Notebook and discover new featur
176
173
 
177
174
  Learn more about Copulas library from our [documentation](https://sdv.dev/Copulas/) site.
178
175
 
179
- **Questions or issues?** Join our [Slack channel](https://bit.ly/sdv-slack-invite)
180
- to discuss more about Copulas and synthetic data.
176
+ **Questions or issues?** Join our [forum](https://forum.datacebo.com/)
177
+ to discuss Copulas features, ask questions, and receive help.
181
178
  If you find a bug or have a feature request, you can also
182
- [open an issue](https://github.com/sdv-dev/Copulas/issues/new/choose) on our GitHub.
179
+ [open an issue](https://forum.datacebo.com/) on our forum.
183
180
 
184
181
  **Interested in contributing to Copulas?** Read our
185
182
  [Contribution Guide](https://sdv.dev/Copulas/contributing.html) to get started.
@@ -1,8 +1,8 @@
1
- copulas/__init__.py,sha256=oss-3IfuzdVetuYFY1Oi0IOeObS04w58jvxX-fTFeTU,2929
1
+ copulas/__init__.py,sha256=cEm08GQaHwzNyxfSfh2dxadCNkjzzmoo7CPk9Ebi5Tk,2929
2
2
  copulas/datasets.py,sha256=uyiiEV2E_vztiIEIFR71yzMYXu_ZAlnP04Mhcv-me_0,6769
3
3
  copulas/errors.py,sha256=YDb1uhFOsht_9ynu4MYyZJgdUQWoI_WoWzG1JfGdvzU,93
4
4
  copulas/utils.py,sha256=2wWVVx-FMOhjPDt58ZgfFHQzVdLsMo44IPh7ccaIALE,6789
5
- copulas/visualization.py,sha256=PJIa9ZiT8Px8owsZKVxy0LiTszDY3ymMDkvcgYTBzBk,9688
5
+ copulas/visualization.py,sha256=S3pwGc0fok2E-p-zpjv4FrfyneLgJk4PO71KHDx3TUw,10086
6
6
  copulas/bivariate/__init__.py,sha256=CPt6D4Tae_hlqQ_cbhzMKf6m_xEQJms5ctfqt4ouZkQ,5097
7
7
  copulas/bivariate/base.py,sha256=3TLrWLWTqpauClCXUVJb_2Wxfw-gTTAhALMH5Ztj9cE,13944
8
8
  copulas/bivariate/clayton.py,sha256=5Hr90vrEMl2FdCcvxqeiWAt23ZQT41GKVQ0iHpmCmvA,4553
@@ -27,8 +27,8 @@ copulas/univariate/selection.py,sha256=nETHnLB89lTf5CPSEX28Xu2cNySQU7yhW2gZRu4Ot
27
27
  copulas/univariate/student_t.py,sha256=r4_sHdEX4C74byC5_i60e8f2DT-J8RqGyjzeCtZkwbM,777
28
28
  copulas/univariate/truncated_gaussian.py,sha256=ugr3Lm-rzadRIwsi1FTYpziNoNiP7t2iBQNGbfrFrKs,1999
29
29
  copulas/univariate/uniform.py,sha256=BkGaEZkitKpDAEkMscvLVLJ4U-j6gZuZqnZiBtCVr8Y,686
30
- copulas-0.14.1.dev0.dist-info/licenses/LICENSE,sha256=cORU2kpIo9Qyy7Kv2ZpYDIIcksrjqlNEL9c9Ic1ayo0,4822
31
- copulas-0.14.1.dev0.dist-info/METADATA,sha256=p6c27wGaB6wu9M0mGEBP19L4uTNaj5ghSn3arQe1Mb0,9658
32
- copulas-0.14.1.dev0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
33
- copulas-0.14.1.dev0.dist-info/top_level.txt,sha256=xNXWuWoZ-U3Gb734WqQxkF5RIeGDVU3IstjD-RnWsk8,8
34
- copulas-0.14.1.dev0.dist-info/RECORD,,
30
+ copulas-0.14.2.dev0.dist-info/licenses/LICENSE,sha256=cORU2kpIo9Qyy7Kv2ZpYDIIcksrjqlNEL9c9Ic1ayo0,4822
31
+ copulas-0.14.2.dev0.dist-info/METADATA,sha256=1qtWr6KRTuRJ8bb8ASwPbMSgV_E2-9IZU-8o9ulEsyU,9388
32
+ copulas-0.14.2.dev0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
33
+ copulas-0.14.2.dev0.dist-info/top_level.txt,sha256=xNXWuWoZ-U3Gb734WqQxkF5RIeGDVU3IstjD-RnWsk8,8
34
+ copulas-0.14.2.dev0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.10.2)
2
+ Generator: setuptools (84.2.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5