Skip to content

About

πŸ“Š Python data science notebooks β€” data analysis, anomaly detection and computer vision with TensorFlow and OpenCV

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DataScience

A collection of Python data-science labs covering statistical data analysis, anomaly detection and signal cleaning, time-series forecasting, multi-criteria decision making, credit scoring, and computer-vision object detection. Each lab is a standalone folder with its own main.py entry point and requirements.txt.

Labs

Lab Topic Highlights
1-lab Synthetic data analysis Generates normal/exponential distributions and square/constant trends, composes them, and computes median, variance, and dispersion with histogram and dynamics plots.
2-lab Anomaly cleaning (least squares) Injects abnormal noise into a trend, then detects and removes it with a least-squares (MNK) sliding-window detector; tunes detector parameters in parallel via a confusion-matrix/TPR score.
3-lab Anomaly cleaning (Kalman) Cleans abnormal values using a second-order Kalman filter, outlier rejection, and an aging-based anomaly detector.
4-lab Multi-criteria decision making Applies the Voronin integral-convolution method to rank route/product options read from an Excel table.
5-lab Time-series forecasting (XGBoost) Fetches the OWID COVID-19 dataset, engineers date features, and forecasts new cases with an XGBRegressor, plotting predictions and feature importances.
6-lab Forecasting (MNK + neural net) Uses the Jena climate dataset to extrapolate atmospheric pressure via least squares and predict it with a TensorFlow/Keras dense network.
7-lab Sales data analysis Reads an Excel sales dataset and performs MNK flattening/extrapolation, rolling statistics, and segmentation/generalization by item and region.
8-lab Credit scoring pipeline Cleans and normalizes loan applicant data, builds an integro score (Voronin), filters fraud via rule-based validation, smooths anomalies, and trains a Keras model to predict the score.
9-lab Computer vision (object detection) Runs YOLOv3 weapon detection over input images with OpenCV's DNN module and non-maximum suppression, drawing bounding boxes.
control-work Statistical analysis Analyzes a normal distribution combined with a periodic (cosine) trend.

Tech stack

  • Python (3.10+ syntax)
  • NumPy, pandas
  • Matplotlib, seaborn
  • scikit-learn, SciPy
  • XGBoost
  • TensorFlow / Keras
  • OpenCV (opencv DNN module, YOLOv3)
  • requests, xlrd / openpyxl (Excel I/O)

Not every lab uses every library; see each lab's requirements.txt for its exact dependencies.

Running

Each lab is independent. From a lab directory, install its dependencies and run its entry point:

cd 1-lab
pip install -r requirements.txt
python main.py

Notes on data inputs (these paths are git-ignored and must be supplied locally):

  • 4-lab expects Excel tables under tables/ (routes.xls, Pr1.xls).
  • 5-lab and 6-lab download their datasets automatically (OWID COVID-19 CSV; Jena climate ZIP) and cache them locally.
  • 7-lab expects Data_Set_3.xls in the lab directory.
  • 8-lab reads Excel files from input/ and writes results to output/.
  • 9-lab expects images in input/ and the YOLOv3 model files (yolov3_training_2000.weights, yolov3_testing.cfg) under model/.

Project structure

.
β”œβ”€β”€ 1-lab/          # synthetic distributions, trends, statistics
β”œβ”€β”€ 2-lab/          # MNK sliding-window anomaly detection
β”œβ”€β”€ 3-lab/          # Kalman-based anomaly cleaning
β”œβ”€β”€ 4-lab/          # Voronin multi-criteria decision making
β”œβ”€β”€ 5-lab/          # XGBoost COVID-19 forecasting
β”œβ”€β”€ 6-lab/          # MNK + Keras climate forecasting
β”œβ”€β”€ 7-lab/          # Excel sales analysis & segmentation
β”œβ”€β”€ 8-lab/          # credit scoring pipeline
β”‚   β”œβ”€β”€ datasamples/        # data formatting, loggers, utils
β”‚   └── scoring_analysis/   # predictor, validation, anomalies, tools
β”œβ”€β”€ 9-lab/          # YOLOv3 weapon detection (OpenCV)
└── control-work/   # normal distribution + periodic trend analysis

About

πŸ“Š Python data science notebooks β€” data analysis, anomaly detection and computer vision with TensorFlow and OpenCV

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages