Feature/1868

Feature implementation for https://github.com/shogun-toolbox/shogun/issues/1868