forked from sergts/botnet-traffic-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
dependenciesDependency updates and compatibilityDependency updates and compatibilitytechnical-debtTechnical debt and code qualityTechnical debt and code quality
Description
Problem
Code mixes standalone Keras imports with TensorFlow Keras imports, which can cause version conflicts and unpredictable behavior.
Example in train_og.py:
from keras.models import load_model # Standalone keras
from tensorflow.keras.models import Model # TensorFlow keras
from tensorflow.keras.layers import Input, DenseFiles affected:
anomaly-detection/train_og.pyanomaly-detection/test.py- Other training scripts
Fix
Use tensorflow.keras exclusively:
from tensorflow.keras.models import load_model, Model
from tensorflow.keras.layers import Input, DensePriority
MODERATE - Can cause model loading failures and compatibility issues
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
dependenciesDependency updates and compatibilityDependency updates and compatibilitytechnical-debtTechnical debt and code qualityTechnical debt and code quality