Skip to content

Commit

Permalink
continuing work on cleaning up package without TF and Weka
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Marx authored and Charlie Marx committed Feb 9, 2018
1 parent 436e5a0 commit e0002d7
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 1,004 deletions.
146 changes: 0 additions & 146 deletions BlackBoxAuditing/model_factories/AbstractWekaModelFactory.py

This file was deleted.

6 changes: 3 additions & 3 deletions BlackBoxAuditing/model_factories/DecisionTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ def test_simple_data():
resp_index = headers.index(response)

intended_predictions = [(test_row[resp_index], train_row[resp_index]) for train_row, test_row in zip(train_set_copy,test_set)]
incorr = (predictions[-9:] != intended_predictions[-9:])
corr = (predictions[:-9] == intended_predictions[:-9])
print("handling simple data correctly? -- ", (corr and incorr) == True)
last_few_preds = all(pred[0] == pred[1] for pred in predictions[-9:])
all_but_last_few = all(pred[0] == pred[1] for pred in predictions[:-9])
print("handling simple data correctly? -- ", (all_but_last_few and not last_few_preds) == True)

if __name__=='__main__':
test()
Expand Down
42 changes: 0 additions & 42 deletions BlackBoxAuditing/model_factories/J48_ModelFactory.py

This file was deleted.

6 changes: 3 additions & 3 deletions BlackBoxAuditing/model_factories/NeuralNetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ def test_simple_data():
resp_index = headers.index(response)

intended_predictions = [(test_row[resp_index], train_row[resp_index]) for train_row, test_row in zip(train_set_copy,test_set)]
incorr = (predictions[-9:] != intended_predictions[-9:])
corr = (predictions[:-11] == intended_predictions[:-11])
print("handling simple data correctly? -- ", (corr and incorr) == True)
last_few_preds = all(pred[0] == pred[1] for pred in predictions[-9:])
all_but_last_few = all(pred[0] == pred[1] for pred in predictions[:-9])
print("handling simple data correctly? -- ", (all_but_last_few and not last_few_preds) == True)

if __name__=='__main__':
test()
Expand Down
Loading

0 comments on commit e0002d7

Please sign in to comment.