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.

Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

Install Magento 2 on Ubuntu 18.04 with Composer and Nginx

Magento is an enterprise-class, open-source e-commerce platform written in PHP. It is built for merchants who…

28 minutes ago

Install WildFly on Ubuntu 18.04: Java App Server Setup Guide

Install WildFly on Ubuntu 18.04: Java App Server Setup GuideWildFly (formerly JBoss) is an open-source,…

38 minutes ago

Install OpenCart on Ubuntu 18.04 with Nginx and PHP 7.2

OpenCart is a free, open-source PHP e-commerce platform used by hundreds of thousands of merchants worldwide.…

41 minutes ago

Install Drupal on Ubuntu 18.04 with Composer, Nginx, and PHP

Drupal is one of the most widely used open-source CMS platforms in the world. Written in…

1 day ago

Set Up an FTP Server on Ubuntu 18.04 with vsftpd and SSL

FTP (File Transfer Protocol) is a standard network protocol for transferring files between a local client…

1 day ago

Create Python Virtual Environments on Ubuntu 18.04: venv Guide

A Python virtual environment is a self-contained directory that holds an isolated Python installation and its own…

1 day ago