Open syncpark opened 3 months ago
In src/event.rs, the learning methods are defined as follows:
/// in src/event.rs /// Machine Learning Method. #[derive(Clone, Copy, Eq, PartialEq, Deserialize, Serialize)] pub enum LearningMethod { Unsupervised, SemiSupervised, }
After the EventCategory::HttpThreat is replaced to EventCategory::Reconnaissance, the following code in src/event/common.rs may return incorrect results. https://github.com/petabi/review-database/blob/2eda8f9ea7ddc8027df6a7ed5991af7db4a80990/src/event/common.rs#L163-L172
EventCategory::HttpThreat
EventCategory::Reconnaissance
To solve this issue, all event structures must contain LearningMethod value and implement learning_method() function.
learning_method()
In src/event.rs, the learning methods are defined as follows:
After the
EventCategory::HttpThreat
is replaced toEventCategory::Reconnaissance
, the following code in src/event/common.rs may return incorrect results. https://github.com/petabi/review-database/blob/2eda8f9ea7ddc8027df6a7ed5991af7db4a80990/src/event/common.rs#L163-L172Tasks: