Browse Source

modify annotation of fuzzer

tags/v1.5.0-rc1
ZhidanLiu 3 years ago
parent
commit
81c50a13bf
3 changed files with 5 additions and 9 deletions
  1. +0
    -5
      mindarmour/fuzz_testing/fuzzing.py
  2. +1
    -1
      requirements.txt
  3. +4
    -3
      setup.py

+ 0
- 5
mindarmour/fuzz_testing/fuzzing.py View File

@@ -102,9 +102,6 @@ class Fuzzer:


Args: Args:
target_model (Model): Target fuzz model. target_model (Model): Target fuzz model.
train_dataset (numpy.ndarray): Training dataset used for determining the neurons' output boundaries.
neuron_num (int): The number of testing neurons.
segmented_num (int): The number of segmented sections of neurons' output intervals. Default: 1000.


Examples: Examples:
>>> net = Net() >>> net = Net()
@@ -195,9 +192,7 @@ class Fuzzer:


Raises: Raises:
ValueError, coverage must be subclass of CoverageMetrics. ValueError, coverage must be subclass of CoverageMetrics.

ValueError, if initial seeds is empty. ValueError, if initial seeds is empty.

ValueError, if element of seed is not two in initial seeds. ValueError, if element of seed is not two in initial seeds.
""" """
# Check parameters. # Check parameters.


+ 1
- 1
requirements.txt View File

@@ -1,7 +1,7 @@
numpy >= 1.17.0 numpy >= 1.17.0
scipy >= 1.5.2 scipy >= 1.5.2
matplotlib >= 3.2.1 matplotlib >= 3.2.1
Pillow >= 2.0.0
pillow >= 6.2.0
pytest >= 4.3.1 pytest >= 4.3.1
wheel >= 0.32.0 wheel >= 0.32.0
setuptools >= 40.8.0 setuptools >= 40.8.0


+ 4
- 3
setup.py View File

@@ -21,7 +21,7 @@ from setuptools import setup
from setuptools.command.egg_info import egg_info from setuptools.command.egg_info import egg_info
from setuptools.command.build_py import build_py from setuptools.command.build_py import build_py


version = '1.3.0'
version = '1.4.0'
cur_dir = os.path.dirname(os.path.realpath(__file__)) cur_dir = os.path.dirname(os.path.realpath(__file__))
pkg_dir = os.path.join(cur_dir, 'build') pkg_dir = os.path.join(cur_dir, 'build')


@@ -129,8 +129,9 @@ setup(
'scipy >= 1.5.2', 'scipy >= 1.5.2',
'numpy >= 1.17.0', 'numpy >= 1.17.0',
'matplotlib >= 3.2.1', 'matplotlib >= 3.2.1',
'Pillow >= 2.0.0',
'scikit-learn >= 0.23.1'
'pillow >= 6.2.0',
'scikit-learn >= 0.23.1',
'easydict >= 1.9',
], ],
classifiers=[ classifiers=[
'License :: OSI Approved :: Apache Software License' 'License :: OSI Approved :: Apache Software License'


Loading…
Cancel
Save