File: README.md
Deep playground
Deep playground is an interactive visualization of neural networks, written in
TypeScript using d3.js. We use GitHub issues for tracking new requests and bugs.
Your feedback is highly appreciated!
If you'd like to contribute, be sure to review the contribution guidelines.
Development
To run the visualization locally, run:
npm ito install dependenciesnpm run buildto compile the app and place it in thedist/directorynpm run serveto serve from thedist/directory and open a page on your browser.
For a fast edit-refresh cycle when developing run npm run serve-watch.
This will start an http server and automatically re-compile the TypeScript,
HTML and CSS files whenever they change.
For owners
To push to production: git subtree push --prefix dist origin gh-pages.
This is not an official Google product.
File: CONTRIBUTING.md
Want to contribute? Great! First, read this page (including the small print at the end).
Before you contribute
Before we can use your code, you must sign the
[Google Individual Contributor License Agreement]
(https://cla.developers.google.com/about/google-individual)
(CLA), which you can do online. The CLA is necessary mainly because you own the
copyright to your changes, even after your contribution becomes part of our
codebase, so we need your permission to use and distribute your code. We also
need to be sure of various other thingsβfor instance that you'll tell us if you
know that your code infringes on other people's patents. You don't have to sign
the CLA until after you've submitted your code for review and a member has
approved it, but you must do it before we can put your code into our codebase.
Before you start working on a larger contribution, you should get in touch with
us first through the issue tracker with your idea so that we can help out and
possibly guide you. Coordinating up front makes it much easier to avoid
frustration later on.
Code reviews
All submissions, including submissions by project members, require review. We
use Github pull requests for this purpose.
The small print
Contributions made by corporations are covered by a different agreement than
the one above, the
[Software Grant and Corporate Contributor License Agreement]
(https://cla.developers.google.com/about/google-corporate).
File: package.json
{
"name": "deep-playground-prototype",
"version": "2016.3.10",
"description": "",
"private": true,
"scripts": {
"clean": "rimraf dist",
"start": "npm run serve-watch",
"prep": "copyfiles analytics.js dist && concat node_modules/material-design-lite/material.min.js node_modules/seedrandom/seedrandom.min.js > dist/lib.js",
"build-css": "concat node_modules/material-design-lite/material.min.css styles.css > dist/bundle.css",
"watch-css": "concat node_modules/material-design-lite/material.min.css styles.css -o dist/bundle.css",
"build-html": "copyfiles index.html dist",
"watch-html": "concat index.html -o dist/index.html",
"build-js": "browserify src/playground.ts -p [tsify] | uglifyjs -c > dist/bundle.js",
"watch-js": "watchify src/playground.ts -p [tsify] -v --debug -o dist/bundle.js",
"build": "npm run prep && npm run build-js && npm run build-css && npm run build-html",
"watch": "npm run prep && concurrently "npm run watch-js" "npm run watch-css" "npm run watch-html"",
"serve": "npx serve dist/",
"serve-watch": "concurrently "npx serve dist/" "npm run watch""
},
"devDependencies": {
"@types/d3": "^3.5.34",
"concat": "^1.0.3",
"concurrently": "3.1.0",
"copyfiles": "1.0.0",
"rimraf": "2.5.4",
"serve": "^11.3.0",
"tsify": "^4.0.0",
"typescript": "^2.9",
"uglify-js": "^2.8.29",
"watchify": "^4.0.0"
},
"dependencies": {
"d3": "^3.5.16",
"material-design-lite": "^1.3.0",
"seedrandom": "^2.4.3"
}
}
File: tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"removeComments": true,
"preserveConstEnums": true
},
"exclude": [
"node_modules"
]
}
File: tslint.json
{
"rules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"max-line-length": [true, 80],
"indent": [
true,
"spaces"
],
"no-duplicate-variable": true,
"no-eval": true,
"no-internal-module": true,
"no-trailing-whitespace": true,
"no-var-keyword": true,
"no-unused-variable": true,
"no-unused-expression": true,
"no-switch-case-fall-through": true,
"no-unreachable": true,
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
"forin": false,
"quotemark": [
true,
"double"
],
"semicolon": [
true,
"always"
],
"triple-equals": false,
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [
true,
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
}