You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off - Thank you so much for open sourcing Tensorflow lattice! It is great to make use of lattice interpolation to enforce predicate domain knowledge concerning monotonicity and convexity. Looking through the current documentation, I see it is possible to enforce an increasing and concave graph for diminishing returns, but what if I want to enforce an S-curve (i.e. an increasing convex curve with an inflection point that then turns concave)?
The text was updated successfully, but these errors were encountered:
If your inflection point is fixed (i.e. with known input value), then this can be done with the sum of two PWL's. Our PWL layers are flat outside the rage defined by the input keypoints, so you can just split your original input keypoint list at the inflection point and use a different PWL for each part. If there is enough symmetry, you might be able to do this with a single 2 dimensional layer and a couple of negations.
If the inflection point is not fixed, then I think this can still be done with 3 PWL's with some caveats. The generic form might not have a trivial solution.
Yes, I agree if the inflection point is known beforehand, then I can imagine how crafting a combination of 2 PWLs or a single 2D layer would be a good workaround ... I guess it would be nice to add this as one of the examples (to show how combining constrained PWL layers leads to more complex shape definitions)
First off - Thank you so much for open sourcing Tensorflow lattice! It is great to make use of lattice interpolation to enforce predicate domain knowledge concerning monotonicity and convexity. Looking through the current documentation, I see it is possible to enforce an increasing and concave graph for diminishing returns, but what if I want to enforce an S-curve (i.e. an increasing convex curve with an inflection point that then turns concave)?
The text was updated successfully, but these errors were encountered: