{ "info": { "author": "Thijs van Ede", "author_email": "t.s.vanede@utwente.nl", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Metrics\nPython implementation of some more uncommon metrics. Currently only longest common subsequence LCS metrics are implemented.\n\n## Dependencies\nThis package requires the following python libraries:\n 1. [numpy](http://www.numpy.org/) (automatically installed when package is installed via pip)\n\n## Installation\nThe metrics package can be installed directly from `pip`.\n```\npip3 install distance-metrics\n```\n\n## Metrics\nThe metrics library currently has support for the following modules.\n 1. Longest common subsequence metrics `distance_metrics.lcs`\n\n### Longest common subsequence metrics\nThe LCS module currently implements 2 distances:\n 1. Length of longest common subsequence (`distance_metrics.lcs.llcs(u, v)`).\n 2. [Bakkelund distance](http://hjem.ifi.uio.no/danielry/StringMetric.pdf) [1] (`metrics.lcs.bakkelund(u, v)`)\n\n#### Usage\n```python\n# Imports\nfrom distance_metrics import lcs\nimport numpy as np\n\n# Create example input arrays\nu = np.random.choice(list('ABCD'), size=20)\nv = np.random.choice(list('BCDE'), size=20)\n\n# Compute metrics\nllcs = lcs.llcs(u, v)\nbakkelund = lcs.bakkelund(u, v)\n\n# Print values\nprint(\"LLCS : {}\".format(llcs))\nprint(\"Bakkelund: {}\".format(bakkelund))\n```\n\n| References | |\n|------------|-------------------------------------------------------------------------------------|\n| 1 | [Bakkelund, D. (2009). An LCS-based string metric. Olso, Norway: University of Oslo.](http://hjem.ifi.uio.no/danielry/StringMetric.pdf) |\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Thijsvanede/metrics", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "distance-metrics", "package_url": "https://pypi.org/project/distance-metrics/", "platform": "", "project_url": "https://pypi.org/project/distance-metrics/", "project_urls": { "Homepage": "https://github.com/Thijsvanede/metrics" }, "release_url": "https://pypi.org/project/distance-metrics/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "Python module of less-common metrics.", "version": "0.0.2" }, "last_serial": 4199726, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "ab9ae99a7ae0f56a4c9bf63ff1dae1bc", "sha256": "646ff7f296915c0aa67c393161488f73126678ec77badeb1836a9f59f033ebbb" }, "downloads": -1, "filename": "distance_metrics-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ab9ae99a7ae0f56a4c9bf63ff1dae1bc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3402, "upload_time": "2018-08-23T12:08:07", "url": "https://files.pythonhosted.org/packages/2b/99/bb2faf57cc632e7752a044d1434ea5b308ec378eea1ee127ba8294a93513/distance_metrics-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3f4b937679ae47614daac29db4d62ba4", "sha256": "9eabfd31576b4484b51038ae986d0babb83ff80ffb6616385d40ebe23032c974" }, "downloads": -1, "filename": "distance-metrics-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3f4b937679ae47614daac29db4d62ba4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2999, "upload_time": "2018-08-23T12:08:39", "url": "https://files.pythonhosted.org/packages/74/a3/42f28754ccc2e61fa86cebfa80e75c8487b69360e8de022ba97002af48c2/distance-metrics-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "f02cacff144892109b21653c5115ebfe", "sha256": "2c9527339e9d95af8795619b46f75a064ba97402c3d859d41b9460f78338f3bb" }, "downloads": -1, "filename": "distance_metrics-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "f02cacff144892109b21653c5115ebfe", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4900, "upload_time": "2018-08-23T12:17:23", "url": "https://files.pythonhosted.org/packages/12/b8/b5841f1dc13a4118298778548235e94a36dd7f1258e19a611bc5c30ea7fc/distance_metrics-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2e7d272059f2a1d7433dd0f49829a701", "sha256": "cc186adb8cd6bd630e05db46c755c9b9d8590f1c622975828195b1062c275d2c" }, "downloads": -1, "filename": "distance-metrics-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2e7d272059f2a1d7433dd0f49829a701", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3005, "upload_time": "2018-08-23T12:17:24", "url": "https://files.pythonhosted.org/packages/e0/e3/3268c0675dc755c8ef7616ce5e23813e3fdc7ccd7632a1570df38f9425c3/distance-metrics-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f02cacff144892109b21653c5115ebfe", "sha256": "2c9527339e9d95af8795619b46f75a064ba97402c3d859d41b9460f78338f3bb" }, "downloads": -1, "filename": "distance_metrics-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "f02cacff144892109b21653c5115ebfe", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4900, "upload_time": "2018-08-23T12:17:23", "url": "https://files.pythonhosted.org/packages/12/b8/b5841f1dc13a4118298778548235e94a36dd7f1258e19a611bc5c30ea7fc/distance_metrics-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2e7d272059f2a1d7433dd0f49829a701", "sha256": "cc186adb8cd6bd630e05db46c755c9b9d8590f1c622975828195b1062c275d2c" }, "downloads": -1, "filename": "distance-metrics-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2e7d272059f2a1d7433dd0f49829a701", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3005, "upload_time": "2018-08-23T12:17:24", "url": "https://files.pythonhosted.org/packages/e0/e3/3268c0675dc755c8ef7616ce5e23813e3fdc7ccd7632a1570df38f9425c3/distance-metrics-0.0.2.tar.gz" } ] }