724535172c099bb841a10914462d2a600d13ab24,tests/test_classify.py,TestClassify,test_svm,#TestClassify#,44
Before Change
def test_svm(self):
y, match_index = generate.simulate_features()
train_df_matches = y.ix[match_index].sample(500)
train_df_nonmatches = y.ix[y.index - match_index].sample(1500)
train_df = train_df_matches.append(train_df_nonmatches)
After Change
def test_svm(self):
train_df_matches = self.y.ix[self.match_index].sample(500)
train_df_nonmatches = self.y.ix[self.y.index.difference(self.match_index)].sample(1500)
train_df = train_df_matches.append(train_df_nonmatches)
svm = recordlinkage.SVMClassifier()
svm.learn(train_df.round(), train_df_matches.index)
svm.predict(self.y.round())
def test_em(self):
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 11
Instances
Project Name: J535D165/recordlinkage
Commit Name: 724535172c099bb841a10914462d2a600d13ab24
Time: 2016-10-05
Author: jonathandebruinhome@gmail.com
File Name: tests/test_classify.py
Class Name: TestClassify
Method Name: test_svm
Project Name: J535D165/recordlinkage
Commit Name: 724535172c099bb841a10914462d2a600d13ab24
Time: 2016-10-05
Author: jonathandebruinhome@gmail.com
File Name: tests/test_classify.py
Class Name: TestClassify
Method Name: test_em
Project Name: J535D165/recordlinkage
Commit Name: 724535172c099bb841a10914462d2a600d13ab24
Time: 2016-10-05
Author: jonathandebruinhome@gmail.com
File Name: tests/test_classify.py
Class Name: TestClassify
Method Name: test_logistic
Project Name: J535D165/recordlinkage
Commit Name: 724535172c099bb841a10914462d2a600d13ab24
Time: 2016-10-05
Author: jonathandebruinhome@gmail.com
File Name: tests/test_classify.py
Class Name: TestClassify
Method Name: test_bernoulli_naive_bayes
Project Name: J535D165/recordlinkage
Commit Name: 724535172c099bb841a10914462d2a600d13ab24
Time: 2016-10-05
Author: jonathandebruinhome@gmail.com
File Name: tests/test_classify.py
Class Name: TestClassify
Method Name: test_kmeans
Project Name: J535D165/recordlinkage
Commit Name: 724535172c099bb841a10914462d2a600d13ab24
Time: 2016-10-05
Author: jonathandebruinhome@gmail.com
File Name: tests/test_classify.py
Class Name: TestClassify
Method Name: test_svm