Skip to content

Commit

Permalink
Update Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromxavier committed Apr 6, 2022
1 parent faab183 commit 1c7f830
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/src/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ test_x = Array{Bool}[test_x[:, :, i] .>= 0.25 for i = 1:10_000]
train!(wnn, train_y, train_x)
s = count(classify(wnn, test_x) .== test_y)
s = count(classify(wnn, test_x; bleach=12) .== test_y)
println("Accuracy: $(100. * s / 10_000)%")
```

### Mental Images
```@example mnist
using Images
Expand All @@ -57,6 +58,8 @@ RGB.([img[(i - 1) * 28 + j] for i = 1:28, j = 1:28])
```

## Fashion MNIST

### Traning & Testing
```@example fashion-mnist
using WiSARD
using MLDatasets
Expand All @@ -79,11 +82,12 @@ test_x = Array{Bool}[test_x[:, :, i] .>= 0.25 for i = 1:10_000]
train!(wnn, train_y, train_x)
s = count(classify(wnn, test_x) .== test_y)
s = count(classify(wnn, test_x; bleach=12) .== test_y)
println("Accuracy: $(100. * s / 10_000)%")
```

### Mental Images
```@example fashion-mnist
using Images
Expand Down

0 comments on commit 1c7f830

Please sign in to comment.