{ "info": { "author": "Armin Askari, Alexandre d'Aspremont, Laurent El Ghaoui", "author_email": "aspremon@ens.fr", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "\nNFS: Naive Feature Selection\n=======\n\nThis package solves the Naive Feature Selection problem described in [the paper](https://arxiv.org/abs/1905.09884).\n\n# Installation\n\n```\npip install git+https://github.com/aspremon/NaiveFeatureSelection\n```\n\n# Usage\n\n## Minimal usage script\n\nThe [DemoNFS.py](DemoNFS.py) script loads the *20 newsgroups* text data set from *scikit-learn* and reports accuracy of Naive Feature Selection, followed by SVC using the selected features.\n\nThe package is compatible with *scikit-learn*'s *Fit-Transform* paradigm. To demonstrate this, [DemoNFS.py](DemoNFS.py) runs the same test using the *pipeline* package from *scikit-learn* and performs cross validation using *GridSearchCV* from *sklearn.model_selection*.\n\nTo run the `DemoNFS.py` script, type\n```\npython DemoNFS.py\n```\n\nThis should produce the following output\n\n```\nTesting NFS ...\nLoading 20 newsgroups dataset for categories:\n['sci.med', 'sci.space']\n\nExtracting features from the training data using a sparse vectorizer\nn_samples: 1187, n_features: 21368\n\nExtracting features from the test data using the same vectorizer\nn_samples: 790, n_features: 21368\n\nNFS accuracy: 0.843\n\nSpace features:\n['aerospace', 'allen', 'ames', 'apollo', 'astronomy', 'billion', 'built', 'centaur', 'comet', 'command', 'commercial', 'cost', 'data', 'dc', 'dryden', 'earth', 'flight', 'funding', 'government', 'gravity', 'jupiter', 'landing', 'launch', 'launched', 'launches', 'lunar', 'mars', 'mary', 'mining', 'mission', 'missions', 'moon', 'nasa', 'orbit', 'orbital', 'pat', 'payload', 'planetary', 'program', 'project', 'proton', 'rocket', 'rockets', 'russian', 'satellite', 'satellites', 'shafer', 'shuttle', 'software', 'solar', 'space', 'spacecraft', 'ssto', 'station', 'sun', 'titan', 'vehicle']\n\nMed features:\n['allergic', 'banks', 'blood', 'brain', 'cadre', 'cancer', 'candida', 'chastity', 'diagnosed', 'diet', 'disease', 'diseases', 'doctor', 'doctors', 'drug', 'drugs', 'dsl', 'food', 'foods', 'geb', 'gordon', 'health', 'intellect', 'lyme', 'med', 'medical', 'medicine', 'msg', 'n3jxp', 'pain', 'patient', 'patients', 'pitt', 'seizures', 'shameful', 'skepticism', 'soon', 'surrender', 'symptoms', 'syndrome', 'therapy', 'treatment', 'yeast']\n\nPipeline accuracy: 0.843\n\nBest cross validated k: 500\n```\n\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/aspremon/NaiveFeatureSelection", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "naive-feature-selection", "package_url": "https://pypi.org/project/naive-feature-selection/", "platform": "", "project_url": "https://pypi.org/project/naive-feature-selection/", "project_urls": { "Homepage": "https://github.com/aspremon/NaiveFeatureSelection" }, "release_url": "https://pypi.org/project/naive-feature-selection/0.0.1/", "requires_dist": [ "scikit-learn" ], "requires_python": ">=3.5.0", "summary": "Naive Feature Selection", "version": "0.0.1" }, "last_serial": 5712048, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "14e61726cd162b045f164e1e9d14b9ff", "sha256": "3173155c1c890639c33bd07ec7dd282f793be4cdfa20cb1769b9627ff15f04a8" }, "downloads": -1, "filename": "naive_feature_selection-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "14e61726cd162b045f164e1e9d14b9ff", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.0", "size": 6004, "upload_time": "2019-08-21T22:16:59", "url": "https://files.pythonhosted.org/packages/15/12/2a4922ea96d6b7af413c1f16bd0c623525ca928fe531fdd2180dec269cab/naive_feature_selection-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6b285b46be6a93f2b26c2d2437e659ae", "sha256": "5f39f17150c3e3624275dfac7dfd85fe8eb812930623d5ce4091efafa6e41789" }, "downloads": -1, "filename": "naive_feature_selection-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6b285b46be6a93f2b26c2d2437e659ae", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 4618, "upload_time": "2019-08-21T22:17:01", "url": "https://files.pythonhosted.org/packages/5d/ca/0b2756cf50126970c0ebb001972d247c9dc0a32ca0b5a68287d06627b5b2/naive_feature_selection-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "14e61726cd162b045f164e1e9d14b9ff", "sha256": "3173155c1c890639c33bd07ec7dd282f793be4cdfa20cb1769b9627ff15f04a8" }, "downloads": -1, "filename": "naive_feature_selection-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "14e61726cd162b045f164e1e9d14b9ff", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.0", "size": 6004, "upload_time": "2019-08-21T22:16:59", "url": "https://files.pythonhosted.org/packages/15/12/2a4922ea96d6b7af413c1f16bd0c623525ca928fe531fdd2180dec269cab/naive_feature_selection-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6b285b46be6a93f2b26c2d2437e659ae", "sha256": "5f39f17150c3e3624275dfac7dfd85fe8eb812930623d5ce4091efafa6e41789" }, "downloads": -1, "filename": "naive_feature_selection-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6b285b46be6a93f2b26c2d2437e659ae", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 4618, "upload_time": "2019-08-21T22:17:01", "url": "https://files.pythonhosted.org/packages/5d/ca/0b2756cf50126970c0ebb001972d247c9dc0a32ca0b5a68287d06627b5b2/naive_feature_selection-0.0.1.tar.gz" } ] }