{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Topic :: Scientific/Engineering", "Topic :: Software Development" ], "description": "===================================================\nalphaCSC: Convolution sparse coding for time-series\n===================================================\n\n\n.. image:: https://api.travis-ci.org/alphacsc/alphacsc.svg?branch=master\n :target: https://travis-ci.org/alphacsc/alphacsc\n :alt: Build Status\n\n.. image:: https://codecov.io/github/alphacsc/alphacsc/coverage.svg?precision=0\n\t:target: https://codecov.io/gh/alphacsc/alphacsc\n\t:alt: Test coverage\n\nThis is a library to perform shift-invariant `sparse dictionary learning\n`_, also known as\nconvolutional sparse coding (CSC), on time-series data.\nIt includes a number of different models:\n\n1. univariate CSC\n2. multivariate CSC\n3. multivariate CSC with a rank-1 constraint [1]_\n4. univariate CSC with an alpha-stable distribution [2]_\n\nA mathematical descriptions of these models is available `in the documentation\n`_.\n\nInstallation\n============\n\nTo install this package, the easiest way is using ``pip``. It will install this\npackage and its dependencies. The ``setup.py`` depends on ``numpy`` and\n``cython`` for the installation so it is advised to install them beforehand. To\ninstall this package, please run one of the two commands:\n\n(Latest stable version)\n\n.. code::\n\n pip install numpy cython\n pip install alphacsc\n\n(Development version)\n\n.. code::\n\n\tpip install numpy cython\n\tpip install git+https://github.com/alphacsc/alphacsc.git#egg=alphacsc\n\nIf you do not have admin privileges on the computer, use the ``--user`` flag\nwith ``pip``. To upgrade, use the ``--upgrade`` flag provided by ``pip``.\n\nTo check if everything worked fine, you can run:\n\n.. code::\n\n\tpython -c 'import alphacsc'\n\nand it should not give any error messages.\n\nQuickstart\n==========\n\nHere is an example to present briefly the API:\n\n.. code:: python\n\n import numpy as np\n import matplotlib.pyplot as plt\n from alphacsc import BatchCDL\n\n # Define the different dimensions of the problem\n n_atoms = 10\n n_times_atom = 50\n n_channels = 5\n n_trials = 10\n n_times = 1000\n\n # Generate a random set of signals\n X = np.random.randn(n_trials, n_channels, n_times)\n\n # Learn a dictionary with batch algorithm and rank1 constraints.\n cdl = BatchCDL(n_atoms, n_times_atom, rank1=True)\n cdl.fit(X)\n\n # Display the learned atoms\n fig, axes = plt.subplots(n_atoms, 2, num=\"Dictionary\")\n for k in range(n_atoms):\n axes[k, 0].plot(cdl.u_hat_[k])\n axes[k, 1].plot(cdl.v_hat_[k])\n\n axes[0, 0].set_title(\"Spatial map\")\n axes[0, 1].set_title(\"Temporal map\")\n for ax in axes.ravel():\n ax.set_xticklabels([])\n ax.set_yticklabels([])\n\n plt.show()\n\nBug reports\n===========\n\nUse the `github issue tracker `_ to report bugs.\n\nCite our work\n=============\n\nIf you use this code in your project, please consider citing our work:\n\n.. [1] Dupr\u00e9 La Tour, T., Moreau, T., Jas, M., & Gramfort, A. (2018).\n\t`Multivariate Convolutional Sparse Coding for Electromagnetic Brain Signals\n\t`_. Advances in Neural Information\n\tProcessing Systems (NIPS).\n\n.. [2] Jas, M., Dupr\u00e9 La Tour, T., \u015eim\u015fekli, U., & Gramfort, A. (2017). `Learning\n\tthe Morphology of Brain Signals Using Alpha-Stable Convolutional Sparse Coding\n\t`_.\n\tAdvances in Neural Information Processing Systems (NIPS), pages 1099--1108.", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/alphacsc/alphacsc.git", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "BSD (3-clause)", "maintainer": "Mainak Jas", "maintainer_email": "mainakjas@gmail.com", "name": "alphacsc", "package_url": "https://pypi.org/project/alphacsc/", "platform": "any", "project_url": "https://pypi.org/project/alphacsc/", "project_urls": { "Download": "https://github.com/alphacsc/alphacsc.git" }, "release_url": "https://pypi.org/project/alphacsc/0.3/", "requires_dist": null, "requires_python": "", "summary": "Convolutional dictionary learning for noisy signals", "version": "0.3" }, "last_serial": 5386280, "releases": { "0.2.2": [ { "comment_text": "", "digests": { "md5": "ce60c9d9487d3698ba53cee177b3280f", "sha256": "a6e2ce1198e2e011fde2f0faa76f545122452379685b3593377f7694f1d4fc17" }, "downloads": -1, "filename": "alphacsc-0.2.2.tar.gz", "has_sig": false, "md5_digest": "ce60c9d9487d3698ba53cee177b3280f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5583492, "upload_time": "2018-11-30T11:01:57", "url": "https://files.pythonhosted.org/packages/69/ee/d9ab886f431141431f3d27f0f2622d97689272fc94802f2ca977ade4b21d/alphacsc-0.2.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "cdac04a9e3ce380418761035e94fc176", "sha256": "3b4305a0c527bd95b307f83bf6bc9e2fa89e5f9b371209c39c1ef4a1d8257d00" }, "downloads": -1, "filename": "alphacsc-0.3.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "cdac04a9e3ce380418761035e94fc176", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4086929, "upload_time": "2019-06-11T12:09:54", "url": "https://files.pythonhosted.org/packages/fe/c0/433c2692958bcdf830f618c869eadf834c63758e5b4c275b63425cda526a/alphacsc-0.3.linux-x86_64.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cdac04a9e3ce380418761035e94fc176", "sha256": "3b4305a0c527bd95b307f83bf6bc9e2fa89e5f9b371209c39c1ef4a1d8257d00" }, "downloads": -1, "filename": "alphacsc-0.3.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "cdac04a9e3ce380418761035e94fc176", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4086929, "upload_time": "2019-06-11T12:09:54", "url": "https://files.pythonhosted.org/packages/fe/c0/433c2692958bcdf830f618c869eadf834c63758e5b4c275b63425cda526a/alphacsc-0.3.linux-x86_64.tar.gz" } ] }