Fast One Hot Encoder
This is simple package for fast one hot encoding, implemented in Rust.
Installation
pip install rs_fast_one_hot --upgrade
Usage
from rs_fast_one_hot import OneHotTransformer
data = ['1a', '1a', '2h', '5j', '8n', '8n', '5j']
transformer = OneHotTransformer()
transformer.fit(data)
res = transformer.transform(data)
print("Encoded data:", res.toarray())
for multithread transform:
transformer = OneHotTransformer(n_jobs=5)
to back to single thread:
transformer.to_single_thread()
complete example
from rs_fast_one_hot import OneHotTransformer
data = ['1a', '1a', '2h', '5j', '8n', '8n', '5j']
transformer = OneHotTransformer(5)
transformer.fit(data)
res = transformer.transform(data)
print("Encoded data before save", res.toarray())
transformer.to_single_thread() # convert to single thread for prom usage
with open('transformer.pkl', 'wb') as f:
pickle.dump(transformer, f)
# Load transformer from disk
with open('transformer.pkl', 'rb') as f:
transformer2 = pickle.load(f)
res2 = transformer2.transform(data)
print("Encoded data after load from disk", res2.toarray())
Metadata
Release files for rs-fast-one-hot 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 3.7 MB
Release files / rs_fast_one_hot-0.1.1-cp313-cp313t-manylinux_2_28_x86_64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp313-cp313t-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 358.1 kB |
| Tags | CPython 3.13 CPython 3.13 free-threading Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
8052bf30c8051e9b86c25e793c795175a381f7d0f617c4fa83cd817e8015fc14
|
|
BLAKE2b-256 checksum How to use checksums |
25e2afeded7ddf045ce1469c8da7d364d6fa03a0a3cc2349278e743470259b29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp313-cp313-win_amd64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 196.8 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bfd0f64d8ae79ba6d3008d4e4b35a6ad9ea77d6ffecaebf479e31ef5666d8146
|
|
BLAKE2b-256 checksum How to use checksums |
889ca9190cb1ef69fc03c6bf9893fcf6682881ee4586c827c84ce6512e17914d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 358.1 kB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a1757896a29698c51f02f4ea0c98e4a8b09410fb910b204f5be3503ec4dc3128
|
|
BLAKE2b-256 checksum How to use checksums |
a409516e0430741f5662977d1871c8fe6342a25d2f6746e7e5b992187289a248
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp312-cp312-win_amd64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 196.8 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
dac2b90743a601a2f76c05906847debfbf1a11a2f6b87e67e13d05855bb51b7d
|
|
BLAKE2b-256 checksum How to use checksums |
bffa65a3fc39d8e3b84eb0e8c608f9fe2fb22ae556cf9dff687702b3a8b3d687
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 357.9 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
52bad522adf8c407e26e6da2f3845863c9fd62e39e825847b76838eb902aa15b
|
|
BLAKE2b-256 checksum How to use checksums |
977bff1b5a0ad855e5ee2b5d148e494dfd8028fd2e30f30f4c8360a0a9129909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp311-cp311-win_amd64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 196.7 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c95b1e3e06013ddc3055b27133d631b1ee035b6f0981b9904a038938778b14c1
|
|
BLAKE2b-256 checksum How to use checksums |
ab61aad49b43daa171292b5844562653ff556d55a89ca6e2f1b55b81ec933c15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 358.4 kB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
44142c841081c1157d286384d9fbe8c5e40de2b0cf5ba69ecee94f75f157f029
|
|
BLAKE2b-256 checksum How to use checksums |
bd8c2054fbc8587fbdb3f39134bdf0f2f5de4242763867162714ef4eed1584cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp310-cp310-win_amd64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 196.7 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6119cc80445f60595c5a853d28a8e052bc58901a79bf7054670f32842e97684d
|
|
BLAKE2b-256 checksum How to use checksums |
f8d272c6152feebb48fec756d87d941965aa50372952bac3825282f7d21c0b8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 358.5 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9ec97445d3a6cc32f83067a74b64f69e31dc2a32c1bf607470b2d3d13e78f6da
|
|
BLAKE2b-256 checksum How to use checksums |
4944f4b94fde5dc52ce9c240f3a83a02146611733973dc2e4e7e87bd2782e93c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp39-cp39-win_amd64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 196.7 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b80453db697f6fe24f9be37e19f5bfcb57c79c0cf8f7e24636fe27ae35c54edc
|
|
BLAKE2b-256 checksum How to use checksums |
2f4671ae9f936f230a39fbf767936e05bebc73936a09f0cd4d3a5f9bb5d07c1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp39-cp39-manylinux_2_28_x86_64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp39-cp39-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 359.1 kB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
98e3000984a6108438f736ac4e6262a2df56846a885a320376d965df3005dd83
|
|
BLAKE2b-256 checksum How to use checksums |
b3aa6e9a79adf874ee3d24a9878374792253f671146fe6f4718248d8cfaa7312
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp38-cp38-win_amd64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 196.7 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1830f18232b9cf232d469a40f0477eabe00eed1a30cc8f53334e7cccbc12b75b
|
|
BLAKE2b-256 checksum How to use checksums |
03b4069c4c6ccd0c11ce2646c655cdc97359f18ca54d8127910aa7ee1585d416
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / rs_fast_one_hot-0.1.1-cp38-cp38-manylinux_2_28_x86_64.whl
| Download URL | rs_fast_one_hot-0.1.1-cp38-cp38-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 358.7 kB |
| Tags | CPython 3.8 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a6b96504f162c8345572373f59cf9c540dacc34ebf8a3480614b231bff124a4f
|
|
BLAKE2b-256 checksum How to use checksums |
da5c3895985da8d705169be2df04ceffad77ed4ece6653e37b199163995e94e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Security for rs-fast-one-hot 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.