Class VerifierBenchmark
Benchmarking class to test error rates of a Verifier
Inheritance
Implements
Namespace: SigStat.Common
Assembly: SigStat.Common.dll
Syntax
public class VerifierBenchmark : object, ILoggerObject
Constructors
| Improve this Doc View SourceVerifierBenchmark()
Initializes a new instance of the VerifierBenchmark class. Sets the Sampler to the default FirstNSampler.
Declaration
public VerifierBenchmark()
Fields
| Improve this Doc View SourceSignerModels
An optional dictionary of fully or partially precalculated signer models. You may fill itt before executing a benchmark if you have saved the models previously
Declaration
public List<ISignerModel> SignerModels
Field Value
Type | Description |
---|---|
List<ISignerModel> |
Properties
| Improve this Doc View SourceLoader
The loader that will provide the database for benchmarking
Declaration
public IDataSetLoader Loader { get; set; }
Property Value
Type | Description |
---|---|
IDataSetLoader |
Logger
Gets or sets the attached
Declaration
public ILogger Logger { get; set; }
Property Value
Type | Description |
---|---|
ILogger |
Parameters
A key value store that can be used to store custom information about the benchmark
Declaration
public List<KeyValuePair<string, string>> Parameters { get; set; }
Property Value
Type | Description |
---|---|
List<KeyValuePair<System.String, System.String>> |
Progress
Declaration
public int Progress { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Sampler
The Sampler to be used for benchmarking
Declaration
public Sampler Sampler { get; set; }
Property Value
Type | Description |
---|---|
Sampler |
Verifier
Gets or sets the Verifier to be benchmarked.
Declaration
public Verifier Verifier { get; set; }
Property Value
Type | Description |
---|---|
Verifier |
Methods
| Improve this Doc View SourceDump(String, IEnumerable<KeyValuePair<String, String>>)
Dumps the results of the benchmark in a file.
Declaration
public void Dump(string filename, IEnumerable<KeyValuePair<string, string>> parameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | The filename. |
IEnumerable<KeyValuePair<System.String, System.String>> | parameters | The custom parameters of the benchmark (to be included in the dump) |
Execute(Boolean)
Execute the benchmarking process.
Declaration
public BenchmarkResults Execute(bool ParallelMode = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ParallelMode |
Returns
Type | Description |
---|---|
BenchmarkResults |
Execute(Int32)
Execute the benchmarking process with a degree of parallelism.
Declaration
public BenchmarkResults Execute(int degreeOfParallelism)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | degreeOfParallelism | Degree of parallelism is the maximum number of concurrently executing tasks. |
Returns
Type | Description |
---|---|
BenchmarkResults |
Events
| Improve this Doc View SourceProgressChanged
Declaration
public event EventHandler<int> ProgressChanged
Event Type
Type | Description |
---|---|
EventHandler<System.Int32> |