Skip to content

Instantly share code, notes, and snippets.

View arun-y's full-sized avatar
🎯
Focusing

Arun Yadav arun-y

🎯
Focusing
View GitHub Profile
@arun-y
arun-y / Material.txt
Last active January 13, 2019 06:42
sample
source_id,
source_region,
source,
region,
env,
subenv,
plantdesc,
matnr,
txtlg,
ivend,
### Keybase proof
I hereby claim:
* I am arun-y on github.
* I am aruny (https://keybase.io/aruny) on keybase.
* I have a public key ASChRBExiQ36zP0_ao9RPy5MvK3gzVerq-FGU0oWMvy97Ao
To claim this, I am signing this object:
@arun-y
arun-y / gist:4be89e4d2c1c12e8e1400bed7edfbf20
Last active March 4, 2018 16:35
Generating Spark Dataset<Row> from json string
ArrayNode rootNode = (ArrayNode)objectMapper.readTree(input);
ObjectNode rootObject = (ObjectNode)rootNode.get(0);
ArrayList<StructField> stfList = new ArrayList<>();
ArrayList<String> values = new ArrayList<>();
rootObject.fields().forEachRemaining(e -> {
stfList.add(new StructField(e.getKey(), DataTypes.StringType, false, Metadata.empty()));
values.add(e.getValue().asText());
});
StructType st = new StructType(stfList.toArray(new StructField[] {}));
@arun-y
arun-y / numpy dot product vs loop based dot product.ipynb
Last active November 3, 2017 03:36
A jupyter notebook to show how numpy dot product is faster compare to for loop based dot product. Taken from Andrew Ng deeplearning course
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arun-y
arun-y / gist:bbeaf7b121328d71f6ffba90bd074866
Created March 19, 2017 02:31
mountain_car_sarsa_function_approximation
import gym
import numpy as np
from gym import wrappers
import random
from utils.TileCoding import *
import matplotlib.pyplot as plt
env = gym.make('MountainCar-v0')
env.max_episode_steps = 10000
env.seed(0)
softmax temprature
max pooling
dropout
stocastic gradient descent
@arun-y
arun-y / DrQL.g
Created December 6, 2012 06:32 — forked from camuel/DrQL.g
DrQL grammar
/**
* Copyright 2010, BigDataCraft.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software