Skip to content

Instantly share code, notes, and snippets.

View gangtao's full-sized avatar
🏠
Working from home

Gang Tao gangtao

🏠
Working from home
View GitHub Profile
@gangtao
gangtao / index.html
Created May 20, 2019 05:44
TensorflowJS Time serials Forcast
<div class="container-fluid" id="main">
<div class="row">
<div class="col-6">
<div id="dataView"></div>
</div>
</div>
<div class="row">
<div id="modelView"></div>
</div>
<div class="row">
@gangtao
gangtao / NeuralLanguageModel.ipynb
Created March 14, 2019 16:51
A Simple Neural Language Model
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gangtao
gangtao / Word embedding sample.ipynb
Last active March 15, 2019 18:50
Sample code to train a embedding layer using tensorflow
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gangtao
gangtao / Word2Vec Gensim.ipynb
Created March 11, 2019 18:23
Gensim embedding sample
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gangtao
gangtao / One Hot Encoding.ipynb
Created March 5, 2019 23:24
One Hot Encoding
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gangtao
gangtao / facets.ipynb
Last active October 5, 2018 00:04
Facet Jupyter Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gangtao
gangtao / 3pointcircle.py
Last active March 2, 2018 00:50
Find the circle cross three points using tensor flow
import tensorflow as tf
import numpy
# Parameters
learning_rate = 0.1
training_epochs = 3000
display_step = 50
# Training Data, 3 points that form a triangel
train_X = numpy.asarray([3.0,6.0,9.0])
@gangtao
gangtao / index.html
Last active September 8, 2017 06:47
ML Explained KNN
<div class="container">
<div class="row">
<div class="col-sm-6">
<div id="chart"></div>
</div>
<div class="col-sm-6">
<div class="row">
<button type="button" class="btn btn-xs" id="new_category_button">New Category Data</button>
<span id="category_info"></span>
<button type="button" class="btn btn-xs" id="classify_button">Predict</button>
@gangtao
gangtao / index.html
Last active September 21, 2017 06:14
ML Explained Naive Bayes
<div class="container">
<div class="row">
<div class="col-sm-6">
<div id="chart"></div>
</div>
<div class="col-sm-6">
<button type="button" class="btn btn-xs" id="new_category_button">New Category Data</button>
<span id="category_info"></span>
<button type="button" class="btn btn-xs" id="clean_button">Clear</button>
<label><input type="checkbox" id="predict_check"> Predict</label>