Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a C++/Python interface #7

Closed
BerndDoser opened this issue Oct 31, 2018 · 0 comments
Closed

Provide a C++/Python interface #7

BerndDoser opened this issue Oct 31, 2018 · 0 comments
Assignees
Labels
discussion Open discussion enhancement New feature or request
Milestone

Comments

@BerndDoser
Copy link
Member

Since the usage of PINK via command line is very limited, we will provide a C++/Python interface to call PINK functions directly within Python. For the implementation the framework PyBind11 will be used, which should be able to provide a seamless integration to the new generic, template-based C++ code of PINK (#6). The data exchange between C++ and Python will be over numpy arrays.

Please find an experimental implementation at https://github.com/HITS-AIN/PINK/blob/redesign/src/PythonBinding/pink.cpp and an example of using for the SOM training at https://github.com/HITS-AIN/PINK/blob/redesign/scripts/train.py.

At the moment the interface is using a 2-dimensional cartesian SOM and data layout on the CPU. The missing step is now to add the other static types and to insert an abstraction to use them in a dynamic way.

@BerndDoser BerndDoser added enhancement New feature or request discussion Open discussion labels Oct 31, 2018
@BerndDoser BerndDoser added this to the 2.0 milestone Oct 31, 2018
@BerndDoser BerndDoser self-assigned this Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Open discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant