Skip to content

Commit 2725128

Browse files
committed
Rename to Torchhd
1 parent 3396133 commit 2725128

22 files changed

+72
-79
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# This workflow will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
91
name: Publish
102

113
on:
@@ -35,7 +27,7 @@ jobs:
3527
- name: Publish distribution to PyPI
3628
uses: pypa/gh-action-pypi-publish@master
3729
with:
38-
password: ${{ secrets.PYPI_PASSWORD }}
30+
password: ${{ secrets.PYPI_TOKEN }}
3931

4032
anaconda:
4133
runs-on: ubuntu-latest

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<p align="center">
2-
<a href="https://github.com/mikeheddes/hdc-lib/blob/main/LICENSE"><img alt="GitHub license" src="https://img.shields.io/badge/license-MIT-orange.svg?style=flat" /></a>
3-
<a href="https://pypi.org/project/hdc/"><img alt="pypi version" src="https://img.shields.io/pypi/v/hdc.svg?style=flat&color=orange" /></a>
4-
<a href="https://anaconda.org/mikeheddes/hdc"><img alt="conda version" src="https://img.shields.io/conda/v/mikeheddes/hdc?label=conda&style=flat&color=orange" /></a>
5-
<a href="https://github.com/mikeheddes/hdc-lib/actions/workflows/test.yml?query=branch%3Amain"><img alt="tests status" src="https://img.shields.io/github/workflow/status/mikeheddes/hdc-lib/Testing/main?label=tests&style=flat" />
2+
<a href="https://github.com/hyperdimensional-computing/torchhd/blob/main/LICENSE"><img alt="GitHub license" src="https://img.shields.io/badge/license-MIT-orange.svg?style=flat" /></a>
3+
<a href="https://pypi.org/project/torchhd/"><img alt="pypi version" src="https://img.shields.io/pypi/v/torchhd.svg?style=flat&color=orange" /></a>
4+
<a href="https://anaconda.org/torchhd/torchhd"><img alt="conda version" src="https://img.shields.io/conda/v/torchhd/torchhd?label=conda&style=flat&color=orange" /></a>
5+
<a href="https://github.com/hyperdimensional-computing/torchhd/actions/workflows/test.yml?query=branch%3Amain"><img alt="tests status" src="https://img.shields.io/github/workflow/status/hyperdimensional-computing/torchhd/Test/main?label=tests&style=flat" />
66
</a><img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" />
77
</p>
88

99
<div align="center">
10-
<a href="https://mikeheddes.github.io/hdc-lib">
11-
<img width="380px" alt="Torchhd logo" src="./resources/torchhd-logo.svg" />
10+
<a href="https://github.com/hyperdimensional-computing/torchhd">
11+
<img width="380px" alt="Torchhd logo" src="https://raw.githubusercontent.com/hyperdimensional-computing/torchhd/main/resources/torchhd-logo.svg" />
1212
</a>
1313
</div>
1414

15-
# [Torchhd](https://mikeheddes.github.io/hdc-lib)
15+
# Torchhd
1616

1717
Torchhd is a Python library for Hyperdimensional Computing.
1818

@@ -28,16 +28,16 @@ pip install hdc
2828
```
2929

3030
```bash
31-
conda install -c mikeheddes hdc
31+
conda install -c torchhd torchhd
3232
```
3333

3434
## Documentation
3535

36-
You can find documentation for Torchhd [on the website](https://mikeheddes.github.io/hdc-lib).
36+
You can find documentation for Torchhd [on the website](https://hyperdimensional-computing.github.io/torchhd/).
3737

3838
## Examples
3939

40-
We have several examples [in the repository](/examples/). Here is a simple one to get you started:
40+
We have several examples [in the repository](https://github.com/hyperdimensional-computing/torchhd/tree/main/examples). Here is a simple one to get you started:
4141

4242
```python
4343
import torch
@@ -87,9 +87,9 @@ You will notice that we first declare all the symbols which are used to represen
8787
### Creating a New Release
8888

8989
- A GitHub release triggers a GitHub action that builds the library and publishes it to PyPi and Conda in addition to the documentation website.
90-
- Before creating a new GitHub release, increment the version number in [setup.py](/setup.py) using [semantic versioning](https://semver.org).
90+
- Before creating a new GitHub release, increment the version number in [setup.py](https://github.com/hyperdimensional-computing/torchhd/blob/main/setup.py) using [semantic versioning](https://semver.org).
9191
- When creating a new GitHub release, set the tag to be "v{version number}", e.g., v1.5.2, and provide a clear description of the changes.
9292

9393
### License
9494

95-
This library is [MIT licensed](./LICENSE).
95+
This library is [MIT licensed](https://github.com/hyperdimensional-computing/torchhd/blob/main/LICENSE).

conda/meta.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% set data = load_setup_py_data() %}
22

33
package:
4-
name: hdc
4+
name: torchhd
55
version: {{ data['version'] }}
66

77
source:
@@ -24,8 +24,8 @@ requirements:
2424

2525
test:
2626
imports:
27-
- hdc
28-
- hdc.datasets
27+
- torchhd
28+
- torchhd.datasets
2929

3030
about:
3131
home: {{ data['url'] }}

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Welcome to hdc's documentation!
1+
Welcome to the Torchhd documentation!
22
===============================
33

4-
*hdc* is a Python library dedicated to Hyperdimensional Computing and the operations related to it.
4+
*Torchhd* is a Python library dedicated to Hyperdimensional Computing and the operations related to it.
55

66
.. toctree::
77
:maxdepth: 2

hdc/__init__.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

hdc/datasets/__init__.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
from setuptools import setup, find_packages
77

88
setup(
9-
name="hdc",
10-
version="0.5.7",
11-
description="Python library for Hyperdimensional Computing",
9+
name="torchhd",
10+
version="0.6.0",
11+
description="Torchhd is a Python library for Hyperdimensional Computing",
1212
long_description=open("README.md").read(),
1313
long_description_content_type="text/markdown",
14-
url="https://github.com/mikeheddes/hdc-lib",
14+
url="https://github.com/hyperdimensional-computing/torchhd",
1515
license="MIT",
1616
install_requires=open("requirements.txt").readlines(),
17-
packages=find_packages(exclude=["docs", "hdc.tests", "examples"]),
17+
packages=find_packages(exclude=["docs", "torchhd.tests", "examples"]),
1818
python_requires=">=3.6, <4",
1919
project_urls={
20-
"Source": "https://github.com/mikeheddes/hdc-lib/",
21-
"Documentation": "https://mikeheddes.github.io/hdc-lib/",
20+
"Source": "https://github.com/hyperdimensional-computing/torchhd",
21+
"Documentation": "https://hyperdimensional-computing.github.io/torchhd/",
2222
},
2323
)

torchhd/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import torchhd.functional as functional
2+
import torchhd.embeddings as embeddings
3+
import torchhd.datasets as datasets
4+
5+
__all__ = [
6+
"functional",
7+
"embeddings",
8+
"datasets",
9+
]

torchhd/datasets/__init__.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from torchhd.datasets.beijing_air_quality import BeijingAirQuality
2+
from torchhd.datasets.isolet import ISOLET
3+
from torchhd.datasets.european_languages import EuropeanLanguages
4+
from torchhd.datasets.ucihar import UCIHAR
5+
from torchhd.datasets.airfoil_self_noise import AirfoilSelfNoise
6+
from torchhd.datasets.emg_hand_gestures import EMGHandGestures
7+
from torchhd.datasets.pamap import PAMAP
8+
from torchhd.datasets.ccpp import CyclePowerPlant
9+
10+
__all__ = [
11+
"BeijingAirQuality",
12+
"ISOLET",
13+
"EuropeanLanguages",
14+
"UCIHAR",
15+
"AirfoilSelfNoise",
16+
"EMGHandGestures",
17+
"PAMAP",
18+
"CyclePowerPlant",
19+
]

hdc/datasets/airfoil_self_noise.py renamed to torchhd/datasets/airfoil_self_noise.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import os
22
import os.path
3-
from typing import Callable, Optional, Tuple, List
3+
from typing import Callable, Optional, Tuple
44
import torch
5-
import pandas as pd
65
from torch.utils import data
7-
import math
8-
from .utils import download_file, unzip_file
6+
import pandas as pd
7+
8+
from .utils import download_file
99

1010

1111
class AirfoilSelfNoise(data.Dataset):

0 commit comments

Comments
 (0)