-
Notifications
You must be signed in to change notification settings - Fork 98
/
stoppingCriteria.py
32 lines (26 loc) · 1.1 KB
/
stoppingCriteria.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""Stopping Criteria class"""
"""
Copyright (c) 2016-2020, EPFL/Blue Brain Project
This file is part of BluePyOpt <https://github.com/BlueBrain/BluePyOpt>
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License version 3.0 as published
by the Free Software Foundation.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""
class StoppingCriteria(object):
"""Stopping Criteria class"""
def __init__(self):
"""Constructor"""
self.criteria_met = False
pass
def check(self, kwargs):
"""Check if the stopping criteria is met"""
pass
def reset(self):
self.criteria_met = False