Skip to content
Snippets Groups Projects
Commit 9081643b authored by Hammouda Elbez's avatar Hammouda Elbez :computer:
Browse files

Code improved

parent 86d2a272
No related branches found
No related tags found
No related merge requests found
...@@ -78,11 +78,15 @@ class spark(sparkOp): ...@@ -78,11 +78,15 @@ class spark(sparkOp):
try: try:
data = next(col, None) data = next(col, None)
self.g.Accuracy = data["Acc"] self.g.Accuracy = data["Acc"]
self.g.finalLabels = data["NLabel"]
except Exception as e: except Exception as e:
self.g.Accuracy = "--" self.g.Accuracy = "--"
print("No accuracy recorded") print("No accuracy recorded")
pass
try:
self.g.finalLabels = data["NLabel"]
except Exception as e:
print("No output neuron classes recorded")
self.g.finalLabels = None self.g.finalLabels = None
pass pass
......
...@@ -67,4 +67,4 @@ class spark(sparkOp): ...@@ -67,4 +67,4 @@ class spark(sparkOp):
except Exception as e: except Exception as e:
print("Error:" + str(e)) print("Error:" + str(e))
traceback.print_exc() traceback.print_exc()
pass pass
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment