-
-
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
Defining Group size programmatically #289
Comments
After some investigating, probably caused by my ignorance of Julia's syntax, I understood that the form 4Mean() is a shorthand for the multiplication symbol as in 4 * Mean(). While using the Group constructor outside the call was the reason the data were passed to all stats multiple times. So, the solution is:
It might be worth considering to add an example of this construction method in the docs of Group |
I actually thought I had removed the I will, however, add an example of passing a collection to |
If you are planning to remove this method. The example that led me to this use was in the docs Details of Updating (fit!). This might not be the right place to ask a question but I think it's related. My final goal was to compute N separate Means after vectorizing a circularbuffer Matrix, and update the means after a certain number of steps of the Circular buffer. Hower this doesn't seem to work either:
In this example the Means() end up taking 50 inputs each instead of 1 |
Ah, thanks for the pointer to that example. I would expect the |
I am using the Group option to calculate the mean for each column of a Matrix. However, the number of columns in said Matrix is variable. I can't find a way to prepare the Group so that the Mean () is correctly calculated separately unless I can hardcode the column size. In the example below, the hardcoded Group g1 works correctly, while the Group g2, built from a collection, clumps all the data together.
Subquestion: Eventually, I would like to be able to calculate the means over a 3d tensor over the 3rd dimension. I'd be grateful If someone can help with that, too
The text was updated successfully, but these errors were encountered: