From e87c40c36d137b52c971123d834f07cb0e63122e Mon Sep 17 00:00:00 2001
From: BaptisteBrd <75663738+BaptisteBrd@users.noreply.github.com>
Date: Wed, 8 Nov 2023 18:35:31 +0100
Subject: [PATCH] data matrix

---
 .DS_Store      | Bin 6148 -> 6148 bytes
 data/.DS_Store | Bin 8196 -> 8196 bytes
 read_cifar.py  |   8 +++++++-
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.DS_Store b/.DS_Store
index 4305ca77381950af43c9f5d48fae2595196ec988..6160403d676f334cf7e0047e9b692bda6d040212 100644
GIT binary patch
delta 14
VcmZoMXffFEj){?R^Lr*yQ2;2>1la%p

delta 14
VcmZoMXffFEj){?B^Lr*yQ2;2*1lRxo

diff --git a/data/.DS_Store b/data/.DS_Store
index 76a6d19d8ab85d1ec1c472a0aa9c8c85ca347e08..80a8e910f59c17a87a47fa732d0861782a640cfe 100644
GIT binary patch
delta 18
ZcmZp1XmQw}CCJD)Sx#JQbEx2YJ^(al1wH@(

delta 18
ZcmZp1XmQw}CCJDySx#JQbEx2YJ^(ab1w8-&

diff --git a/read_cifar.py b/read_cifar.py
index b9cd354..9684ce6 100644
--- a/read_cifar.py
+++ b/read_cifar.py
@@ -1,8 +1,14 @@
+import numpy
+import pickle
 def unpickle(file):
-    import pickle
     with open(file, 'rb') as fo:
         dict = pickle.load(fo, encoding='bytes')
     return dict
 
+dict1= unpickle("data/cifar-10-batches-py/data_batch_1")
+
+data = [dict1[key] for key in dict1]
+
+print(len(data[1]))
 
 #def read_cifar_batch(path) :
-- 
GitLab