Skip to content

Instantly share code, notes, and snippets.

@codingneo
codingneo / rl-env.md
Last active October 28, 2017 02:17
Information about Building Simulation Environment for Reinforcement Learning
@codingneo
codingneo / model-factory.md
Created August 27, 2017 09:17
Enterprise Model Factory

Enterprise Model Factory

@codingneo
codingneo / pg-pong.py
Created January 27, 2017 09:09 — forked from karpathy/pg-pong.py
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """
import numpy as np
import cPickle as pickle
import gym
# hyperparameters
H = 200 # number of hidden layer neurons
batch_size = 10 # every how many episodes to do a param update?
learning_rate = 1e-4
gamma = 0.99 # discount factor for reward
@codingneo
codingneo / smart-energy.md
Last active March 16, 2019 18:51
Smart Energy Using Machine Learning

Smart Energy Using Machine Learning

Applications

Solar (PV)

  • Solar Forecast
  • Prediction of customers who will buy solar (reduce sale cost)
  • Insurance/Finance for buying solar

Non-intrusive Load Monitoring (NILM)

@codingneo
codingneo / nexus-5-android-7.0.md
Created September 21, 2016 13:45
Refresh AOSP Android 7.0 Custom ROM on Nexus 5

aaa

@codingneo
codingneo / tensorflow-distributed-experiment.md
Last active March 25, 2017 22:42
Experiment with Distributed Tensorflow

ps server

import tensorflow as tf

cluster = tf.train.ClusterSpec({"ps": ['localhost:2222'], "worker": ['localhost:2224','localhost:2225']})
server = tf.train.Server(cluster.as_cluster_def(), job_name='ps', task_index=0)

server.join()
@codingneo
codingneo / digits.md
Created May 1, 2016 02:32 — forked from joyofdata/digits.md
Installing CUDA, cuDNN, caffe and DIGITS on EC2
@codingneo
codingneo / tensorflow-gpu-ec2.md
Last active April 23, 2016 16:14
Setup Tensorflow GPU Instance on AWS EC2
  1. Launch the g2.2xlarge instance, select a security group with SSH rule
  2. ssh to the instance
ssh -i [pem file] ubuntu@[Public DNS of the instance]
  1. Update the locale
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales
@codingneo
codingneo / ppcl.md
Last active January 17, 2016 15:31
Privacy Preserving Collaborative Learning
@codingneo
codingneo / iALM.md
Last active January 5, 2016 15:19
Asset Liability Management (ALM) For Personal Finance