v0.1.0-alpha
Pre-releaseThis is considered the alpha pre-release version, introducing some backwards-incompatible changes w.r.t. the previous release.
Features:
Response of the main public object, advertion.validate
, has changed from bool
to dict
:
from advertion import validate
train = pd.read_csv("...")
test = pd.read_csv("...")
validate(
trainset=train,
testset=test,
target="label",
)
# // {
# // "datasets_follow_same_distribution": True,
# // 'mean_roc_auc': 0.5021320833333334,
# // "adversarial_features': ['id'],
# // }
Also, upon selecting smart=True
(is actually the default case), an improved identification logic of adversarial features has been introduced, based on the Kolmogorov–Smirnov test. Having verbose=True
prints to the standard output the statistic value and the p-value of the test for every feature that is deemed as adversarial.
Documentation:
New page on adversarial features: https://advertion.readthedocs.io/en/latest/adversarial-features/. It is also referenced on the standard output when smart=True
and verbose=True
.
Tests:
Tests have been developed for the package's public interface, reaching 100%
test coverage on the project.
CI/CD:
Continuous Integration - enabled through Github Actions - enriched with 2 additional linters:
Also, test suite now runs against the following combinations:
python-version: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, macos-latest, windows-latest]
Last but not least, codecov has been introduced.
For more details, see:
.github/workflows/ci.yml