robust-mixed-dist
Data scientists address real-world problems using multivariate and heterogeneous datasets, characterized by multiple variables of different natures. Selecting a suitable distance function between units is crucial, as many statistical techniques and machine learning algorithms depend on this concept. Traditional distances, such as Euclidean or Manhattan, are unsuitable for mixed-type data, and although Gower distance was designed to handle this kind of data, it may lead to suboptimal results in the presence of outlying units or underlying correlation structure.
In the paper Grané , Aurea; Scielzo-Ortiz, Fabio. “On generalized Gower distance for mixed-type data: extensive simulation study and new software tools”. SORT-Statistics and Operations Research Transactions, pp. 213-44, doi:10.57645/20.8080.02.28. robust distances for mixed-type data are defined and explored, namely robust generalized Gower and robust related metric scaling. In addition, the new Python package robust-mixed-dist is developed, which enables to
compute these robust proposals as well as classical ones.
The package is located in Python Package Index (PyPI), the standard repository of packages for the Python programming language: https://pypi.org/project/robust_mixed_dist/
-
Package documentation: https://fabioscielzoortiz.github.io/robust-mixed-dist-docu/intro.html
-
Paper link: https://raco.cat/index.php/SORT/article/view/9900373
Changes in version 0.2.0
simple_gower_distandsimple_gower_dist_matrixnow compute Gower's (1971) distance, $\sqrt{1-s}$, where $s$ averages the partial similarities over the valid comparisons: range-normalised for quantitative variables, Jaccard for binary variables (double absences are not counted) and simple matching for multi-class variables. Missing values (NaN) are allowed and are not counted. Previous versions returned the sum of the three block distances, so results differ from versions <= 0.1.31.S_robustwithweights: the data are now centred with the weighted mean and scaled with the weighted standard deviations. With equal weights the result coincides with the unweighted estimate. Generalized Gower and related metric scaling distances were not affected by the previous scaling, since they standardise each block by its geometric variability.- Generalized Gower and related metric scaling now check that binary variables are coded 0/1 and that categorical variables are numeric and have no missing values, and raise an informative error otherwise.
Metadata
Release files for robust-mixed-dist 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| robust_mixed_dist-0.2.0.tar.gz | 22.7 kB | Without provenance | Details for robust_mixed_dist-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robust_mixed_dist-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for robust_mixed_dist-0.2.0-py3-none-any.whl |
Total release size: 44.2 kB
Release files / robust_mixed_dist-0.2.0.tar.gz
| Download URL | robust_mixed_dist-0.2.0.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c99590ce9354c3ce205a5fc9aa7b5495327afa0ea865b6ae33cdef78e70ae729
|
|
BLAKE2b-256 checksum How to use checksums |
1f76ffcd25a70acc69ecf8e92a5380e8cded47e32177a5286d172e9c4261e8e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / robust_mixed_dist-0.2.0-py3-none-any.whl
| Download URL | robust_mixed_dist-0.2.0-py3-none-any.whl |
|---|---|
| Size | 21.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24ee569f5a3d37619b16ca9a85cef40342d640687b437e43b2acaf16fbc6ddea
|
|
BLAKE2b-256 checksum How to use checksums |
5f1117cc6eb24086abc64aaf87f3f7e5d83e0750324d57871c2572639300750b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for robust-mixed-dist 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.