-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. re-arrange optimizer module, fix bugs in `Adam` 2. add mint dataset 3. re-arrange util module 4. create more tests
- Loading branch information
Showing
56 changed files
with
1,330 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
|
||
js/ | ||
|
||
test.html | ||
test/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* 2000 gray images of size 28 * 28 in [0.0, 1.0] | ||
* 0.0 - background, 1.0 - number | ||
*/ | ||
|
||
import { mnist_xs } from 'dataset/mnist_raw2000.js'; | ||
export { mnist_xs as xs, mnist_ys as ys } from 'dataset/mnist_raw2000.js'; | ||
|
||
const size = 2000; | ||
const dlength = mnist_xs.length / size; | ||
function xs2vectors() { | ||
let l = []; | ||
for (let i = 0; i < mnist_xs.length; i += dlength) { | ||
let arr = new Float32Array(dlength); | ||
for (let j = 0; j < dlength; j++) { | ||
arr[j] = mnist_xs[i+j]; | ||
} | ||
l.push(arr); | ||
} | ||
return l; | ||
} | ||
|
||
export { xs2vectors }; |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.