Skip to content

Instantly share code, notes, and snippets.

@kenwebb
Last active January 8, 2018 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenwebb/8e0a3d816c4eb20142f5151d935a8cba to your computer and use it in GitHub Desktop.
Save kenwebb/8e0a3d816c4eb20142f5151d935a8cba to your computer and use it in GitHub Desktop.
deeplearn.js
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Mon Jan 08 2018 08:11:54 GMT-0500 (EST)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: deeplearn.js
Description:
Url: http://www.primordion.com/Xholon/gwt/
InternalName: 8e0a3d816c4eb20142f5151d935a8cba
Keywords:
My Notes
--------
January 5, 2018
deeplearn.js is "a hardware-accelerated machine intelligence library for the web"
It's a Javascript library written in typescript
use XholonDeeplearn.html
http://127.0.0.1:8888/XholonDeeplearn.html?app=deeplearn.js&src=lstr&gui=clsc
http://127.0.0.1:8888/XholonDeeplearn.html?app=8e0a3d816c4eb20142f5151d935a8cba&src=gist&gui=clsc
References
----------
(1) https://deeplearnjs.org/#getting-started
(2) http://www.typescriptlang.org/index.html
(3) https://github.com/PAIR-code/deeplearnjs
I downloaded the source code
(4) https://deeplearnjs.org/demos/playground/index.html
plyground
(5) https://research.googleblog.com/2016/01/teach-yourself-deep-learning-with.html
To help make deep learning even more accessible to engineers and data scientists at large,
we are launching a new Deep Learning Course developed in collaboration with Udacity.
This short, intensive course provides you with all the basic tools and vocabulary to get started with deep learning,
and walks you through how to use it to address some of the most common machine learning problems.
It is also accompanied by interactive TensorFlow notebooks that directly mirror and implement the concepts introduced in the lectures.
(6) https://www.tensorflow.org/
An open-source software library for Machine Intelligence
a Python library
TensorFlow™ is an open source software library for numerical computation using data flow graphs.
Nodes in the graph represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) communicated between them.
The flexible architecture allows you to deploy computation to one or more CPUs or GPUs in a desktop, server, or mobile device with a single API.
TensorFlow was originally developed by researchers and engineers working on the Google Brain Team within Google's Machine Intelligence research organization
for the purposes of conducting machine learning and deep neural networks research,
but the system is general enough to be applicable in a wide variety of other domains as well.
(7) https://github.com/tensorflow/tensorflow
(8) https://www.udacity.com/course/deep-learning--ud730
) https://www.udacity.com/course/machine-learning-engineer-nanodegree--nd009
(9) https://www.robinwieruch.de/neural-networks-deeplearnjs-javascript/
) https://github.com/javascript-machine-learning/organization-overview
) https://bri.im/
Learn Machine Learning. But in JavaScript.
BRIIM is a movement to enable JavaScript enthusiasts and web developers in machine learning. Learn about artificial intelligence and data science,
two fields which are governed by machine learning, in JavaScript. Take it right to your browser with WebGL.
) https://www.robinwieruch.de/machine-learning-javascript-web-developers/
(10) http://ocdevel.com/podcasts/machine-learning
Machine Learning Guide, podcasts with printed notes
(11) http://www.learningmachines101.com/
Learning Machines 101: A Gentle Introduction to Artificial Intelligence and Machine Learning
]]></Notes>
<_-.XholonClass>
<!-- domain objects -->
<PhysicalSystem/>
<Block/>
<Brick/>
<!-- quantities -->
<Height superClass="Quantity"/>
</_-.XholonClass>
<xholonClassDetails>
<Block>
<port name="height" connector="Height"/>
</Block>
</xholonClassDetails>
<PhysicalSystem>
<Block>
<Height>0.1 m</Height>
</Block>
<Brick multiplicity="2"/>
</PhysicalSystem>
<Blockbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode.parent();
},
act: function() {
// example from source [1]
// DOES NOT WORK in Xholon; DOES WORK in devtools
// var $wnd=window;
var dplrn = $wnd.dl;
$wnd.console.log(dplrn);
var math = dplrn.ENV.math;
$wnd.console.log(dplrn.Array1D);
$wnd.console.log(dplrn.Array1D.new);
var arr = [1,2,3];
$wnd.console.log(arr instanceof Array);
var a = dplrn.Array1D.new(arr); // '1'
var b = dplrn.Scalar.new(2);
var result = math.add(a, b);
// Option 1: With a Promise.
result.data().then(data => $wnd.console.log(data)); // Float32Array([3, 4, 5])
// Option 2: Synchronous download of data. This is simpler, but blocks the UI.
$wnd.console.log(result.dataSync());
//# sourceURL=Deeplearn01.js
}
}
]]></Blockbehavior>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Block</title>
<rect id="PhysicalSystem/Block" fill="#98FB98" height="50" width="50" x="25" y="0"/>
<g>
<title>Height</title>
<rect id="PhysicalSystem/Block/Height" fill="#6AB06A" height="50" width="10" x="80" y="0"/>
</g>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment