Skip to main content

BaggingRandomMiner is an ensemble of weak one-class classifiers based on dissimilarities. In the training phase, every weak classifier is built using Bagging and computing a threshold of dissimilarities. In the classification phase, the classification scores of the weak classifiers are averaged, and every weak classifier computes its score based on the dissimilarity to the nearest neighbor and the threshold computed in the training phase.

Project description

Bagging Random Miner (BRM)

  • Training phase:
    • Input:
      • T: training dataset;
      • τ: number of classifiers in the ensemble;
      • μ: size of training dataset to bootstrap.
    • Output:
      • P: the set of classifiers parameters (selected objects and dissimilarity thresholds).
    • Training:
      1. Set P initially empty; i.e., P ← {}.
      2. for i= 1..τ do
        1. Let Ti contains a sample with a replacement of μ objects from T.
        2. Let δi contains the average dissimilarity between all the pairs of instances in Ti.
        3. PPU{(Ti, δi )}
      3. return P.
  • Classification phase:
    • Input:
      • x: instance to be classified;
      • P: the set of parameters computed in the training phase.
      • Q: queue with past classification results;
      • σ: number of past objects to consider in the current classification.
    • Output:
      • Anomaly score.
    • Classification:
      1. Let s←0 be the score computed by the classifiers.
      2. for each (Ti, δi ) in P do
        1. Let dmin be the dissimilarity between x and its nearest neighbor in Ti.
        2. Update the score as follows ss+e^(-0.5(dminδi )^2 )
      3. Average the score as follows ss∕|P|
      4. Let s′ be the average of values in Q.
      5. if |Q|=σ then
        1. dequeue(Q)
      6. enqueue(s, Q)
      7. return (s′+s)/2

For more information: J. Benito Camiña, M.A. Medina-Pérez, R. Monroy, O. Loyola-González, L. A. Pereyra-Villanueva, L. C. González-Gurrola "Bagging-RandomMiner: A one-class classifier for file access-based masquerade detection," Machine Vision and Applications, vol. 30, no. 5, pp. 959-974, 2019.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brminer-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

brminer-0.0.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file brminer-0.0.3.tar.gz.

File metadata

  • Download URL: brminer-0.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for brminer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7c8f8ed3f72b9e9178cabeafc4ae058defffee964fff66dddaa5024d4fdd6b35
MD5 0b48ad4aec8f48e037ff3f669cf6250d
BLAKE2b-256 a63ac1deb81391aa170fb43c2791c5e34d02b75d32a4e5dbc234e96824a9324c

See more details on using hashes here.

File details

Details for the file brminer-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: brminer-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for brminer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 85da49604aa202b2f2a6d437c309b1763a61876d95b2f4e799454cc8d8d7422c
MD5 0c4ddb61c98a2cf4371738f63b5849c6
BLAKE2b-256 53a83d8335d7d5c52a3b89818fc92323ced389b0b98b2ba40ba05c55f55465ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page