BayesFilter Methods
BayesFilter Methods

The BayesFilter type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoadDatabase(Stream, Stream)
Loads Bayesian database from a stream.
Public methodCode exampleLoadDatabase(String, String)
Loads Bayesian database from disk.
Public methodLoadDatabaseAsync(Stream, Stream)
async/await version of LoadDatabase(Stream, Stream).
Public methodLoadDatabaseAsync(String, String)
async/await version of LoadDatabase(String, String).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodCode exampleSaveDatabase(Stream, Stream)
Saves the Bayesian database to stream.
Public methodCode exampleSaveDatabase(String, String)
Saves the Bayesian database to disk.
Public methodSaveDatabase(Stream, Stream, Int32, Boolean)
Compacts the database by removing non-significant data and saves the database to stream.
Public methodCode exampleSaveDatabase(String, String, Int32, Boolean)
Compacts the database by removing non-significant data and saves the database to disk.
Public methodSaveDatabaseAsync(Stream, Stream)
async/await version of SaveDatabase(Stream, Stream).
Public methodSaveDatabaseAsync(String, String)
async/await version of SaveDatabase(String, String).
Public methodSaveDatabaseAsync(Stream, Stream, Int32, Boolean)
Public methodSaveDatabaseAsync(String, String, Int32, Boolean)
Public methodCode exampleScoreMessage
Analyses the message and returns the probability of the message being spam.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodCode exampleTrainFilter
Learns from the specified message as from spam or non-spam source.
Top
See Also