h_anomaly
A small example package Anomaly detection using hierarchical clustering, anomaly detector, classifiers and fast model rebuilding
Required Packages to run -
1) pandas
2) numpy
3) pickle
4) scipy
5) freediscovery
6) sklearn
7) matplotlib
Install the Package
pip install -U h_anomaly
To Use the Package:
Import h_anomaly
import h_anomaly - 'from h_anomaly import driver'
Building Tree for the 1st time
cluster,cluster_tree,max_depth = driver.cluster_driver(file_path,target_class,default_class)
Loading New data for testing
df,train_X,train_y = driver.get_data(file_path,target_class,default_class)
Storing Test Data for future uses
test_df,test_X,test_y = driver.get_data(file_path,target_class,default_class)
cluster.set_test(test_X,test_y)
Certify Model for performance monitoring:
cluster.certify_model(cluster_tree,test_y)
Check Cluster model for retraining
cluster.check_model(cluster_tree,threshold)
Available Functions:
1) fit - Fit the Data into the Birch algorithm to create the clusters
def fit(self,data,y)
2) set_test - Store the test data for future uses
set_test(self,data,y)
3) get_cluster_tree - For each cluster at every level creates the bcluster objects
get_cluster_tree(self)
4) model_adder - Classification model added to each cluster by this function (Change this function to add different model)
def model_adder(self,cluster_tree)
5) update_model - Classification model is updated with new data
update_model(self,cluster_tree,cluster_id)
6) outlier_model_adder - Outlier detection model is added to each cluster (Change this function to add different model)
outlier_model_adder(self,cluster_tree)
7) certify_model - Scores are calculated in this function
certify_model(self,cluster_tree,test_y)
Metadata
Release files for h-anomaly 0.0.6
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 |
|---|---|---|---|---|
| h_anomaly-0.0.6.tar.gz | 5.6 kB | Without provenance | Details for h_anomaly-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| h_anomaly-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for h_anomaly-0.0.6-py3-none-any.whl |
Total release size: 13.3 kB
Release files / h_anomaly-0.0.6.tar.gz
| Download URL | h_anomaly-0.0.6.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2018d1a3130827c7bb159b9cbf926b9409cf4a6e8cac66c90235aebc0087dab
|
|
BLAKE2b-256 checksum How to use checksums |
254a53f65db46e56d8eaa5c5f6ff66e6c33d55ea4705c16970c1906f46175592
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / h_anomaly-0.0.6-py3-none-any.whl
| Download URL | h_anomaly-0.0.6-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fedec170d3c526b37b0d951c2b3b95de40e59b771c1642f0f3145cafc11bd44
|
|
BLAKE2b-256 checksum How to use checksums |
ad788e6abf137718b0104e389ff3b837ddf670b510bb6417c293fc97670fac6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for h-anomaly 0.0.6
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.