Comparison with sklearn algorithm