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
6d920fd0
Commit
6d920fd0
authored
1 year ago
by
MSI\alber
Browse files
Options
Downloads
Patches
Plain Diff
Final commit
parent
93656919
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+10
-1
10 additions, 1 deletion
README.md
with
10 additions
and
1 deletion
README.md
+
10
−
1
View file @
6d920fd0
...
@@ -22,7 +22,7 @@ The two models are tested on the image database CIFAR-10 which consists of 60 00
...
@@ -22,7 +22,7 @@ The two models are tested on the image database CIFAR-10 which consists of 60 00
- `read_cifar(path)`: takes the path of the directory containing the six batches and returns a matrix `data` and a vector `labels`.
- `read_cifar(path)`: takes the path of the directory containing the six batches and returns a matrix `data` and a vector `labels`.
- `split_dataset(data, labels, split_factor)`: randomly splits the dataset into a training set and a test set with a specified split factor.
- `split_dataset(data, labels, split_factor)`: randomly splits the dataset into a training set and a test set with a specified split factor.
m
### K-Nearest Neighbors
### K-Nearest Neighbors
3.
The Python file named
`knn.py`
is composed of:
3.
The Python file named
`knn.py`
is composed of:
...
@@ -55,9 +55,18 @@ The two models are tested on the image database CIFAR-10 which consists of 60 00
...
@@ -55,9 +55,18 @@ The two models are tested on the image database CIFAR-10 which consists of 60 00
5.
In the
`results`
folder there are three plot images:
5.
In the
`results`
folder there are three plot images:
-
`knn.png`
: refers to the knn algorithm, it represents the plot of the accuracy evolution along increasing value of 'k' (from 1 to 20)
-
`knn.png`
: refers to the knn algorithm, it represents the plot of the accuracy evolution along increasing value of 'k' (from 1 to 20)
<div
style=
"text-align:center;"
>
<img
src=
"results/knn.png"
alt=
"knn"
width=
"300"
height=
"200"
>
</div>
-
`mlp.png`
: refers to the MLP neural network, it represents the plot of the training accuracies evolution along 100 epochs
-
`mlp.png`
: refers to the MLP neural network, it represents the plot of the training accuracies evolution along 100 epochs
-
`loss.png`
: refers to the MLP neural network, it represents the plot of the loss evolution along 100 epochs (further proof that the network works)
-
`loss.png`
: refers to the MLP neural network, it represents the plot of the loss evolution along 100 epochs (further proof that the network works)
<div
style=
"text-align:center;"
>
<img
src=
"results/mlp.png"
alt=
"mlp"
width=
"300"
height=
"200"
>
<img
src=
"results/loss.png"
alt=
"loss"
width=
"300"
height=
"200"
>
</div>
## Usage
## Usage
1.
Clone the repository.
1.
Clone the repository.
...
...
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