> For the complete documentation index, see [llms.txt](https://isubasinghe.gitbook.io/isithas-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://isubasinghe.gitbook.io/isithas-wiki/computer_science/ai.md).

# ai

## Basic idea

Construction of agents that perceive and act to maximise some objective. Modern AI is dominated by gradient-based learning on differentiable models.

## Key formulas

* Bayes: $P(h|d) = P(d|h)P(h)/P(d)$
* Expected utility: $\mathbb{E}\[U] = \sum\_a P(a) U(a)$
* Solomonoff prior: $M(x) = \sum\_{p : U(p)=x\*} 2^{-|p|}$
