Skip to content

Commit

Permalink
another minor test update
Browse files Browse the repository at this point in the history
  • Loading branch information
LMBooth committed Oct 24, 2023
1 parent 2ce481d commit 129a51c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Tests/test_Pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_run_bci():
bci.TrainMode()
accuracy_achieved = False
marker_received = False
accuracy=0
accuracy=None
while True:
currentMarkers = bci.ReceivedMarkerCount() # check to see how many received epochs, if markers sent to close together will be ignored till done processing
time.sleep(0.5) # wait for marker updates
Expand All @@ -71,7 +71,7 @@ def test_run_bci():
if min([currentMarkers[key][1] for key in currentMarkers]) > bci.minimumEpochsRequired:
classInfo = bci.CurrentClassifierInfo() # hangs if called too early
accuracy = classInfo["accuracy"]###
if accuracy > 0:
if accuracy >= 0:
# set to above 0 to show some accuracy was retruend from model
accuracy_achieved = True
bci.StopThreads()
Expand Down
4 changes: 2 additions & 2 deletions Tests/test_Simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def test_run_bci():
bci.TrainMode()
accuracy_achieved = False
marker_received = False
accuracy=0
accuracy=None
while True:
currentMarkers = bci.ReceivedMarkerCount() # check to see how many received epochs, if markers sent to close together will be ignored till done processing
time.sleep(0.5) # wait for marker updates
Expand All @@ -20,7 +20,7 @@ def test_run_bci():
if min([currentMarkers[key][1] for key in currentMarkers]) > bci.minimumEpochsRequired:
classInfo = bci.CurrentClassifierInfo() # hangs if called too early
accuracy = classInfo["accuracy"]###
if accuracy > 0:
if accuracy >= 0:
# set to above 0 to show some accuracy was retruend from model
accuracy_achieved = True
bci.StopThreads()
Expand Down
4 changes: 2 additions & 2 deletions Tests/test_Sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_run_bci():
bci.TrainMode()
accuracy_achieved = False
marker_received = False
accuracy=0
accuracy=None
while True:
currentMarkers = bci.ReceivedMarkerCount() # check to see how many received epochs, if markers sent to close together will be ignored till done processing
time.sleep(0.5) # wait for marker updates
Expand All @@ -22,7 +22,7 @@ def test_run_bci():
if min([currentMarkers[key][1] for key in currentMarkers]) > bci.minimumEpochsRequired:
classInfo = bci.CurrentClassifierInfo() # hangs if called too early
accuracy = classInfo["accuracy"]###
if accuracy > 0:
if accuracy >= 0:
# set to above 0 to show some accuracy was retruend from model
accuracy_achieved = True
bci.StopThreads()
Expand Down
4 changes: 2 additions & 2 deletions Tests/test_Tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_run_bci():
bci.TrainMode()
accuracy_achieved = False
marker_received = False
accuracy=0
accuracy=None
while True:
currentMarkers = bci.ReceivedMarkerCount() # check to see how many received epochs, if markers sent to close together will be ignored till done processing
time.sleep(0.5) # wait for marker updates
Expand All @@ -37,7 +37,7 @@ def test_run_bci():
if min([currentMarkers[key][1] for key in currentMarkers]) > bci.minimumEpochsRequired:
classInfo = bci.CurrentClassifierInfo() # hangs if called too early
accuracy = classInfo["accuracy"]###
if accuracy > 0:
if accuracy >= 0:
# set to above 0 to show some accuracy was retruend from model
accuracy_achieved = True
bci.StopThreads()
Expand Down

0 comments on commit 129a51c

Please sign in to comment.