The imbalanced regression method DenseWeight produces sample weights for data points in regression tasks so that there is a higher emphasis on ML model performance for rare (and often extreme) data points in comparison to common data points. This repository provides a Python package with which one can easily use DenseWeight.