===============
cynet
===============
.. figure:: https://img.shields.io/pypi/dm/cynet.svg
:alt: cynet PyPI Downloads
.. figure:: https://img.shields.io/pypi/v/cynet.svg
:alt: cynet version
.. image:: http://zed.uchicago.edu/logo/logozed1.png
:height: 400px
:scale: 50 %
:alt: alternate text
:align: center
.. class:: no-web no-pdf
:Info: See <https://arxiv.org/abs/1406.6651> for theoretical background
:Author: ZeD@UChicago <zed.uchicago.edu>
:Description: Implementation of the Deep Granger net inference algorithm, described in https://arxiv.org/abs/1406.6651, for learning spatio-temporal stochastic processes (*point processes*). **cynet** learns a network of generative local models, without assuming any specific model structure.
.. NOTE:: If issues arise with dependencies in python3, be sure that *tkinter* is installed
.. code-block::
sudo apt-get install python3-tk
**Usage:**
.. code-block::
from cynet import cynet
from cynet.cynet import uNetworkModels as models
from viscynet import viscynet as vcn
**cynet module includes:**
* cynet
* viscynet
cynet library classes:
~~~~~~~~~~~~~~~~~~~~~~
* spatioTemporal
* uNetworkModels
* simulateModels
* xgModels
Examples of Pipeline:
You may find two examples of this pipeline in your enviroment's bin folder
after installing the cynet package. There will also be a pdf walking through
another extremely detailed example.
Produces detailed timeseries predictions using Deep Granger Nets.
.. image:: https://zed.uchicago.edu/img/cynetpred.png
:align: center
:scale: 50 %
Description of Pipeline:
You may find two examples of this pipeline in your enviroment's bin folder
after installing the cynet package.
Step 1:
Use the spatioTemporal class and its utility functions to fit and
manipulate your data into a timeseries grid. The end outputs will be triplets:
files that contain the rows (coordinates), the columns (dates), and the timeseries.
The splitTS function will help generate rows of the timeseries. Generally, we
use this to create timeseries beyond the length of the data in the triplets.
We use the triplets to generate predictive models and then split, which have
the longer timeseries to evaluate those models.
Step 2:
Run xGenESeSS on the triplets to generate predictive models. The
xgModels class can be used to assist in this step. If running on a cluster,
set run local to false and calling xgModels.run() will generate the shell
commands to run xGenESeSS in a text file. Otherwise, xgModels will run
locally using the binary installed with the package. The end result are predictive
models. Note that example 1 starts at this point. Thus there are sample models
provided.
Step 3:
To evaluate the models afterwards, use the run_pipeline utility function.
This calls uNetworkModels and simulateModels in parallel to evaluate each model.
simulateModels calls the cynet and flexroc binaries. Outputs will be auc, tpr,
and fpr statistics.
See example 2 for an example of the entire pipeline.
Raw data
{
"_id": null,
"home_page": "https://github.com/zeroknowledgediscovery/",
"name": "cynet",
"maintainer": "",
"docs_url": null,
"requires_python": "==3.*",
"maintainer_email": "",
"keywords": "spatial,temporal,inference,statistical,causality",
"author": "zed.uchicago.edu",
"author_email": "ishanu@uchicago.edu",
"download_url": "https://files.pythonhosted.org/packages/21/8a/dadbf318c1dab09eb7ef00a090d6fffe6621f8129021f5ea68009488dd2f/cynet-2.0.4.tar.gz",
"platform": null,
"description": "===============\ncynet\n===============\n\n.. figure:: https://img.shields.io/pypi/dm/cynet.svg\n :alt: cynet PyPI Downloads\n.. figure:: https://img.shields.io/pypi/v/cynet.svg\n :alt: cynet version\n\n.. image:: http://zed.uchicago.edu/logo/logozed1.png\n :height: 400px\n :scale: 50 %\n :alt: alternate text\n :align: center\n\n.. class:: no-web no-pdf\n\n:Info: See <https://arxiv.org/abs/1406.6651> for theoretical background\n:Author: ZeD@UChicago <zed.uchicago.edu>\n:Description: Implementation of the Deep Granger net inference algorithm, described in https://arxiv.org/abs/1406.6651, for learning spatio-temporal stochastic processes (*point processes*). **cynet** learns a network of generative local models, without assuming any specific model structure.\n\n.. NOTE:: If issues arise with dependencies in python3, be sure that *tkinter* is installed\n\n.. code-block::\n\n sudo apt-get install python3-tk\n\n**Usage:**\n\n.. code-block::\n\n from cynet import cynet\n from cynet.cynet import uNetworkModels as models\n from viscynet import viscynet as vcn\n\n**cynet module includes:**\n * cynet\n * viscynet\n\ncynet library classes:\n~~~~~~~~~~~~~~~~~~~~~~\n* spatioTemporal\n* uNetworkModels\n* simulateModels\n* xgModels\n\nExamples of Pipeline:\n You may find two examples of this pipeline in your enviroment's bin folder\n after installing the cynet package. There will also be a pdf walking through\n another extremely detailed example.\n\nProduces detailed timeseries predictions using Deep Granger Nets.\n\n.. image:: https://zed.uchicago.edu/img/cynetpred.png\n :align: center\n :scale: 50 %\n\nDescription of Pipeline:\n You may find two examples of this pipeline in your enviroment's bin folder\n after installing the cynet package.\n\n Step 1:\n Use the spatioTemporal class and its utility functions to fit and\n manipulate your data into a timeseries grid. The end outputs will be triplets:\n files that contain the rows (coordinates), the columns (dates), and the timeseries.\n The splitTS function will help generate rows of the timeseries. Generally, we\n use this to create timeseries beyond the length of the data in the triplets.\n We use the triplets to generate predictive models and then split, which have\n the longer timeseries to evaluate those models.\n\n Step 2:\n Run xGenESeSS on the triplets to generate predictive models. The\n xgModels class can be used to assist in this step. If running on a cluster,\n set run local to false and calling xgModels.run() will generate the shell\n commands to run xGenESeSS in a text file. Otherwise, xgModels will run\n locally using the binary installed with the package. The end result are predictive\n models. Note that example 1 starts at this point. Thus there are sample models\n provided.\n\n Step 3:\n To evaluate the models afterwards, use the run_pipeline utility function.\n This calls uNetworkModels and simulateModels in parallel to evaluate each model.\n simulateModels calls the cynet and flexroc binaries. Outputs will be auc, tpr,\n and fpr statistics.\n\n See example 2 for an example of the entire pipeline.\n",
"bugtrack_url": null,
"license": "LICENSE.txt",
"summary": "Learning Point Processes Using Deep Granger Nets",
"version": "2.0.4",
"project_urls": {
"Download": "https://github.com/zeroknowledgediscovery/Cynet/archive/2.0.4.tar.gz",
"Homepage": "https://github.com/zeroknowledgediscovery/"
},
"split_keywords": [
"spatial",
"temporal",
"inference",
"statistical",
"causality"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "099861c0b70649a12797eda67ca1b576ff7a33c389bd2371047df4fd83f9ac57",
"md5": "a340b2b7d9362c81f991598a21224b2f",
"sha256": "7a649f4bfd849b5d954e0c05349f4dd4e5a6203ef400e7af04d7ea793a369473"
},
"downloads": -1,
"filename": "cynet-2.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a340b2b7d9362c81f991598a21224b2f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "==3.*",
"size": 41352296,
"upload_time": "2024-02-26T02:06:12",
"upload_time_iso_8601": "2024-02-26T02:06:12.241599Z",
"url": "https://files.pythonhosted.org/packages/09/98/61c0b70649a12797eda67ca1b576ff7a33c389bd2371047df4fd83f9ac57/cynet-2.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "218adadbf318c1dab09eb7ef00a090d6fffe6621f8129021f5ea68009488dd2f",
"md5": "44631964dff1925c211e3974940422bc",
"sha256": "600cda04e671d35c6cf40718f5da3b1faf49de2747e07e2baef94a7a7f05f948"
},
"downloads": -1,
"filename": "cynet-2.0.4.tar.gz",
"has_sig": false,
"md5_digest": "44631964dff1925c211e3974940422bc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "==3.*",
"size": 41878669,
"upload_time": "2024-02-26T02:06:19",
"upload_time_iso_8601": "2024-02-26T02:06:19.327946Z",
"url": "https://files.pythonhosted.org/packages/21/8a/dadbf318c1dab09eb7ef00a090d6fffe6621f8129021f5ea68009488dd2f/cynet-2.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-26 02:06:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zeroknowledgediscovery",
"github_project": "Cynet",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "cynet"
}