-
Notifications
You must be signed in to change notification settings - Fork 0
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
pep8 #2
Comments
Here are a couple thoughts:
|
Don't all of the objective functions get us down to a float?! Agree on the Duck typing --> care less about how it looks (assert isinstance), and more about how it works/quacks (multiply works?). I like deriv/deriv2 --> a lot of time we aren't actually doing the full hessian anyways, and are dropping the non-PD terms. |
Yeah, sorry. There is another internal size step that does matter, and that is the size of the mapped m (in the more general case, What do you envision re: duck typing: Ah, ok sure, that works |
The I think you raise a good point that the mappings should be in the base objective function (they aren't currently). And that the objective should also have a shape that gives it a sense of how the internals work - which would be the shape of the mapping - or by default I see the |
I guess it depends how you define shape... I tend to think of 👍 on moving mappings (or a mapping type object) to the base, I agree that it belongs there and that we should bring mappings more in line with scipy linear operators. Okay, I like the suggestion of |
Yeah, got shape wrong above: (1, nP). In summary of things we agree on (I think!): obj.shape == (1, nP)
obj.mapping.shape == (nC, nP)
obj.weights.size == nC # setting would override `weights_matrix = sdiag(weights)`
obj.weights_matrix.shape == (nW, nC) # usually square? not if it is a gradient etc So in the function space: size vs n_parametersMy hangup on size is from numpy's definitions. In numpy
https://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.size.html#numpy.ndarray.size I guess I also don't like the number of characters in weightsIs it confusing if you can set either |
Agreed upon things👍 on the agreed upon things :). The sizeWith respect to weightsIn the With respect to the weights, I think the implementation will remain simpler if we have both the |
Just a minor note: Weights: is there any time that there are off diagonals that would need to be serialized? |
nP
-->size
?deriv
/2 --> gradient? hessian? Not sure on thisThe text was updated successfully, but these errors were encountered: