Network Activity Anomaly Detection by Nirmiti
I encoded the target variable ( which is 'attack') in the training dataset to convert it into a numerical format for model training. To handle the combination of categorical and numerical features, I used ColumnTransformer for categorical columns and StandardScaler for numerical columns. Then I used RandomForestClassifier for classification. Finally, I used the trained model to predict the target variable for the test dataset.
7/3/2024
48 views
Tags:
#python
#machine-learning