mirror of
https://github.com/house-of-vanity/fesmoo_perdoliq.git
synced 2025-07-07 14:04:06 +00:00
Accuracy now works
This commit is contained in:
5
main.py
5
main.py
@ -203,8 +203,11 @@ class Main:
|
||||
logging.info("Send correct answer for %s. It's %s" % (q_number,
|
||||
answers))
|
||||
|
||||
def resolve(self, subj, test):
|
||||
def resolve(self, subj, test, accuracy):
|
||||
q_count = self.start_test(subj, test)
|
||||
# applying accuracy here
|
||||
# spoil_count = q_count - q_count * (accuracy / 100)
|
||||
q_count = int(q_count * (int(accuracy) / 100))
|
||||
for i in range(1, q_count + 1):
|
||||
prediction = self.predict(i)
|
||||
self.answer(i, prediction)
|
Reference in New Issue
Block a user