{ "info": { "author": "Wouter Kouw", "author_email": "wmkouw@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: MacOS", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Software Development :: Libraries" ], "description": "## libTLDA: library of transfer learning and domain adaptation classifiers.\n\n[![BuildStatus](https://travis-ci.org/wmkouw/libTLDA.svg?branch=master)](https://travis-ci.org/wmkouw/libTLDA) [![PyPI version](https://badge.fury.io/py/libtlda.svg)](https://badge.fury.io/py/libtlda) ![Python version](https://img.shields.io/badge/python-2.7%2C%203.4%2C%203.5%2C%203.6-blue.svg) ![Matlab version](https://img.shields.io/badge/matlab-R2017a-blue.svg) [![DOI](https://zenodo.org/badge/41360294.svg)](https://zenodo.org/badge/latestdoi/41360294)\n\nThis package contains the following classifiers:\n- Importance-weighted classifier, with weight estimators:
\n\t- Kernel density estimation
\n\t- Ratio of Gaussians [(Shimodaira, 2000)](https://www.sciencedirect.com/science/article/pii/S0378375800001154)
\n\t- Logistic discrimination [(Bickel et al., 2009)](http://www.jmlr.org/papers/v10/bickel09a.html)
\n\t- Kernel Mean Matching [(Huang et al., 2006)](https://papers.nips.cc/paper/3075-correcting-sample-selection-bias-by-unlabeled-data)
\n\t- Nearest-neighbour-based weighting [(Loog, 2015)](http://ieeexplore.ieee.org/document/6349714/)
\n- Transfer Component Analysis [(Pan et al, 2009)](http://ieeexplore.ieee.org/document/5640675/)
\n- Subspace Alignment [(Fernando et al., 2013)](https://dl.acm.org/citation.cfm?id=1610094)
\n- Structural Correspondence Learning [(Blitzer et al., 2006)](https://dl.acm.org/citation.cfm?id=1610094)
\n- Robust Bias-Aware [(Liu & Ziebart, 2014)](https://papers.nips.cc/paper/5458-robust-classification-under-sample-selection-bias)
\n- Feature-Level Domain Adaptation [(Kouw et al., 2016)](http://jmlr.org/papers/v17/15-206.html)
\n\n#### Python-specific classifiers:\n- Target Contrastive Pessimistic Risk [(Kouw et al., 2017)](https://arxiv.org/abs/1706.08082)\n\n#### Matlab-specific classifiers:\n- Geodesic Flow Kernel [(Gong et al., 2012)](https://dl.acm.org/citation.cfm?id=1610094)\n\n### Python\n\n#### Installation\nInstallation can be done through pip:\n```shell\npip install libtlda\n```\n\nEnvironment management is generally a good idea. To create a [conda](https://conda.io/docs/) environment, run the following commands:\n```\nconda env create -f environment.yml\nsource activate libtlda\n```\n\n#### Usage\nLibtlda follows a similar logic as [scikit-learn](http://scikit-learn.org/). Each type of adaptive classifier is a submodule, from which the classifiers can be imported:\n```python\nfrom libtlda.iw import ImportanceWeightedClassifier\nfrom libtlda.tca import TransferComponentClassifier\nfrom libtlda.suba import SubspaceAlignedClassifier\nfrom libtlda.scl import StructuralCorrespondenceClassifier\nfrom libtlda.rba import RobustBiasAwareClassifier\nfrom libtlda.flda import FeatureLevelDomainAdaptiveClassifier\nfrom libtlda.tcpr import TargetContrastivePessimisticClassifier\n```\nFrom there on, training is a matter of calling the `fit` method on your labeled source dataset `(X,y)` and unlabeled target dataset `Z`. For example:\n```python\nclassifier = ImportanceWeightedClassifier().fit(X, y, Z)\n```\n\nPredictions can be made by calling the `predict` method:\n```python\ny_pred = classifier.predict(Z)\n```\n\nDocumentation will be improved soon. For now, have a look at the `example.py` script. It shows a couple of options for training adaptive classifiers.\n\n\n\n### Matlab\n\n#### Installation:\nFirst clone the repository and change directory to matlab:\n```shell\ngit clone https://github.com/wmkouw/libTLDA\ncd libTLDA/matlab/\n```\n\nIn the matlab command window, call the installation script. It downloads all dependencies ([minFunc](https://www.cs.ubc.ca/~schmidtm/Software/minFunc.html), [libsvm](https://www.csie.ntu.edu.tw/~cjlin/libsvm/)) and adds them - along with `libtlda` - to your path:\n```MATLAB\ninstall.m\n```\n\n#### Usage\nThere is an example script that can be edited to test the different classifiers:\n```MATLAB\nexample.m\n```\n\n### Contact:\nQuestions, comments and bugs can be submitted in the [issues tracker](https://github.com/wmkouw/libTLDA/issues).\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/wmkouw/libTLDA", "keywords": "machine learning,domain adaptation,transfer learning", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "libtlda", "package_url": "https://pypi.org/project/libtlda/", "platform": "", "project_url": "https://pypi.org/project/libtlda/", "project_urls": { "Homepage": "https://github.com/wmkouw/libTLDA", "Tracker": "https://github.com/wmkouw/libTLDA/issues" }, "release_url": "https://pypi.org/project/libtlda/0.1.5/", "requires_dist": [ "numpy (>=1.13.3)", "matplotlib (>=2.0.2)", "ipython (>=5.5.0)", "scipy (>=0.11)", "scikit-learn (>=0.15.0)", "Keras (>=2.0.0)", "tensorflow (>=0.12.1)", "cvxopt (>=1.1.9)" ], "requires_python": "", "summary": "Library of transfer learning and domain adaptation classifiers.", "version": "0.1.5" }, "last_serial": 3770384, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "115c3a3605edd0877eb003188121a0e7", "sha256": "b5bb5229f0a66076e9dcd7cc5df36e71ca98429a7b160939e8dc1d18c7bfcbd0" }, "downloads": -1, "filename": "libtlda-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "115c3a3605edd0877eb003188121a0e7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 26397, "upload_time": "2018-03-31T12:33:53", "url": "https://files.pythonhosted.org/packages/64/82/246fbd4b8ec4d6d2cf55dbceda9d6b7e23117f87aee2994c102d7631fb30/libtlda-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a70b53cb6e0808db4a87b7b9f3c86101", "sha256": "ec80d8c0e201df4f8473fd80744b4b591c79c4aebc44d43c9e26b9d699a4c3fb" }, "downloads": -1, "filename": "libtlda-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a70b53cb6e0808db4a87b7b9f3c86101", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16551, "upload_time": "2018-03-31T12:33:54", "url": "https://files.pythonhosted.org/packages/ac/e2/791db6fcae6f44f3588404ea27368540689a9b139328659ce58bcf727ea3/libtlda-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b3d320499341550fe4fd681d8180dd88", "sha256": "2102c1ac5569eb630449aa7c82b0220ef0ab9a2ba859759bb22fe14050760508" }, "downloads": -1, "filename": "libtlda-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b3d320499341550fe4fd681d8180dd88", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 29334, "upload_time": "2018-04-05T18:25:35", "url": "https://files.pythonhosted.org/packages/4d/ee/286f123a28c16aea64632eaf86f45dee2ef5948aa94ebc4dfda893f3e558/libtlda-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63aad152ac24ebf73ebbe7a8d1d31b00", "sha256": "09b7900324ea78d67f5d1da6194436334e40156fd67a459525779ab3888a168a" }, "downloads": -1, "filename": "libtlda-0.1.2.tar.gz", "has_sig": false, "md5_digest": "63aad152ac24ebf73ebbe7a8d1d31b00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20117, "upload_time": "2018-04-05T18:25:36", "url": "https://files.pythonhosted.org/packages/0b/6a/688fc3d8cb437bc8429350a2aef28660d7311f1ff58e8126cb5e6ea033af/libtlda-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "2b666b58d368c52e43dd5fb1954ecddc", "sha256": "b65bdd8e440767c0737ac7d93c5ef27ce28aa5418a872664868c3133859a5985" }, "downloads": -1, "filename": "libtlda-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2b666b58d368c52e43dd5fb1954ecddc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 29329, "upload_time": "2018-04-06T07:34:41", "url": "https://files.pythonhosted.org/packages/76/47/6034ce071d8c9b0d4b1d3c7f07f72c369e6e0c7b15a194424d5b81e3c506/libtlda-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b7784b83fe77d61933acb6076d5dfedd", "sha256": "2ba9c646017630f9d30b89369d8ca994244348716f0104498cf680a1afefa371" }, "downloads": -1, "filename": "libtlda-0.1.3.tar.gz", "has_sig": false, "md5_digest": "b7784b83fe77d61933acb6076d5dfedd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20120, "upload_time": "2018-04-06T07:34:42", "url": "https://files.pythonhosted.org/packages/91/80/72f90029cbb14aac39b55b18c40c3792c4fa87f370508565d7533e033832/libtlda-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "7b22fb24d0fd7da32a379351b0441dce", "sha256": "e636a48bcde357fb25c17c15bad96030c56b77f7f29374da7aecd2d83b6afce1" }, "downloads": -1, "filename": "libtlda-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7b22fb24d0fd7da32a379351b0441dce", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 30329, "upload_time": "2018-04-16T19:19:47", "url": "https://files.pythonhosted.org/packages/a3/95/d0f41363a9e32f85156b4e69951769fa8d2e9ed78e3fdcd08e5c5f06d718/libtlda-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "44b379b8a5935d2910690c8ce2a2b059", "sha256": "9d5adfa584dac79720b887bb1f1b20c68da0de53d9803aa6c4f42fe53e69f723" }, "downloads": -1, "filename": "libtlda-0.1.4.tar.gz", "has_sig": false, "md5_digest": "44b379b8a5935d2910690c8ce2a2b059", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20993, "upload_time": "2018-04-16T19:19:48", "url": "https://files.pythonhosted.org/packages/16/be/333049dada9a161ed69026462b0e65da9205b3ec7440d4995ac2cb304bef/libtlda-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "05877359a28412fa5f13afa99dac52a1", "sha256": "2b6c5cdbbd76276eb07c35371edd90a2e0a573c9d2f7fbc736a00230adfde47a" }, "downloads": -1, "filename": "libtlda-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "05877359a28412fa5f13afa99dac52a1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 27459, "upload_time": "2018-04-16T19:37:18", "url": "https://files.pythonhosted.org/packages/5a/01/a6137ff9bb4c9adf41e708fda3e2ed41c3a2ec29a1346dd2dc47a8b884e7/libtlda-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2277a3930495e5bab437cda79258b72e", "sha256": "bced8970689182234488deba3f1c1221b332668fc2a9420b1243317cce715d58" }, "downloads": -1, "filename": "libtlda-0.1.5.tar.gz", "has_sig": false, "md5_digest": "2277a3930495e5bab437cda79258b72e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20988, "upload_time": "2018-04-16T19:37:25", "url": "https://files.pythonhosted.org/packages/35/fa/a0d2f6457b44dd8e58a3b736f889f9f49b03b9796b1c44b358652af4390a/libtlda-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "05877359a28412fa5f13afa99dac52a1", "sha256": "2b6c5cdbbd76276eb07c35371edd90a2e0a573c9d2f7fbc736a00230adfde47a" }, "downloads": -1, "filename": "libtlda-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "05877359a28412fa5f13afa99dac52a1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 27459, "upload_time": "2018-04-16T19:37:18", "url": "https://files.pythonhosted.org/packages/5a/01/a6137ff9bb4c9adf41e708fda3e2ed41c3a2ec29a1346dd2dc47a8b884e7/libtlda-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2277a3930495e5bab437cda79258b72e", "sha256": "bced8970689182234488deba3f1c1221b332668fc2a9420b1243317cce715d58" }, "downloads": -1, "filename": "libtlda-0.1.5.tar.gz", "has_sig": false, "md5_digest": "2277a3930495e5bab437cda79258b72e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20988, "upload_time": "2018-04-16T19:37:25", "url": "https://files.pythonhosted.org/packages/35/fa/a0d2f6457b44dd8e58a3b736f889f9f49b03b9796b1c44b358652af4390a/libtlda-0.1.5.tar.gz" } ] }