Skip to content

Instantly share code, notes, and snippets.

View faizankshaikh's full-sized avatar

jalFaizy faizankshaikh

View GitHub Profile
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
Loan_ID,Gender,Married,Dependents,Education,Self_Employed,ApplicantIncome,CoapplicantIncome,LoanAmount,Loan_Amount_Term,Credit_History,Property_Area,Loan_Status
LP001002,Male,No,0,Graduate,No,5849,0,,360,1,Urban,Y
LP001003,Male,Yes,1,Graduate,No,4583,1508,128,360,1,Rural,N
LP001005,Male,Yes,0,Graduate,Yes,3000,0,66,360,1,Urban,Y
LP001006,Male,Yes,0,Not Graduate,No,2583,2358,120,360,1,Urban,Y
LP001008,Male,No,0,Graduate,No,6000,0,141,360,1,Urban,Y
LP001011,Male,Yes,2,Graduate,Yes,5417,4196,267,360,1,Urban,Y
LP001013,Male,Yes,0,Not Graduate,No,2333,1516,95,360,1,Urban,Y
LP001014,Male,Yes,3+,Graduate,No,3036,2504,158,360,0,Semiurban,N
LP001018,Male,Yes,2,Graduate,No,4006,1526,168,360,1,Urban,Y
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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@faizankshaikh
faizankshaikh / tensorflow_vs_pytorch.ipynb
Created April 30, 2020 16:39
tensorflow_vs_pytorch.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@faizankshaikh
faizankshaikh / pytorch_vs_tensorflow_v2.ipynb
Created May 1, 2020 23:30
PyTorch_vs_TensorFlow_v2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@faizankshaikh
faizankshaikh / check_code_present
Last active May 3, 2020 15:44
Case study on preferred tools in ICLR 2020
code_present
string = e3y.__str__()
print("Start simplification\n")
print(string, " # Original string")
string = re.sub(r"0\*\w", r"0", string)
print(string, " # simplify 0*A -> 0")
string = re.sub(r"\w\*0", r"0", string)
print(string, " # simplify A*0 -> 0")
string = re.sub(r"1\*(\w)", r"\1", string)
print(string, " # simplify 1*A -> A ")
import json
file_name = r"3. Pytorch from Scratch (Part I).ipynb" # enter your own filename
with open(file_name, 'r') as f:
lines = f.readlines()
ipynb = json.loads("".join(lines))
code_cells = [cell['source'] for cell in ipynb['cells'] if cell['cell_type'] == 'code']