-
Notifications
You must be signed in to change notification settings - Fork 64
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
[DAPHNE-#529] WIP: translator for dml to daphneDSL #576
base: main
Are you sure you want to change the base?
Conversation
- So far, user-defined functions in DaphneDSL could return either no values or exactly one value. - However, there are situations when it is convenient to return multiple values from a UDF. - These values may even have different data types (e.g., scalar and matrix), such that wrapping them into a matrix or frame is not a general solution. - This commit introduces support for DaphneDSL UDFs with multiple return values. - Adapted the DaphneDSL grammar and parser accordingly. - Added script-level test cases. - Updated the DaphneDSL language reference (documentation).
- This commit is just an intermediate development state, it will be split into several meaningful commits before it is merged into main. - Manual translation of decision trees and random forests scripts from Apache SystemDS's DML to DAPHNE's DaphneDSL. - More useful error messages. - Several small things.
…nto 529-dml2daph Allow multiple return values for functions.
- Consistently use space (not mixed space and tab) for indentation. - Removed trailing whitespaces.
- Added license header. - Fixed various small issues. - Fixed/harmonized formatting and wording in comments and error messages. - Fixed wording in identifiers (e.g., "if_body" to "then_body", "data type" to "value type"). - Simplified the code at some points. - Harmonized indentation of generated DaphneDSL code. - And several more minor things.
- There might be other tools in the future.
Thanks for this contribution and your pioneering efforts back then for a (semi-)automatic translation of SystemDS's DML scripts to DAPHNE's DaphneDSL scripts, @aski02! This As we've discussed back then, the code looks very good, overall. Nevertheless, before we can merge it in, some tidy-up is required. I've already tidied up the main I will continue handling this PR and address the required points to merge it in. Required changes before we can merge it:
Hints on using the
|
Hi @pdamme, I apologize for not having completed this. If there are any tasks I can assist with to help resolve the issues, I'll be glad to do it! |
Dear @aski02, no worries! You did a very good job on this task last year. I just didn't find the time to finalize this PR so far, but I'll take care of that now, no additional work is required from your side. After the merge, we will continue developing the |
WIP: Script for translating scripts from systemds' dml to daphneDSL.
Tests can be run via "python3 test_shortestPath.py" or "python3 test_sigmoid.py"
Translator itself can be run via "python3 dml2daph.py dml_file" (replace <dml_file> with path to .dml script)