New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Weka implementations. #95

Merged
merged 11 commits into from Jul 29, 2017

Updating class name and adding a destructor.

  • Loading branch information...
Iron-Stark committed Jul 23, 2017
commit 8cee8cdbbb9411783d64a865f16bc61f48116f88
@@ -34,7 +34,7 @@
'''
This class implements the Decision Stump Classifier benchmark.
'''
class DTC(object):
class DECISIONSTUMP(object):
'''
Create the Decision Stump Classifier benchmark instance.
@@ -50,6 +50,13 @@ def __init__(self, dataset, timeout=0, path=os.environ["JAVAPATH"],
self.path = path
self.timeout = timeout

This comment has been minimized.

@zoq

zoq Jul 23, 2017

Member

I think we should add a destructor here to clean up, e.g. remove the weka_predicted.csv file.

@zoq

zoq Jul 23, 2017

Member

I think we should add a destructor here to clean up, e.g. remove the weka_predicted.csv file.

def __del__(self):
Log.Info("Clean up.", self.verbose)
filelist = ["weka_predicted.csv"]
for f in filelist:
if os.path.isfile(f):
os.remove(f)
'''
Decision Stump Classifier. If the method has been successfully completed return
the elapsed time in seconds.
ProTip! Use n and p to navigate between commits in a pull request.