-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unit tests for uniform distribution and triangular distribution #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mahausmani some test cases are incorrect. Resubmit with the correct one.
@@ -12,39 +12,70 @@ | |||
# See the License for the specific language governing permissions and | |||
# limitations under the License. | |||
|
|||
# limitations under the License. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not required
tests/crvs_test.py
Outdated
assert uniform_cdf.cdf_x(0) <= 1 | ||
assert uniform_cdf.cdf_x(0) >= 0 | ||
assert uniform_cdf.cdf_x(15) == 1 | ||
assert uniform_cdf.cdf_x(-11) == -jnp.inf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong test case
assert uniform_cdf.cdf_x(-11) == 0.0
tests/crvs_test.py
Outdated
assert uniform_cdf.cdf_x(5) <= 1 | ||
assert uniform_cdf.cdf_x(5) >= 0 | ||
assert uniform_cdf.cdf_x(15) == 1 | ||
assert uniform_cdf.cdf_x(-1) == -jnp.inf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong test case
assert uniform_cdf.cdf_x(-1) == 0.0
tests/crvs_test.py
Outdated
assert uniform_cdf.cdf_x(-5) <= 1 | ||
assert uniform_cdf.cdf_x(-5) >= 0 | ||
assert uniform_cdf.cdf_x(1) == 1 | ||
assert uniform_cdf.cdf_x(-20) == -jnp.inf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong test case
tests for uniform distribution added.