Skip to content

Instantly share code, notes, and snippets.

View jkotra's full-sized avatar
🎯
Focusing

Jagadeesh Kotra jkotra

🎯
Focusing
View GitHub Profile
@jkotra
jkotra / justdial.py
Last active July 16, 2018 06:13
Scrap from Justdial (JD)
from bs4 import BeautifulSoup
import csv
import requests
###################################
# Jagadeesh Kotra #
# hello@jagadeesh.me #
###################################
scrap = []
@jkotra
jkotra / mockvita-2-inversion.py
Created July 25, 2018 15:58
mockvita-2-inversion
from numpy import base_repr
def sum_of_digits(array):
digit_sum = []
for i in range(len(array)):
x = [int(x) for x in str(array[i])]
digit_sum.append(sum(x))
return digit_sum
@jkotra
jkotra / preprocessing.py
Created August 29, 2018 17:19
taxi-preprocessing
train = train[train['fare_amount'] > 0]
train = train[train['pickup_longitude'] < -72]
train = train[(train['pickup_latitude'] > 40) & (train['pickup_latitude'] < 44)]
train = train[train['dropoff_longitude'] < -72]
train = train[(train['dropoff_latitude'] > 40) & (train['dropoff_latitude'] < 44)]
train = train[(train['passenger_count'] > 0) & (train['passenger_count'] < 10)]
#---#
@jkotra
jkotra / dnn.py
Created August 29, 2018 17:25
taxi-dnn
from keras.models import Sequential, Model
from keras.layers import Dense, Dropout, Activation
from keras import optimizers
from keras import regularizers
model = Sequential()
model.add(Dense(128, activation='relu', input_dim=len(features)))
model.add(Dense(64))
model.add(Dense(1))
@jkotra
jkotra / xgb.py
Created August 29, 2018 17:30
taxi-xgb
parms = {'max_depth': 8,'learning_rate':0.07, 'eta': 0.03, 'subsample': 1, 'colsample_bytree': 0.8, 'objective': 'reg:linear', 'eval_metric': 'rmse', 'silent': 0}
reg = xgb.XGBRegressor(parms=parms,n_jobs=6)
reg = xgb.train(parms, dtrain, num_boost_round=500)
@jkotra
jkotra / FlowerClassification.ipynb
Created September 8, 2018 02:50
Flower Recognition/Classification with Keras - jagadeeshkotra
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkotra
jkotra / logonet.md
Created October 21, 2018 15:12
logonet desc

LogoNet

Logonet is a convolutional neural network model to detect brand logo in the given input image.

it can detect the following brand logo's: (updated - 21/10/2018)

['ups','dhl','fedex','aldi','cocacola','mcdonalds']

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkotra
jkotra / LSTM.ipynb
Created February 25, 2019 13:24
LSTM
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.