Skip to content
Compress data help for big data & unbalanced data classification
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
compress.py
requirements.txt
setup.py

README.md

Compress

The extreme value is obtained at the interval endpoint for convex function, and therefore the endpoint degree of a sample is measured by making the unstable cuts of all attributes according to the basic property.

Build Status

Prerequisites

  • numpy

More details for requirements file.

Installation

>>> git clone https://github.com/Zeroto521/compress.git
>>> cd compress
>>> python setup.py install

Examples

>>> from compress import Compression
>>> model = Compression(data, labels)  # Guess you have `data` which the shape is `(n, m)` and one column `labels` which the shape is `(n, 1)`.
>>> model.fit()  # Then use `fit()` function to fit model with data
>>> data_new = model.compress(data, labels, k=0)  # Then let use the `compress` to compress the data. `k` is the threshold to compress data
>>> data_new  # just show it

More details for examples folder and compress.py source code.

License

MIT License. @Zeroto521

Reference

You can’t perform that action at this time.