CQU - Classical And Quantum ML
cqu is a classical and quantum machine learning library that can be used to quickly and easily reap benefits of both classical and quantum machine learning algorithms!
- Example usage
from cqu.preprocessing import Preprocessor, MissingValueStrategies
from cqu.quantum_embedding import QuantumClassifier
pp = Preprocessor("path/to/dataset")
strategies = {
'v3': MissingValueStrategies.FILL_MEDIAN,
'time': MissingValueStrategies.FILL_NOCB,
'class': MissingValueStrategies.DROP_ROWS
}
pp.clean_missing(strategies)
dataset = pp.dataframe[['v3', 'v10', 'v11', 'class']]
qc = QuantumClassifier()
qc.train(dataset, "class")
test_df = pd.DataFrame(np.random.rand(5))
prediction = qc.predict(test_df).flatten()
if prediction[0] == 1:
print("Prediction: Fraud")
else:
print("Prediction: Non-fraud")
Metadata
Release files for cqu 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cqu-0.1.1.tar.gz | 20.6 kB | Without provenance | Details for cqu-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cqu-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for cqu-0.1.1-py3-none-any.whl |
Total release size: 43.3 kB
Release files / cqu-0.1.1.tar.gz
| Download URL | cqu-0.1.1.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1a13aa20c7a6a90b8fb2329b570dfaa11ab52d1a5878858eb0c4c463db67d84
|
|
BLAKE2b-256 checksum How to use checksums |
32f2e539c48fe05c9570102269882915de1b2b6d7fbfb14858a95ac43ec6a933
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.11
|
Release files / cqu-0.1.1-py3-none-any.whl
| Download URL | cqu-0.1.1-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c08824b38d5ab0c302d3f774412d6d48fa30cd60d08894436392cb147905f899
|
|
BLAKE2b-256 checksum How to use checksums |
9f2bf8451f24737366a601a0f410c38ef2d001f135c540f161c2a7d0be2a3efa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.11
|
Security for cqu 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.