Skip to content

Checking for monotonicity through derivatives #701

Answered by MilesCranmer
gm89uk asked this question in Q&A
Discussion options

You must be logged in to vote

Hey sorry for the late reply! I was off on vacation last week.

Awesome to hear your experience is going well, that makes me very happy to hear 🙂

So the issue here is that eval_grad_tree_array gives you the whole gradient, and thus only takes 3 arguments. The other function is eval_diff_tree_array (sorry for the weird naming) which only differentiates with respect to a single feature – that function is where you provide it with a 4th argument (as you have done) giving the feature index.

These API calls are documented here – https://symbolicml.org/DynamicExpressions.jl/dev/eval/#Derivatives. (Note that you can pass options instead of the operators::OperatorEnum which is just the lower-level…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gm89uk
Comment options

You must be logged in to vote
1 reply
@MilesCranmer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants