How aditiib/ai-memory-pressure works
This repository is a Linux memory-pressure prediction project: it collects system metrics, labels pressure-onset examples, prepares data, trains classifiers, saves a Random Forest model, and predicts pressure from manually entered values. Separate scripts analyze and plot dataset or model results. The excerpts show the collector writing one CSV and the labeler producing another, but do not establish how those datasets were obtained or how the preprocessing input relates to them; those links are therefore omitted.
Main entry points: memory_cleaned.csv Cleaned dataset · memory_dataset_labeled.csv Labeled dataset · label_data.py Pressure labeler · save_model.py Model persistence
Components 18
Metrics collection
- System collector
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/collector/collector.py - Collected metrics
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/data/memory_data.csv
Dataset preparation
- Pressure labeler
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/collector/label_data.py - Experiment CSVs
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/data - Labeled dataset
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/data/memory_dataset_labeled.csv - Data cleaning
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/preprocess.py - Cleaned dataset
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/memory_cleaned.csv
Modeling and prediction
- Logistic regression
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/train.py - Decision tree
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/train_decision_tree.py - Random forest
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/train_random_forest.py - LSTM model
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/train_lstm.py - Model persistence
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/save_model.py - Saved model
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/memory_model.pkl - Interactive prediction
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/predict.py
Analysis and visualization
- Dataset analysis
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/collector/analyze_data.py - Pressure plot
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/collector/plot_pressure.py - Model comparison charts
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/graphs.py
Other components
- System operator
Connections 15
- System operator → System collector: starts collection
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/collector/collector.py - System collector → Collected metrics: writes metrics
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/collector/collector.py - Pressure labeler → Experiment CSVs: reads experiments
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/collector/label_data.py - Pressure labeler → Labeled dataset: writes labels
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/collector/label_data.py - Data cleaning → Cleaned dataset: writes cleaned data
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/preprocess.py - Logistic regression → Cleaned dataset: reads training data
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/train.py - Decision tree → Cleaned dataset: reads training data
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/train_decision_tree.py - Random forest → Cleaned dataset: reads training data
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/train_random_forest.py - LSTM model → Cleaned dataset: reads training data
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/train_lstm.py - Model persistence → Cleaned dataset: reads training data
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/save_model.py - Model persistence → Saved model: saves model
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/save_model.py - Interactive prediction → Saved model: loads model
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/predict.py - System operator → Interactive prediction: enters metrics
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/predict.py - Dataset analysis → Labeled dataset: reads labeled data
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/collector/analyze_data.py - Pressure plot → Labeled dataset: reads labeled data
ai-memory-pressure-prediction-anshika-ml(1)/ai-memory-pressure-prediction-anshika-ml/collector/plot_pressure.py