Skip to content

Commit ab57845

Browse files
committed
make release-tag: Merge branch 'master' into stable
2 parents 602cf57 + 1d36253 commit ab57845

File tree

8 files changed

+36
-20
lines changed

8 files changed

+36
-20
lines changed

HISTORY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# History
22

3+
## v0.3.1 - 2021-07-12
4+
5+
This release fixes a bug to make the privacy metrics available in the API docs.
6+
It also updates dependencies to ensure compatibility with the rest of the SDV ecosystem.
7+
8+
### Issues closed
9+
10+
* `CategoricalSVM` not being imported - Issue [#65](https://github.com/sdv-dev/SDMetrics/issues/65) by @csala
11+
312
## v0.3.0 - 2021-03-30
413

514
This release includes privacy metrics to evaluate if the real data could be obtained or

conda/meta.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = 'sdmetrics' %}
2-
{% set version = '0.3.0' %}
2+
{% set version = '0.3.1.dev2' %}
33

44
package:
55
name: "{{ name|lower }}"
@@ -26,7 +26,7 @@ requirements:
2626
- pytorch >=1.4,<2
2727
- sktime >=0.4,<0.6
2828
- copulas>=0.5.0,<0.6
29-
- rdt >=0.4.1,<0.5
29+
- rdt >=0.5.0,<0.6
3030
run:
3131
- python >=3.6,<3.9
3232
- scikit-learn >=0.23,<1
@@ -37,7 +37,7 @@ requirements:
3737
- pytorch >=1.4,<2
3838
- sktime >=0.4,<0.6
3939
- copulas>=0.5.0,<0.6
40-
- rdt >=0.4.1,<0.5
40+
- rdt >=0.5.0,<0.6
4141

4242
about:
4343
home: "https://github.com/sdv-dev/SDMetrics"

sdmetrics/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
__author__ = 'MIT Data To AI Lab'
66
__email__ = 'dailabmit@gmail.com'
7-
__version__ = '0.3.0'
7+
__version__ = '0.3.1.dev2'
88

99
import pandas as pd
1010

sdmetrics/single_table/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Implemented metrics:
3737
on a DecisionTreeClassifier from scikit-learn.
3838
* `MulticlassMLPClassifier`: ML Efficacy metric for multiclass classifications problems, based
3939
on an MLPClassifier from scikit-learn.
40-
* `LinearRegressionClassifier`: ML Efficacy metric for regression problems, based
40+
* `LinearRegression`: ML Efficacy metric for regression problems, based
4141
on a LinearRegression from scikit-learn.
4242
* `MLPRegressor`: ML Efficacy metric for regression problems, based
4343
on an MLPRegressor from scikit-learn.

sdmetrics/single_table/__init__.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@
2020
ContinuousKLDivergence, DiscreteKLDivergence, MultiColumnPairsMetric)
2121
from sdmetrics.single_table.multi_single_column import (
2222
CSTest, KSTest, KSTestExtended, MultiSingleColumnMetric)
23-
from sdmetrics.single_table.privacy import (
24-
CategoricalCAP, CategoricalEnsemble, CategoricalGeneralizedCAP, CategoricalKNN, CategoricalNB,
25-
CategoricalPrivacyMetric, CategoricalRF, CategoricalZeroCAP, NumericalLR, NumericalMLP,
26-
NumericalPrivacyMetric, NumericalRadiusNearestNeighbor, NumericalSVR)
23+
from sdmetrics.single_table.privacy.base import CategoricalPrivacyMetric, NumericalPrivacyMetric
24+
from sdmetrics.single_table.privacy.cap import (
25+
CategoricalCAP, CategoricalGeneralizedCAP, CategoricalZeroCAP)
26+
from sdmetrics.single_table.privacy.categorical_sklearn import (
27+
CategoricalKNN, CategoricalNB, CategoricalRF, CategoricalSVM)
28+
from sdmetrics.single_table.privacy.ensemble import CategoricalEnsemble
29+
from sdmetrics.single_table.privacy.numerical_sklearn import (
30+
NumericalLR, NumericalMLP, NumericalSVR)
31+
from sdmetrics.single_table.privacy.radius_nearest_neighbor import NumericalRadiusNearestNeighbor
2732

2833
__all__ = [
2934
'bayesian_network',
@@ -69,6 +74,7 @@
6974
'CategoricalKNN',
7075
'CategoricalNB',
7176
'CategoricalRF',
77+
'CategoricalSVM',
7278
'CategoricalPrivacyMetric',
7379
'NumericalPrivacyMetric',
7480
'CategoricalEnsemble',

sdmetrics/single_table/privacy/__init__.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@
22
from sdmetrics.single_table.privacy.cap import (
33
CategoricalCAP, CategoricalGeneralizedCAP, CategoricalZeroCAP)
44
from sdmetrics.single_table.privacy.categorical_sklearn import (
5-
CategoricalKNN, CategoricalNB, CategoricalRF)
5+
CategoricalKNN, CategoricalNB, CategoricalRF, CategoricalSVM)
66
from sdmetrics.single_table.privacy.ensemble import CategoricalEnsemble
77
from sdmetrics.single_table.privacy.numerical_sklearn import (
88
NumericalLR, NumericalMLP, NumericalSVR)
99
from sdmetrics.single_table.privacy.radius_nearest_neighbor import NumericalRadiusNearestNeighbor
1010

1111
__all__ = [
1212
'CategoricalCAP',
13-
'CategoricalZeroCAP',
13+
'CategoricalEnsemble',
1414
'CategoricalGeneralizedCAP',
15-
'NumericalMLP',
16-
'NumericalLR',
17-
'NumericalSVR',
1815
'CategoricalKNN',
1916
'CategoricalNB',
20-
'CategoricalRF',
2117
'CategoricalPrivacyMetric',
18+
'CategoricalRF',
19+
'CategoricalSVM',
20+
'CategoricalZeroCAP',
21+
'NumericalLR',
22+
'NumericalMLP',
2223
'NumericalPrivacyMetric',
23-
'CategoricalEnsemble',
24-
'NumericalRadiusNearestNeighbor'
24+
'NumericalRadiusNearestNeighbor',
25+
'NumericalSVR',
2526
]

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.3.0
2+
current_version = 0.3.1.dev2
33
commit = True
44
tag = True
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<candidate>\d+))?

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
'sktime>=0.4,<0.6',
2121
'torch>=1.4,<2',
2222
'copulas>=0.5.0,<0.6',
23-
'rdt>=0.4.1,<0.5',
23+
'rdt>=0.5.0,<0.6',
2424
]
2525

2626
setup_requires = [
@@ -99,6 +99,6 @@
9999
test_suite='tests',
100100
tests_require=tests_require,
101101
url='https://github.com/sdv-dev/SDMetrics',
102-
version='0.3.0',
102+
version='0.3.1.dev2',
103103
zip_safe=False,
104104
)

0 commit comments

Comments
 (0)