Skip to main content

LPatternIdentification

The formal mathematical definition of the l-Pattern Identification Problem is as follows:

Input:

A finite alphabet Σ, two disjoint sets Good, Bad ⊆ Σn of strings and an integer l > 0

Problem question:

Is there a set of P patterns such that: |P| ≤ l and P → (Good, Bad)?

1. Install:

''' pip install LPatternIdentification '''

2. Load:

''' from LPatternIdentification import feature_set, split_data, get_patterns_from_feature_set, reduce_pattern_set '''

3. Prepare data:

Sort dataset by class labels

Separate observations into numpy ndarray

Separate labels into list

4. Find set of features

''' features = feature_set(observations, labels) '''

5. Split observations by classes

Here, classes are named 'Good' and 'Bad', the 'Good' class being the class of our interest.

''' split_point, Good, Bad = split_data(elections_X, elections_y) '''

6. Return a set of patterns that contain the features and are Good

''' Patterns = get_patterns_from_feature_set(Good, elections_feature_set) '''

7. Identify 'L' number of patterns such that all patterns are uniquely Good and not similar to Bad patterns

''' Patterns_identified = reduce_pattern_set(Patterns, Bad, 7) '''

Metadata

Release files for LPatternIdentification 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LPatternIdentification 0.0.1
File Size Uploaded Provenance Actions
LPatternIdentification-0.0.1.tar.gz 2.5 kB Without provenance Details for LPatternIdentification-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for LPatternIdentification 0.0.1
File Interpreter ABI Platform Actions
LPatternIdentification-0.0.1-py3-none-any.whl Python 3 none any Details for LPatternIdentification-0.0.1-py3-none-any.whl

Total release size: 5.2 kB

Release files / LPatternIdentification-0.0.1.tar.gz

Download URL LPatternIdentification-0.0.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
61390d5acc4f78d2e543368c5e1dd44af257468633e5dab556f795175417f82a
BLAKE2b-256 checksum
How to use checksums
0fd5422afde37fb0cdac433c5ef3538b346a6a528e02ff3ba342aaae421eed70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.8

Release files / LPatternIdentification-0.0.1-py3-none-any.whl

Download URL LPatternIdentification-0.0.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fe68982033b7cdba9403f67903815a525a24c535b927a277c9ed324b5e38351
BLAKE2b-256 checksum
How to use checksums
7e67974845e30cc2152cd236319e61038a7e2233f265b6f5f4b7b7b9717d048f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.8

Security for LPatternIdentification 0.0.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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page