software

Coreax – Revolutionizing Data Reduction With Coreset Algorithms In JAX

For n points in d dimensions, a coreset algorithm takes an n×d data set and reduces it to m≪n points whilst attempting to preserve the statistical properties of the full data set.

The algorithm maintains the dimension of the original data set. Thus the m points, referred to as the coreset, are also d-dimensional.

The m points need not be in the original data set. We refer to the special case where all selected points are in the original data set as a coresubset.

Some algorithms return the m points with weights, so that importance can be attributed to each point in the coreset. The weights, wi for i=1,…,m, are often chosen from the simplex. In this case, they are non-negative and sum to 1: wi>0 ∀i and ∑iwi=1.

Please see the documentation for some in-depth examples.

Example Applications

Choosing Pixels From An Image

In the example below, we reduce the original 180×215 pixel image (38,700 pixels in total) to a coreset approximately 20% of this size. (Left) original image.

(Centre) 8,000 coreset points chosen using Stein kernel herding, with point size a function of weight. (Right) 8,000 points chosen randomly. Run examples/david_map_reduce_weighted.py to replicate.

Setup

Before installing coreax, make sure JAX is installed. Be sure to install the preferred version of JAX for your system.

Install JAX noting that there are (currently) different setup paths for CPU and GPU use:

$ python3 -m pip install jax

For more information click here.

Tamil S

Tamil has a great interest in the fields of Cyber Security, OSINT, and CTF projects. Currently, he is deeply involved in researching and publishing various security tools with Kali Linux Tutorials, which is quite fascinating.

Recent Posts

MSI Analyzer – Analyzing Windows Installer Files For Vulnerabilities

This Python script for Linux can analyze Microsoft Windows *.msi Installer files and point out…

17 hours ago

BEAR-C2 : Simulated Command And Control Framework For APT Attack Research

Bear C2 is a compilation of C2 scripts, payloads, and stagers used in simulated attacks…

17 hours ago

Bearer – A Quick Guide To Scanning And Securing Your Application

Discover your application security risks and vulnerabilities in only a few minutes. In this guide…

17 hours ago

Waymore – A Comprehensive URL Retrieval And Archival Tool For Advanced Reconnaissance

The idea behind waymore is to find even more links from the Wayback Machine than…

18 hours ago

Pycript – A Versatile Burp Suite Extension For Encryption And Decryption

The Pycript extension for Burp Suite is a valuable tool for penetration testing and security…

18 hours ago

DependencyTrack 4.10.0 – Release Overview And Security Hashes

For official releases, refer to Dependency Track Docs >> Changelogs for information about improvements and…

3 days ago