How ahmedkashima/ml_iu5-6sem works
Project type and purpose
• This is not a classic “frontend–backend” product but an educational machine-learning workbook: a collection of Jupyter notebooks, data sets, and a small standalone script (“research_in_web.py”) used to teach theory and methods of ML (regression, random forest, simple neural nets, data analysis, model evaluation).
• It serves two related use-cases:
a) Lab/exam assignments (lab1…lab6, exam, РК1, РК2) each consuming CSV data, producing analysis, plots, metrics.
b) A mini-research project (“NIRS”) consisting of a notebook and a Python script with its own requirements.txt.
File structure
• Top-level directories:
• lab1…lab6, exam, РК1, РК2: Each folder contains a .ipynb notebook and one or more .csv data files.
• NIRS and its copy: Both have requirements.txt, research_in_web.py, research_work.ipynb, plus raw data in data/.
• No build scripts or container configs; the environment is managed via Python/venv and Jupyter.
• A global README.md describes the course, topics, and libraries.
Insights from the README
• Tech stack: Python 3.11+, scikit-learn, pandas, numpy, matplotlib, seaborn, joblib.
a. Main components:
• User Interface: Jupyter Notebook server (browser interface)
• Compute Engine: Python interpreter hosting core libraries (pandas, numpy, scikit-learn, matplotlib/seaborn, joblib)
• Data Storage: Raw CSV files under each lab/experiment folder and the NIRS/data subfolder
• Research Script: research_in_web.py (CLI or notebook-imported module)
• Version Control: Git repository (contains all notebooks, data, scripts)
b. Relationships / Data flow:
1) Researcher opens Jupyter Notebook in a virtual environment →
2) Notebook loads CSV data via pandas →
3) Data flows into preprocessing code →
4) Preprocessed data passed into model training modules (scikit-learn) →
5) Models produce predictions →
6) Evaluation metrics computed (cross-validation, metrics) →
7) Visualizations rendered (matplotlib/seaborn) →
8) Optionally joblib serializes trained models to disk →
9) research_in_web.py may ingest or push data to the web or external API.
c. Architectural patterns / principles:
• Modular lab structure: each folder is a self-contained mini-pipeline.
• Reusable libraries for data loading, modeling, evaluation.
• Separation of concerns: Data → Preprocessing → Modeling → Evaluation → Visualization.
d. Key technologies:
• Python 3.11+ runtime
• Jupyter Notebook server (interactive REPL)
• pandas/numpy for data handling
• scikit-learn for ML algorithms
• matplotlib & seaborn for plots
• joblib for model persistence
• Git for source control