Browse Source

update ood code docs

tags/v1.6.0
i-robot wuxiaoyu (F) 3 years ago
parent
commit
c70259a461
2 changed files with 10 additions and 2 deletions
  1. +8
    -2
      mindarmour/reliability/__init__.py
  2. +2
    -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']

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

@@ -72,6 +72,7 @@ class 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.
@@ -178,6 +179,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