Class Sampler
Takes samples from a set of Signatures by given sampling strategies. Use this to fine-tune the VerifierBenchmark
Inheritance
System.Object
Sampler
Namespace: SigStat.Common
Assembly: SigStat.Common.dll
Syntax
public class Sampler : object
Constructors
| Improve this Doc View SourceSampler(Func<List<Signature>, List<Signature>>, Func<List<Signature>, List<Signature>>, Func<List<Signature>, List<Signature>>)
Initialize a new instance of the Sampler class by given sampling strategies.
Declaration
public Sampler(Func<List<Signature>, List<Signature>> references, Func<List<Signature>, List<Signature>> genuineTests, Func<List<Signature>, List<Signature>> forgeryTests)
Parameters
Type | Name | Description |
---|---|---|
Func<List<Signature>, List<Signature>> | references | Strategy to sample genuine signatures to be used for training. |
Func<List<Signature>, List<Signature>> | genuineTests | Strategy to sample genuine signatures to be used for testing. |
Func<List<Signature>, List<Signature>> | forgeryTests | Strategy to sample forged signatures to be used for testing. |
Properties
| Improve this Doc View SourceForgeryTestFilter
Declaration
public Func<List<Signature>, List<Signature>> ForgeryTestFilter { get; protected set; }
Property Value
Type | Description |
---|---|
Func<List<Signature>, List<Signature>> |
GenuineTestFilter
Declaration
public Func<List<Signature>, List<Signature>> GenuineTestFilter { get; protected set; }
Property Value
Type | Description |
---|---|
Func<List<Signature>, List<Signature>> |
TrainingFilter
Declaration
public Func<List<Signature>, List<Signature>> TrainingFilter { get; protected set; }
Property Value
Type | Description |
---|---|
Func<List<Signature>, List<Signature>> |
Methods
| Improve this Doc View SourceSampleForgeryTests(List<Signature>)
Samples a batch of forged signatures to test on.
Declaration
public List<Signature> SampleForgeryTests(List<Signature> signatures)
Parameters
Type | Name | Description |
---|---|---|
List<Signature> | signatures |
Returns
Type | Description |
---|---|
List<Signature> | Forged signatures to test on. |
SampleGenuineTests(List<Signature>)
Samples a batch of genuine test signatures to test on.
Declaration
public List<Signature> SampleGenuineTests(List<Signature> signatures)
Parameters
Type | Name | Description |
---|---|---|
List<Signature> | signatures |
Returns
Type | Description |
---|---|
List<Signature> | Genuine signatures to test on. |
SampleReferences(List<Signature>)
Samples a batch of genuine reference signatures to train on.
Declaration
public List<Signature> SampleReferences(List<Signature> signatures)
Parameters
Type | Name | Description |
---|---|---|
List<Signature> | signatures |
Returns
Type | Description |
---|---|
List<Signature> | Genuine reference signatures to train on. |