Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Testing Stochastic AI Models with Hypothesis

PyCon US via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk introduces property-based testing and demonstrates using the Hypothesis library to generate plausible edge cases for stochastic AI models. It covers properties, custom strategies, repeatable random testing, and shrinking.

Syllabus

Intro
About me
Table of Content
Example-based testing- example
Example-based testing - issues
Example-based testing - merge_sort
Property: Commutativity
Property: Invariant functions
Property: The test oracle
Property-based testing
What are the properties in the example?
Metamorphic Testing
Metamorphic Relations
Hypothesis Library
Hypothesis basic strategies
merge_sort test
Define you own strategy
Transforming data functions
Debug hypothesis strategies
Repeatable random testing
Shrinking
Additional Components
Rotate the image

Taught by

PyCon US

Reviews

Start your review of Testing Stochastic AI Models with Hypothesis

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.