giotto-deep


Namegiotto-deep JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://github.com/giotto-ai/giotto-deep
SummaryToolbox for Deep Learning and Topological Data Analysis.
upload_time2023-10-11 12:55:46
maintainerMatteo Caorsi
docs_urlNone
author
requires_python
licenseGNU AGPLv3
keywords deep learning topological data analysis persistent homology persistence diagrams
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![image](https://raw.githubusercontent.com/giotto-ai/giotto-deep/master/docs/giotto-deep-big.svg)

![Python package](https://github.com/giotto-ai/giotto-deep/workflows/Python%20package/badge.svg)
![Deploy to gh-pages](https://github.com/giotto-ai/giotto-deep/workflows/Deploy%20to%20gh-pages/badge.svg)
![Upload Python Package](https://github.com/giotto-ai/giotto-deep/workflows/Upload%20Python%20Package/badge.svg)
[![DOI](https://joss.theoj.org/papers/10.21105/joss.04846/status.svg)](https://doi.org/10.21105/joss.04846)

# giotto-deep

The first library to bring seamless integration between topological data
analysis and deep learning on top of PyTorch.
The code for Persformer will be released open-source soon together
with Giotto-deep.
It aims to make the day-to-day of researchers easy, allowing them
to focus on inventing new models and layers rather than dealing
with the more standard deep-learning code.
It comes with optimized implementations for multi-GPU/TPU
computations and the ability to run benchmarks and
hyperparameter optimization in a few lines of code.

## Documentation

You can find the documentation of this repository here: https://giotto-ai.github.io/giotto-deep/

## Run tensorboard for visualization

In order to analyse the results of your models, you need to start **tensorboard**. On the terminal, move inside the `/examples` folder. There, run the following command:
```
tensorboard --logdir=runs
```
Afterwards go [here](http://localhost:6006/) and, after running the notebooks of interest, you will see all the visualization results that you stored in the `writer = SummaryWriter()`.

## Install user version

The simplest way to install `giotto-deep` is using `pip`:
```
python -m pip install -U giotto-deep
```
If necessary, this command will also automatically install all the library dependencies.
**Note:** we recommend upgrading ``pip`` to a recent version as the above may fail on very old versions.


## Install dev version

The first step to install the developer version of the package is to `git clone` this repository:
```
git clone https://github.com/giotto-ai/giotto-deep.git
```
The change the current working directory to the Repository root folder, e.g. `cd giotto-deep`.
It is best practice to create a virtual environment for the project, e.g. using `virtualenv`:
```
virtualenv -p python3.9 venv
```
Activate the virtual environment (e.g. `source venv/bin/activate` on Linux or `venv\Scripts\activate` on Windows).

First make sure you have upgraded to the last version of `pip` with
```
python -m pip install --upgrade pip
```
Make sure you have the latest version of pytorch installed.
You can do this by running the following command (if you have a GPU):
```
pip install torch --extra-index-url https://download.pytorch.org/whl/cu113
```
Once you are in the root folder, install the package dynamically with:
```
pip install -e .
```


## Contributing
The `giotto-deep` project welcomes contributions of all kinds. Please see our [contributing guidelines](
    https://giotto-ai.github.io/gtda-docs/latest/contributing/#guidelines
) for more information.

We are using pre-commit hooks to ensure that the code is formatted correctly. To install the pre-commit hooks, run the following command from the root folder:
```
pre-commit install
```
The pre-commit hooks will run automatically before each commit. If you want to run the pre-commit hooks manually, run the following command from the root folder:
```
pre-commit run --all-files
```

To run both unit and integration tests on *macOS* or *Linux*, simply run the following command from the root folder:
```
bash local_test.bh
```

## TPU support in Google Colab

I order to run your analysis on TPU cores, you ca use the following lines:
```
!git clone https://username:token@github.com/giotto-ai/giotto-deep
!ls
!pip uninstall -y tensorflow
!pip install -e giotto-deep/
!pip install cloud-tpu-client==0.10 https://storage.googleapis.com/tpu-pytorch/wheels/torch_xla-1.9-cp37-cp37m-linux_x86_64.whl
```
Once you have run the lines above, please make sure to restart the runtime.

The code will automatically detect the TPU core and use it as default to run the experiments. GPUs are also automatically supported.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/giotto-ai/giotto-deep",
    "name": "giotto-deep",
    "maintainer": "Matteo Caorsi",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "maintainers@giotto.ai",
    "keywords": "deep learning,topological data analysis,persistent homology,persistence diagrams",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/1a/50/1489d192ebae29f90084a7085929a3e56ce618d41c506d187292554bfaef/giotto-deep-0.0.4.tar.gz",
    "platform": null,
    "description": "![image](https://raw.githubusercontent.com/giotto-ai/giotto-deep/master/docs/giotto-deep-big.svg)\n\n![Python package](https://github.com/giotto-ai/giotto-deep/workflows/Python%20package/badge.svg)\n![Deploy to gh-pages](https://github.com/giotto-ai/giotto-deep/workflows/Deploy%20to%20gh-pages/badge.svg)\n![Upload Python Package](https://github.com/giotto-ai/giotto-deep/workflows/Upload%20Python%20Package/badge.svg)\n[![DOI](https://joss.theoj.org/papers/10.21105/joss.04846/status.svg)](https://doi.org/10.21105/joss.04846)\n\n# giotto-deep\n\nThe first library to bring seamless integration between topological data\nanalysis and deep learning on top of PyTorch.\nThe code for Persformer will be released open-source soon together\nwith Giotto-deep.\nIt aims to make the day-to-day of researchers easy, allowing them\nto focus on inventing new models and layers rather than dealing\nwith the more standard deep-learning code.\nIt comes with optimized implementations for multi-GPU/TPU\ncomputations and the ability to run benchmarks and\nhyperparameter optimization in a few lines of code.\n\n## Documentation\n\nYou can find the documentation of this repository here: https://giotto-ai.github.io/giotto-deep/\n\n## Run tensorboard for visualization\n\nIn order to analyse the results of your models, you need to start **tensorboard**. On the terminal, move inside the `/examples` folder. There, run the following command:\n```\ntensorboard --logdir=runs\n```\nAfterwards go [here](http://localhost:6006/) and, after running the notebooks of interest, you will see all the visualization results that you stored in the `writer = SummaryWriter()`.\n\n## Install user version\n\nThe simplest way to install `giotto-deep` is using `pip`:\n```\npython -m pip install -U giotto-deep\n```\nIf necessary, this command will also automatically install all the library dependencies.\n**Note:** we recommend upgrading ``pip`` to a recent version as the above may fail on very old versions.\n\n\n## Install dev version\n\nThe first step to install the developer version of the package is to `git clone` this repository:\n```\ngit clone https://github.com/giotto-ai/giotto-deep.git\n```\nThe change the current working directory to the Repository root folder, e.g. `cd giotto-deep`.\nIt is best practice to create a virtual environment for the project, e.g. using `virtualenv`:\n```\nvirtualenv -p python3.9 venv\n```\nActivate the virtual environment (e.g. `source venv/bin/activate` on Linux or `venv\\Scripts\\activate` on Windows).\n\nFirst make sure you have upgraded to the last version of `pip` with\n```\npython -m pip install --upgrade pip\n```\nMake sure you have the latest version of pytorch installed.\nYou can do this by running the following command (if you have a GPU):\n```\npip install torch --extra-index-url https://download.pytorch.org/whl/cu113\n```\nOnce you are in the root folder, install the package dynamically with:\n```\npip install -e .\n```\n\n\n## Contributing\nThe `giotto-deep` project welcomes contributions of all kinds. Please see our [contributing guidelines](\n    https://giotto-ai.github.io/gtda-docs/latest/contributing/#guidelines\n) for more information.\n\nWe are using pre-commit hooks to ensure that the code is formatted correctly. To install the pre-commit hooks, run the following command from the root folder:\n```\npre-commit install\n```\nThe pre-commit hooks will run automatically before each commit. If you want to run the pre-commit hooks manually, run the following command from the root folder:\n```\npre-commit run --all-files\n```\n\nTo run both unit and integration tests on *macOS* or *Linux*, simply run the following command from the root folder:\n```\nbash local_test.bh\n```\n\n## TPU support in Google Colab\n\nI order to run your analysis on TPU cores, you ca use the following lines:\n```\n!git clone https://username:token@github.com/giotto-ai/giotto-deep\n!ls\n!pip uninstall -y tensorflow\n!pip install -e giotto-deep/\n!pip install cloud-tpu-client==0.10 https://storage.googleapis.com/tpu-pytorch/wheels/torch_xla-1.9-cp37-cp37m-linux_x86_64.whl\n```\nOnce you have run the lines above, please make sure to restart the runtime.\n\nThe code will automatically detect the TPU core and use it as default to run the experiments. GPUs are also automatically supported.\n",
    "bugtrack_url": null,
    "license": "GNU AGPLv3",
    "summary": "Toolbox for Deep Learning and Topological Data Analysis.",
    "version": "0.0.4",
    "project_urls": {
        "Download": "https://github.com/giotto-ai/giotto-deep/tarball/v0.0.4",
        "Homepage": "https://github.com/giotto-ai/giotto-deep"
    },
    "split_keywords": [
        "deep learning",
        "topological data analysis",
        "persistent homology",
        "persistence diagrams"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b2cacb1024a272d70e7ebbc3e0124c0bdb591967faddc8f4dae5b94f63a3cbb2",
                "md5": "a26f4af1c27e9969a1953d192128a524",
                "sha256": "43707f842813e5258fa536dd1fe6ad77a4a6975a5b037d9fa476d73a9320dc5d"
            },
            "downloads": -1,
            "filename": "giotto_deep-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a26f4af1c27e9969a1953d192128a524",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 168537,
            "upload_time": "2023-10-11T12:55:44",
            "upload_time_iso_8601": "2023-10-11T12:55:44.789260Z",
            "url": "https://files.pythonhosted.org/packages/b2/ca/cb1024a272d70e7ebbc3e0124c0bdb591967faddc8f4dae5b94f63a3cbb2/giotto_deep-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1a501489d192ebae29f90084a7085929a3e56ce618d41c506d187292554bfaef",
                "md5": "fd5c15be6b376d603933fb1ab0ea35ca",
                "sha256": "5f9e39a4dac8d751260b11554162975abf86de70de4d431ee80c3ac65c88bbb2"
            },
            "downloads": -1,
            "filename": "giotto-deep-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "fd5c15be6b376d603933fb1ab0ea35ca",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 125256,
            "upload_time": "2023-10-11T12:55:46",
            "upload_time_iso_8601": "2023-10-11T12:55:46.931052Z",
            "url": "https://files.pythonhosted.org/packages/1a/50/1489d192ebae29f90084a7085929a3e56ce618d41c506d187292554bfaef/giotto-deep-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-11 12:55:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "giotto-ai",
    "github_project": "giotto-deep",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "giotto-deep"
}
        
Elapsed time: 0.24200s