{ "info": { "author": "Jonathan Elliott, Rafael S. de Souza, Alberto Krone-Martins, Joseph Hilbe", "author_email": "jonnynelliott@googlemail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: X11 Applications", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License (GPL)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Scientific/Engineering :: Astronomy", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "CosmoPhotoz - GLM PhotoZ estimation\r\n====================================\r\n\r\n.. image:: https://readthedocs.org/projects/cosmophotoz/badge/?version=latest\r\n :target: http://cosmophotoz.readthedocs.org/en/latest/\r\n :alt: Latest version\r\n\r\n.. image:: https://badge.waffle.io/COINtoolbox/CosmoPhotoz.svg?label=ready&title=Ready\r\n :target: https://waffle.io/COINtoolbox/CosmoPhotoz\r\n :alt: 'Stories in Ready'\r\n\r\nHomepage: `GitHub Repository `_\r\n\r\n`CosmoPhotoz` is a package that determines photometric redshifts from galaxies utilising their magnitudes. The method utilises Generalized Linear Models which reproduce the physical aspects of the output distribution. The rest of the methodology and testing of the technique is described in the associated Astronomy and Computing publication (link TBC).\r\n\r\n\r\nFeatures\r\n--------\r\n\r\n- Principle Component Anylsis and decomposition of input photometric catalogue\r\n- Generalized Linear Model family and link choice\r\n- Seaborn publication quality plots\r\n\r\n\r\nGet it now\r\n----------\r\n\r\nThe package can be installed using the PyPI and pip.\r\n\r\n::\r\n\r\n $ pip install -U CosmoPhotoz\r\n\r\nOr if the tarball or repository is downloaded, distutils can be\r\n\r\n::\r\n\r\n $ python setup.py install\r\n\r\nExamples\r\n--------\r\n\r\nRun from the command line.\r\n\r\n:: \r\n\r\n $ run_glm.py --dataset sample.csv --num_components 3 --training_size 10000 --family Gamma --link log\r\n\r\n\r\nOr import the library into python.\r\n\r\n.. code-block:: python \r\n\r\n from CosmoPhotoz.photoz import PhotoSample # import the library\r\n import numpy as np\r\n\r\n # Instantiate the class\r\n UserCatalogue = PhotoSample(filename=\"PHAT0\", family=\"Gamma\", link=\"log\")\r\n\r\n # Make a training size array to loop through\r\n train_size_arr = np.arange(500,10000,500)\r\n catastrophic_error = []\r\n\r\n # Select your number of components\r\n UserCatalogue.num_components = 4\r\n\r\n for i in range(len(train_size_arr)):\r\n UserCatalogue.do_PCA()\r\n UserCatalogue.test_size = train_size_arr[i]\r\n UserCatalogue.split_sample(random=True)\r\n UserCatalogue.do_GLM()\r\n catastrophic_error.append(UserCatalogue.catastrophic_error)\r\n\r\n min_indx = np.array(catastrophic_error) < 5.937\r\n optimum_train_size = train_size_arr[min_indx]\r\n print optimum_train_size\r\n\r\n\r\nSee more examples within the `Documentation`_.\r\n\r\n.. _`Documentation`: http://cosmophotoz.readthedocs.org/\r\n\r\n\r\nDocumentation\r\n-------------\r\n\r\n- The library documentation can be accessed at `Read the Docs `_\r\n\r\n- The git repository can be accessed at `GitHub `_\r\n\r\n- The PyPI package page can be accessed at `PyPI `_\r\n\r\nRequirements\r\n------------\r\n\r\n- Python >= 2.7 or >= 3.3\r\n\r\n\r\nLicense\r\n-------\r\n\r\n- GNU General Public License (GPL>=3)\r\n\r\n.. _pattern: http://www.clips.ua.ac.be/pattern\r\n.. _NLTK: http://nltk.org/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/COINtoolbox/CosmoPhotoz", "keywords": "", "license": "GNU Public License", "maintainer": "Jonathan Elliott", "maintainer_email": "jonnynelliott@googlemail.com", "name": "CosmoPhotoz", "package_url": "https://pypi.org/project/CosmoPhotoz/", "platform": "any", "project_url": "https://pypi.org/project/CosmoPhotoz/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/COINtoolbox/CosmoPhotoz" }, "release_url": "https://pypi.org/project/CosmoPhotoz/0.1/", "requires_dist": null, "requires_python": null, "summary": "Photometric redshift library that implements Generalised Linear Models.", "version": "0.1" }, "last_serial": 1201296, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a2f8b5dc43841e32e67c38ed88f8949e", "sha256": "a3e05c858fd68c5e148266a6b6ddd97224fcfdffc34e2535ce09c5cb4bfe6a67" }, "downloads": -1, "filename": "CosmoPhotoz-0.1.tar.gz", "has_sig": false, "md5_digest": "a2f8b5dc43841e32e67c38ed88f8949e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2649000, "upload_time": "2014-08-23T21:29:15", "url": "https://files.pythonhosted.org/packages/ab/2d/8e0fc82b5164c15e49d36257c89e6ad50db4c7f04b4a0742b690860de08d/CosmoPhotoz-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a2f8b5dc43841e32e67c38ed88f8949e", "sha256": "a3e05c858fd68c5e148266a6b6ddd97224fcfdffc34e2535ce09c5cb4bfe6a67" }, "downloads": -1, "filename": "CosmoPhotoz-0.1.tar.gz", "has_sig": false, "md5_digest": "a2f8b5dc43841e32e67c38ed88f8949e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2649000, "upload_time": "2014-08-23T21:29:15", "url": "https://files.pythonhosted.org/packages/ab/2d/8e0fc82b5164c15e49d36257c89e6ad50db4c7f04b4a0742b690860de08d/CosmoPhotoz-0.1.tar.gz" } ] }