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

Adding Epoch field in Info schema

parent 22b50bdc
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,12 @@ class spark(sparkOp): ...@@ -36,6 +36,12 @@ class spark(sparkOp):
LN = data["L:N"] LN = data["L:N"]
LN = loads(dumps(LN)) LN = loads(dumps(LN))
self.g.Layer_Neuron = LN self.g.Layer_Neuron = LN
try:
self.g.InputPerEpoch = data["E"]
except Exception:
self.g.InputPerEpoch = pymongo.collection.Collection(self.g.db, 'labels').count_documents({})
pass
for l in LN: for l in LN:
if(l == "Input"): if(l == "Input"):
self.g.Input = LN[l] self.g.Input = LN[l]
...@@ -68,7 +74,6 @@ class spark(sparkOp): ...@@ -68,7 +74,6 @@ class spark(sparkOp):
self.g.labelsExistance = True self.g.labelsExistance = True
M = max(M, pymongo.collection.Collection( M = max(M, pymongo.collection.Collection(
self.g.db, 'labels').find_one(sort=[("T", -1)])["T"]) self.g.db, 'labels').find_one(sort=[("T", -1)])["T"])
self.g.InputPerEpoch = pymongo.collection.Collection(self.g.db, 'labels').count_documents({})
else: else:
print("No labels") print("No labels")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment