ó
    6êbi3  ã                   óT   • S r SSKrSSKrSSKrSSKJr  SSKJr  \" S5      S 5       r	g)zFashion-MNIST dataset.é    N)Úget_file)Úkeras_exportz&keras.datasets.fashion_mnist.load_datac            	      óF  • [         R                  R                  SS5      n Sn/ SQn/ nU H  nUR                  [	        XAU-   U S95        M!     [
        R                  " US   S5       n[        R                  " UR                  5       [        R                  SS	9nS
S
S
5        [
        R                  " US   S5       n[        R                  " UR                  5       [        R                  SS	9R                  [        W5      SS5      nS
S
S
5        [
        R                  " US   S5       n[        R                  " UR                  5       [        R                  SS	9n	S
S
S
5        [
        R                  " US   S5       n[        R                  " UR                  5       [        R                  SS	9R                  [        W	5      SS5      n
S
S
S
5        WW4W
W	44$ ! , (       d  f       GNJ= f! , (       d  f       Nì= f! , (       d  f       N¨= f! , (       d  f       NJ= f)aÂ  Loads the Fashion-MNIST dataset.

This is a dataset of 60,000 28x28 grayscale images of 10 fashion categories,
along with a test set of 10,000 images. This dataset can be used as
a drop-in replacement for MNIST.

The classes are:

| Label | Description |
|:-----:|-------------|
|   0   | T-shirt/top |
|   1   | Trouser     |
|   2   | Pullover    |
|   3   | Dress       |
|   4   | Coat        |
|   5   | Sandal      |
|   6   | Shirt       |
|   7   | Sneaker     |
|   8   | Bag         |
|   9   | Ankle boot  |

Returns:
  Tuple of NumPy arrays: `(x_train, y_train), (x_test, y_test)`.

**x_train**: uint8 NumPy array of grayscale image data with shapes
  `(60000, 28, 28)`, containing the training data.

**y_train**: uint8 NumPy array of labels (integers in range 0-9)
  with shape `(60000,)` for the training data.

**x_test**: uint8 NumPy array of grayscale image data with shapes
  (10000, 28, 28), containing the test data.

**y_test**: uint8 NumPy array of labels (integers in range 0-9)
  with shape `(10000,)` for the test data.

Example:

```python
(x_train, y_train), (x_test, y_test) = fashion_mnist.load_data()
assert x_train.shape == (60000, 28, 28)
assert x_test.shape == (10000, 28, 28)
assert y_train.shape == (60000,)
assert y_test.shape == (10000,)
```

License:
  The copyright for Fashion-MNIST is held by Zalando SE.
  Fashion-MNIST is licensed under the [MIT license](
  https://github.com/zalandoresearch/fashion-mnist/blob/master/LICENSE).

Údatasetszfashion-mnistz<https://storage.googleapis.com/tensorflow/tf-keras-datasets/)ztrain-labels-idx1-ubyte.gzztrain-images-idx3-ubyte.gzzt10k-labels-idx1-ubyte.gzzt10k-images-idx3-ubyte.gz)ÚoriginÚcache_subdirr   Úrbé   )ÚoffsetNé   é   é   é   é   )ÚosÚpathÚjoinÚappendr   ÚgzipÚopenÚnpÚ
frombufferÚreadÚuint8ÚreshapeÚlen)ÚdirnameÚbaseÚfilesÚpathsÚfnameÚlbpathÚy_trainÚimgpathÚx_trainÚy_testÚx_tests              Ú]/home/james-whalen/.local/lib/python3.13/site-packages/tf_keras/src/datasets/fashion_mnist.pyÚ	load_datar)      s  € ôl g‰gl‰l˜: Ó7€GØI€Dò€Eð €EÛˆØ‰”X˜e°5©LÀwÑOÖPñ ô 
Š5˜‘8˜TÔ	" fÜ—-’- §¡£¬r¯x©xÀÑBˆ÷ 
#ô 
Š5˜‘8˜TÔ	" gÜ—-’- §¡£´·±ÀÑD×LÑLÜ‹L˜"˜bó
ˆ÷ 
#ô
 
Š5˜‘8˜TÔ	" fÜ—’˜vŸ{™{›}¬b¯h©h¸qÑAˆ÷ 
#ô 
Š5˜‘8˜TÔ	" gÜ—’˜wŸ|™|›~¬r¯x©xÀÑC×KÑKÜ‹K˜˜Ró
ˆ÷ 
#ð
 WÐ ¨Ð/Ð/Ð/÷! 
#Ö	"ú÷ 
#Õ	"ú÷
 
#Õ	"ú÷ 
#Õ	"ús2   Á(3GÂ=AG0Ä,3HÆAHÇ
G-Ç0
G>È
HÈ
H )
Ú__doc__r   r   Únumpyr   Útf_keras.src.utils.data_utilsr   Ú tensorflow.python.util.tf_exportr   r)   © ó    r(   Ú<module>r0      s7   ðñ ã Û 	ã å 2õ :ñ Ð6Ó7ñR0ó 8ñR0r/   