This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
from sklearn.metrics import roc_auc_score | |
######################################################################################### | |
NN_E=np.load('/home/alfard/Documents/Kaggle/Facebook-Robot/NN_E.npz') | |
NN_E=NN_E['arr_0'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
from sklearn import ensemble, feature_extraction, preprocessing | |
A=pd.read_pickle(('/home/alfard/Documents/Kaggle/Facebook-Robot/A.pk')) | |
#A = A.join(train[['outcome']], on='bidder_id') | |
A.shape | |
B=pd.read_pickle(('/home/alfard/Documents/Kaggle/Facebook-Robot/B.pk')) | |
#B=train[['bidder_id','outcome']] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
from sklearn import ensemble, feature_extraction, preprocessing | |
A=pd.read_pickle(('/home/alfard/Documents/Kaggle/Facebook-Robot/A.pk')) | |
#A = A.join(train[['outcome']], on='bidder_id') | |
A.shape | |
B=pd.read_pickle(('/home/alfard/Documents/Kaggle/Facebook-Robot/B.pk')) | |
#B=train[['bidder_id','outcome']] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import random | |
class Node: | |
def __init__(self,t,L,R,D,S,V,M,X): | |
self.t=t | |
self.L=L | |
self.R=R | |
self.D=D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import csv | |
import random | |
####TRAIN###################################################################### | |
a=[] | |
f = open('/home/alfard/Documents/Kaggle/Loan/train20000.csv',"rb") | |
#f = open('/home/ubuntu/train_v2.csv',"rb") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import datetime | |
import numpy as np | |
from ggplot import * | |
import pandas as pd | |
##################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import tweepy | |
import csv | |
#Code provenant de https://apps.twitter.com | |
consumer_key = '...........................' | |
consumer_secret = '...........................' | |
access_token = '...........................' | |
access_token_secret = '...........................' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import csv | |
import random | |
a=[] | |
######################################################################### | |
#f = open('/home/alfard/Documents/Kaggle/Facebook2/TrainClean.csv',"rb") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import csv | |
import random | |
###########RECUPERATION DES RESULTATS############################################ | |
#np.savez('/home/alfard/Documents/Kaggle/Facebook2/result.npz',RESULT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stopwords=[' a ', | |
' about ', | |
' above ', | |
' above ', | |
' across ', | |
' after ', | |
' afterwards ', | |
' again ', | |
' against ', | |
' all ', |
NewerOlder