Browse Source

update ood main code

tags/v1.6.0
i-robot wuxiaoyu (F) 3 years ago
parent
commit
35fec3e3c4
2 changed files with 9 additions and 2 deletions
  1. +8
    -2
      mindarmour/reliability/__init__.py
  2. +1
    -0
      mindarmour/reliability/concept_drift/concept_drift_check_images.py

+ 8
- 2
mindarmour/reliability/__init__.py View File

@@ -12,9 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Reliability methods of MindArmour
Reliability methods of MindArmour.
"""

from .model_fault_injection.fault_injection import FaultInjector
from .concept_drift.concept_drift_check_time_series import ConceptDriftCheckTimeSeries
from .concept_drift.concept_drift_check_images import OodDetector
from .concept_drift.concept_drift_check_images import OodDetectorFeatureCluster

__all__ = ['FaultInjector']
__all__ = ['FaultInjector',
'ConceptDriftCheckTimeSeries',
'OodDetector',
'OodDetectorFeatureCluster']

+ 1
- 0
mindarmour/reliability/concept_drift/concept_drift_check_images.py View File

@@ -178,6 +178,7 @@ class OodDetectorFeatureCluster(OodDetector):
def ood_predict(self, threshold, ds_test):
"""
The out-of-distribution detection.

Args:
threshold (float): the threshold to judge ood data. One can set value by experience
or use function get_optimal_threshold.


Loading…
Cancel
Save