Imported from https://github.com/kiryor/nnPUlearning