Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Image classification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cavallo Alberto
Image classification
Commits
93656919
Commit
93656919
authored
1 year ago
by
MSI\alber
Browse files
Options
Downloads
Patches
Plain Diff
Final commit
parent
bd6c3a2d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
read_cifar.py
+3
-3
3 additions, 3 deletions
read_cifar.py
results/mlp.png
+0
-0
0 additions, 0 deletions
results/mlp.png
with
3 additions
and
3 deletions
read_cifar.py
+
3
−
3
View file @
93656919
...
...
@@ -6,9 +6,9 @@ from sklearn.model_selection import train_test_split
def
read_cifar_batch
(
batch
):
with
open
(
batch
,
'
rb
'
)
as
file
:
dict
=
pickle
.
load
(
file
,
encoding
=
'
bytes
'
)
batch_data
=
dict
[
b
'
data
'
]
batch_labels
=
dict
[
b
'
labels
'
]
dict
ionary
=
pickle
.
load
(
file
,
encoding
=
'
bytes
'
)
batch_data
=
dict
ionary
[
b
'
data
'
]
batch_labels
=
dict
ionary
[
b
'
labels
'
]
return
batch_data
,
batch_labels
...
...
This diff is collapsed.
Click to expand it.
results/mlp.png
0 → 100644
+
0
−
0
View file @
93656919
29.3 KiB
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment