Docs updates (#198)

Reorganize NN docs + a few other tidbits.
This commit is contained in:
Awni Hannun
2023-12-17 13:20:55 -08:00
committed by GitHub
parent 90d04072b7
commit ee0c2835c5
9 changed files with 160 additions and 74 deletions

View File

@@ -61,7 +61,10 @@ set:
def eval_fn(model, X, y):
return mx.mean(mx.argmax(model(X), axis=1) == y)
Next, setup the problem parameters and load the data:
Next, setup the problem parameters and load the data. To load the data, you need our
`mnist data loader
<https://github.com/ml-explore/mlx-examples/blob/main/mnist/mnist.py>`_, which
we will import as `mnist`.
.. code-block:: python