Index Ai Academy
Glossary · Phase 7 · Software engineering

Monkeypatch

A pytest tool that swaps out a function or setting for one test and puts it back afterward.

Try it now

Step through. The question is never are they identical; it is whether the gap is small enough to ignore.

Learn it properly

Testing numeric and random code · Close enough for floats, seeds and what they fix, properties that hold for any input, a gradient check and overfit-one-batch. About 40 minutes.

Keep learning

More in plain English.

1286 terms in the glossary, each with the lesson that teaches it.

1286 terms

The glossary

Every word you'll meet in AI and machine learning, explained in everyday language.

Phase 7 · lesson 40 min

Testing numeric and random code

Close enough for floats, seeds and what they fix, properties that hold for any input, a gradient check and overfit-one-batch.

Never trained an AI? Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account. Teach it to write