Iterated-sums signature in Rust
Project description
Iterated-sums signature in Rust
This is an implementation of the one-dimensional iterated-sums signature in Rust, with Python 3 bindings.
Installation
From PyPI
Normally, this package can be installed by running
pip3 install o3iss
From source
Curretly we provide wheels for Linux, macOS and 64-bit Windows. If your system is not included in any of these targets, you will have to compile the package yourself. This will require you to have a Rust compiler, which can be obtained from [https://www.rust-lang.org/tools/install].
Start by cloning this repository by running
git clone https://github.com/ntapiam/o3iss.git
Then, enter the directory and run
python3 setup.py install
This should compile and install the package on your system.
Usage
This implementation offers only a single function: iss.compute
with signature (np.ndarray, int) -> np.ndarray
where both the input and ouput arrays are one-dimensional.
In v0.1.2
, we introduced partial support for the sklearn
framework.
Example (assuming that sktime
is present):
from iss import IssClassifier
from sktime.datasets import load_gunpoint
from sktime.utils.data_processing import from_nested_to_2d_array
Xtrain, ytrain = load_gunpoint(split="train", return_X_y=True)
Xtest, ytest = load_gunpoint(split="test", return_X_y=True)
Xtrain, Xtest = (
from_nested_to_2d_array(Xtrain).to_numpy(),
from_nested_to_2d_array(Xtest).to_numpy(),
)
ytrain, ytest = ytrain.astype(int), ytest.astype(int)
clf = IssClassifier(level=3, n_jobs=7)
clf.fit(Xtrain, ytrain)
print(clf.score(Xtest, ytest))
>> 0.9133333333333333
TO DO
- Multidimensional signature
- Proper
sklearn
integration - Produce a proper Python 3 package
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file o3iss-0.1.3.tar.gz
.
File metadata
- Download URL: o3iss-0.1.3.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 499ce2fe27d9a4f6e99cdda0e752734e72c9287b581015ddf5db9e395b7a475c |
|
MD5 | 9d055cce846f7fa4c64274c11729de5c |
|
BLAKE2b-256 | d5ed80694653f3c085ce0507d2d4ee2509f487a3afdaa989f2f20ace03896c29 |
File details
Details for the file o3iss-0.1.3-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 86.5 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1139fd3364f7f3fa0091523c0b15e8b21690d29c3cd249b35739ec8bc7b0276a |
|
MD5 | 787d1ea27df23fdc5d7b08572d022068 |
|
BLAKE2b-256 | 673950a8236363d8a5cbb6498454e08c2d06249d3cc4be01859eb110e341c4b1 |
File details
Details for the file o3iss-0.1.3-cp39-cp39-manylinux2010_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp39-cp39-manylinux2010_x86_64.whl
- Upload date:
- Size: 827.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4a023bf975537733f537bb13756ceec7a0d8b00cb5a45967e9b590c6d659122 |
|
MD5 | 203e70aa42f7d2d67a35c9eb8e918b66 |
|
BLAKE2b-256 | d1ea6f27361f134423521c0d5684c52c12b7afd125bcc0187d7441d0ee7a37a4 |
File details
Details for the file o3iss-0.1.3-cp39-cp39-manylinux1_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp39-cp39-manylinux1_x86_64.whl
- Upload date:
- Size: 827.9 kB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3477f910a67035e6e9ac5e4eca83325b15a05e27882f234a1107a41739f1943 |
|
MD5 | 552d305006af3fc7b1ce3117af16b2f6 |
|
BLAKE2b-256 | 934bbcd3345e308b9b821b235f23723891e2e13404b5c218fef3133411855c93 |
File details
Details for the file o3iss-0.1.3-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 182.6 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbd8a0e61f95c2ac5881f4bc4fed13cfd68eff50ee86f5da466e195ebd0527c4 |
|
MD5 | 9dac62ab0751677f6435a32e7146a4fb |
|
BLAKE2b-256 | 24b7234901bc6bcdd710ff75340937d7e8cf70ec6e0d9c2c2c75a5073ab81a21 |
File details
Details for the file o3iss-0.1.3-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 86.5 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d6fca93c71ac4249ddea89645f3c17717bfe75f7af1ed5901e895b4c2e68458 |
|
MD5 | 050b8aa5d4838c96941d28b3eb1eb955 |
|
BLAKE2b-256 | 11e94a5e5389dd930366b4070306f2d40e26c3d0638657b2739de30c6fa731e6 |
File details
Details for the file o3iss-0.1.3-cp38-cp38-manylinux2010_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 827.9 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a4e53769829cb12e6fd5b8a16a9f7309b2f907a59d3235eda5fc41aa1857ac4 |
|
MD5 | b7b1159ce16176343ed2954392e9bbd1 |
|
BLAKE2b-256 | e74c1e049955cf54124bac8bdf8f271d5da5c8b3f50c5d4d9621a1a793841f41 |
File details
Details for the file o3iss-0.1.3-cp38-cp38-manylinux1_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 827.9 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 089cb7ca0a33f9de96653b103f4b3e0c0c4b73524f21649b577e780f6c17d3f6 |
|
MD5 | c42d40cb8c2125be6d48b626d5ce359a |
|
BLAKE2b-256 | efcba7644a02a324d3a266d972f46fe1c30d55e235729b6517b026d3f3c85fa5 |
File details
Details for the file o3iss-0.1.3-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 182.6 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c083520c42c56147e292a1e82465066f3926e094a194e3add6e3c89902566451 |
|
MD5 | c06a9f81aa5cee742ca39f7afccb9366 |
|
BLAKE2b-256 | f73b221466334e02c0286042b891a6b3246d005a02eb3ae0b866aec32d49a055 |
File details
Details for the file o3iss-0.1.3-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 86.6 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd9160c501368da29d084b835bca647888dd85d651f473079137d24d55f17001 |
|
MD5 | 8fae92eaeaeedc3f9a9bfc8ae74b3d40 |
|
BLAKE2b-256 | 8490b10857bc48991c89950e93bdd7d1032f540ad4b96b753de9152b02c0d356 |
File details
Details for the file o3iss-0.1.3-cp37-cp37m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 827.9 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 000b25c8f4b000c4a1f448d4cf2b24d4dc30d341e467f6912aa7f6d45d3dd471 |
|
MD5 | ca6c61dda5fe8f0cf39bb5e76d0877aa |
|
BLAKE2b-256 | 691b6e85322909ca8bf0b5dc61115220567fefb8ea01542734841a5529a5e05b |
File details
Details for the file o3iss-0.1.3-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 827.9 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15895896367ed72bfeea1f863e37dabdeeb08ef57a84aec09aefee0219ec4eea |
|
MD5 | d83d164c0db710c705f1a1af88376d7f |
|
BLAKE2b-256 | 5e4d1985a4e186666cf61fa695e65bd61505a58aecce1bdf54b0af2fe2e27074 |
File details
Details for the file o3iss-0.1.3-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 182.6 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b20d9293f0e439d4f2936c7574ffdf17f6d12c60f106b6ae739912664ee422ec |
|
MD5 | 121966eb33363cc27f5a09f88389bf20 |
|
BLAKE2b-256 | 88b0680fa1428473897aa166959c6f8e687c11c0c0b16d808e42a04bc51edfef |
File details
Details for the file o3iss-0.1.3-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 86.6 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97c8c770444b7ecb7eb060083bb50f1d6e423452d01d4236ec134791b6e4bd40 |
|
MD5 | a5cccbe4724c87ab5402f7f32d54d83b |
|
BLAKE2b-256 | 190206b0c676ec7bdeffc521743c002618e8dcf7926ce51a73b5cf459d699249 |
File details
Details for the file o3iss-0.1.3-cp36-cp36m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 827.9 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f362d0ba9b81d0acdbfef77ac9367d09ab63f2e7f44e28818cd133522efd7bde |
|
MD5 | ddce3332e1d740a19f6e596361f2042c |
|
BLAKE2b-256 | fc7aba782feac4dcfd13f55a465e211f894cb8a13e7154dc3e6038e7afcfa690 |
File details
Details for the file o3iss-0.1.3-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 827.9 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ee81711e1835ea7c76229b60d69d1373b401d427022b4fc5d9a00f9bdbf3b52 |
|
MD5 | 64b0014c2419d88a011803ac9f829a9b |
|
BLAKE2b-256 | 40a975273fa752b6d9c4994d4200c2eec2c4aab80b1c430486d58ee3c6116f91 |
File details
Details for the file o3iss-0.1.3-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: o3iss-0.1.3-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 182.6 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfd06809f755d8fe3b2c9a852b05afe6422f8a0f2555224320bd5411a4ef5ba3 |
|
MD5 | 960357c368b370a3688153b6d39a6c1d |
|
BLAKE2b-256 | aaa57b64f8fc3e7e09337a2c78d44a3ea1a4db1ef19fcf5ad982af4d9c8e97c6 |