Did I find the right examples for you? yes no

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)

src/a/m/amazonaccess-HEAD/BSMan/logistic.py   amazonaccess(Download)
for col in range(len(all_data[0,:])):
    relabler.fit(all_data[:, col])
    all_data[:, col] = relabler.transform(all_data[:, col])
########################## 2nd order features ################################
dp = group_data(all_data, degree=2) 
for col in range(len(dp[0,:])):
    relabler.fit(dp[:, col])
    dp[:, col] = relabler.transform(dp[:, col])
    print uniques
    relabler.fit(dp[:, col])
    dp[:, col] = relabler.transform(dp[:, col])
########################## 3rd order features ################################
dt = group_data(all_data, degree=3)
for col in range(len(dt[0,:])):
    relabler.fit(dt[:, col])
    dt[:, col] = relabler.transform(dt[:, col])
    print uniques
    relabler.fit(dt[:, col])
    dt[:, col] = relabler.transform(dt[:, col])
########################## 1st order features ################################
for col in range(len(all_data[0,:])):

src/a/m/amazonaccess-HEAD/helpers/feature_extraction.py   amazonaccess(Download)
    for j in range(X.shape[1]):
        relabeler.fit(X[:, j])
        X[:, j] = relabeler.transform(X[:, j])
        X_train[:, j] = relabeler.transform(X_train[:, j])
        X_test[:, j] = relabeler.transform(X_test[:, j])

src/g/i/givinggraph-HEAD/givinggraph/companycause/company_cause_svm.py   givinggraph(Download)
	label_enc.fit(list(causes))
	print 'found %d causes' % len(label_enc.classes_)
	Y = [list(label_enc.transform(yi)) for yi in Y]
	print 'labels:', label_enc.classes_
	# LabelBinarizer buggy with np arrays. See https://github.com/scikit-learn/scikit-learn/issues/856

src/g/i/givinggraph-HEAD/givinggraph/analysis/company_cause_classifier.py   givinggraph(Download)
    label_enc.fit(list(causes))
    print 'found %d causes' % len(label_enc.classes_)
    Y = [list(label_enc.transform(yi)) for yi in Y]
    print 'labels:', label_enc.classes_
    # LabelBinarizer buggy with np arrays. See https://github.com/scikit-learn/scikit-learn/issues/856

src/d/a/data-HEAD/Assignments/jmankoff-byte5/ml.py   data(Download)
# now transform the array to have only numeric values instead
# of strings
X = le.transform(X)
 
# Lastly we need to split these into a optimization set