Skip to content

Commit

Permalink
#9 add part of enhance classifier with request
Browse files Browse the repository at this point in the history
  • Loading branch information
thegodenage committed May 16, 2024
1 parent a4cde35 commit 2d6d680
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/ddosml/knn.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ func NewKNNClassifier() *KnnClassifier {
}

func (k *KnnClassifier) EnhanceClassifierWithRequest(m *Request) {
//TODO implement me
panic("implement me")
k.mu.Lock()
defer k.mu.Unlock()

k.knn.UpdateTrainingSet()
}

func (k *KnnClassifier) IsRequestPotentialDDOS(ctx context.Context, m *Request) bool {
Expand Down

0 comments on commit 2d6d680

Please sign in to comment.