-
Notifications
You must be signed in to change notification settings - Fork 2
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
Tutorial / walkthrough please #4
Comments
Thanks for the comment, work on this is in progress! In the meanwhile, you can find some rudimentary examples documentation-and-tutorials section of the readme. |
Just wanted to say I'm learning a lot reading through the implementation of easytensor. And slowly going crazy... :P |
Ha-ha, sorry :) |
Documentation of functions / datatypes is not the problem for me. What I need is one or two simple examples for each project of how it's intended to be used. |
One thing I'm unclear on is why you would ever use For instance, in this snippet, the data frame will have 7 vertices; why specify that it's statically unknown but at least 3? Why not 0, or 7? |
@joelburget yes, I understand that. I will add the tutorial as soon as finish writing my thesis (likely in September , sorry for that) @Rotaerk In general, importCsv :: FilePath -> IO (Either String (DataFrame Vertex '[XN 1])) The function above reads a non-empty data frame or fails. We cannot index DataFrame using |
Well, I was going to write up something about having issues with getting XFrame matching to work, but it turns out it was resolved by adding more type annotations to unrelated functions in my code... However, the type errors were rather troublesome to make sense of, and I only accidentally got it working. In the commit Rotaerk/vulkanTest@033701b, I wanted to move the XFrame matching outside of the Problems I encountered while working on this change:
|
Looks like I messed up with instances of In general, whenever you encounter case xdf of
XFrame df
| E <- inferPrim df -> do
... -- df has an instance of PrimBytes here Most commonly required inference functions are given by As for the second problem, cannot really say right now, without trying it myself. |
These libraries (
dimensions
/easytensor
) look useful and interesting. Unfortunately it's not clear how to get started. Some examples / tutorial would be much appreciated!The text was updated successfully, but these errors were encountered: