- Visit aptbps-code for training and graphing code
- Python 3.x
- scikit-learn
- numpy
- tqdm
- KDEpy
- scipy
$ pip3 install git+https://github.com/rdimaio/aptbps
Or, if you prefer, you can install it from source:
# Clone the repository
$ git clone https://github.com/rdimaio/aptbps
# Go into the aptbps folder
$ cd aptbps
# Install aptbps
$ python setup.py install
import aptbps
from bps import bps
# x is a batch of point clouds in the shape [n_clouds, n_points, n_dims]
# Original bps implementation
x_bps = aptbps.encode(x, bps_cel)
# 2-partition triangle-gkde aptbps encoding
x_aptbps = aptbps.adaptive_encode(x, n_parts=2, bps_cell_type='dists')
# 8-partition comp-fftkde aptbps encoding
x_aptbps_fftkde = aptbps.adaptive_encode(x, n_parts=8, kde='fft', partitioning='comp', bps_cell_type='dists')
Pull requests are welcome! If you would like to include/remove/change a major feature, please open an issue first.
This project is licensed under the MIT License - see the LICENSE file for details.