Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Scale quantile via DAAL #644

Closed
wants to merge 4 commits into from

Conversation

PokhodenkoSA
Copy link
Contributor

@PokhodenkoSA PokhodenkoSA commented Feb 26, 2020

This PR is for discussion. It shows how to pass NumPy array to C++ module.
Also it shows that using ctypes functions is more convenient than ll.add_symbol() like in #631 b/c function could be run in Python too.
Numba/Numpy:
image

DAAL:
image

@pep8speaks
Copy link

Hello @PokhodenkoSA! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 59:1: E402 module level import not at top of file

@Alexander-Makaryev
Copy link
Contributor

sdc/_daal.cpp Outdated
using namespace daal::algorithms;
using namespace daal::data_management;

quantiles::Batch<> algorithm;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should specify the data type of algorithm as a template parameter and provide data with the same type. Default type is used now but it is not clear what this type is. If you will provide the double data to the float algorithm then time will be spent on converting and copying.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants