Skip to main content

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.

Release files for brminer 0.0.3

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

Source distribution (sdist)

Source distribution for brminer 0.0.3
File Size Uploaded
brminer-0.0.3.tar.gz 3.5 kB Details

Built distribution (wheel)

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

Total release size: 8.0 kB

Release files / brminer-0.0.3.tar.gz

Download URL brminer-0.0.3.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7c8f8ed3f72b9e9178cabeafc4ae058defffee964fff66dddaa5024d4fdd6b35
BLAKE2b-256 checksum
How to use checksums
a63ac1deb81391aa170fb43c2791c5e34d02b75d32a4e5dbc234e96824a9324c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / brminer-0.0.3-py3-none-any.whl

Download URL brminer-0.0.3-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85da49604aa202b2f2a6d437c309b1763a61876d95b2f4e799454cc8d8d7422c
BLAKE2b-256 checksum
How to use checksums
53a83d8335d7d5c52a3b89818fc92323ced389b0b98b2ba40ba05c55f55465ee
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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