Class Verifier
Uses pipelines to transform, train on, and classify Signature objects.
Inheritance
Implements
Namespace: SigStat.Common.Model
Assembly: SigStat.Common.dll
Syntax
public class Verifier : object, ILoggerObject
Constructors
| Improve this Doc View SourceVerifier()
Initializes a new instance of the Verifier class.
Declaration
public Verifier()
Verifier(ILogger)
Initializes a new instance of the Verifier class
Declaration
public Verifier(ILogger logger = null)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | Initializes the Logger property of the Verifier |
Verifier(Verifier)
Initializes a new instance of the Verifier class based on another Verifier instance
Declaration
public Verifier(Verifier baseVerifier)
Parameters
Type | Name | Description |
---|---|---|
Verifier | baseVerifier | The reference verifier |
Properties
| Improve this Doc View SourceAllFeatures
This property is used by the Serializer to access a list of all FeatureDescriptors
Declaration
public Dictionary<string, FeatureDescriptor> AllFeatures { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, FeatureDescriptor> |
Classifier
Gets or sets the classifier pipeline. Hands over the Logger object.
Declaration
public IClassifier Classifier { get; set; }
Property Value
Type | Description |
---|---|
IClassifier |
Logger
Gets or sets the class responsible for logging
Declaration
public ILogger Logger { get; set; }
Property Value
Type | Description |
---|---|
ILogger |
Pipeline
Gets or sets the transform pipeline. Hands over the Logger object.
Declaration
public SequentialTransformPipeline Pipeline { get; set; }
Property Value
Type | Description |
---|---|
SequentialTransformPipeline |
SignerModel
Gets or sets the signer model.
Declaration
public ISignerModel SignerModel { get; set; }
Property Value
Type | Description |
---|---|
ISignerModel | The signer model. |
Methods
| Improve this Doc View SourceTest(Signature)
Verifies the genuinity of signature
.
Declaration
public virtual double Test(Signature signature)
Parameters
Type | Name | Description |
---|---|---|
Signature | signature |
Returns
Type | Description |
---|---|
System.Double | True if |
Train(List<Signature>)
Trains the verifier with a list of signatures. Uses the Pipeline to extract features, and Classifier to find an optimized limit.
Declaration
public virtual void Train(List<Signature> signatures)
Parameters
Type | Name | Description |
---|---|---|
List<Signature> | signatures | The list of signatures to train on. |
Remarks
Note that signatures
may contain both genuine and forged signatures.
It's up to the classifier, whether it takes advantage of both classes