Skip to content

Instantly share code, notes, and snippets.

Rajiv Shah rajshah4

Block or report user

Report or block rajshah4

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rajshah4
rajshah4 / Quickdraw_to_MNISTformat.ipynb
Created Jul 14, 2017
Quickdraw npy files to MNIST test/train dataset with visualization
View Quickdraw_to_MNISTformat.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View acrobot.py
"""classic Acrobot task"""
##Updated by Rajiv Shah to get the pendulum to balance for an extended time
from gym import core, spaces
from gym.utils import seeding
import numpy as np
from numpy import sin, cos, pi
import time
__copyright__ = "Copyright 2013, RLPy http://acl.mit.edu/RLPy"
__credits__ = ["Alborz Geramifard", "Robert H. Klein", "Christoph Dann",
View App.js
import 'babel-polyfill';
import React, {Component} from 'react';
import {render} from 'react-dom';
import DeckGL from 'deck.gl/react';
import {LineLayer} from 'deck.gl';
import {ArcLayer} from 'deck.gl';
import MapGL from 'react-map-gl';
const token = 'Add yours here';
View RNN_Simple_Addition_Public.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajshah4
rajshah4 / ggplot.nba.halfcourt
Last active Jan 10, 2016
This code, forked from Ed Küpfer, creates a shot chart. Building from the work of Asteves, this code rotates the court 90 degrees.
View ggplot.nba.halfcourt
#Forked from Ed Küpfer and Asteves
#https://gist.github.com/edkupfer
#https://gist.github.com/asteves/7266330
#Updated to rotate half court 90 degrees
#Generate Data for the 3 point line
# Define the circle; add a point at the center if the 'pie slice' if the shape is to be filled
circleFun <- function(center=c(0,5.25), diameter=20.9, npoints=20000, start=0, end=1, filled=TRUE){
tt <- seq(start*pi, end*pi, length.out=npoints)
You can’t perform that action at this time.