Repository for the Introduction to Artificial Intelligence course (Semester 6). It contains hands-on machine learning projects, reinforcement learning experiments, natural language processing benchmarks, reports, and comprehensive exam study materials.
Introduction-to-AI/
├── regression-task/ # House price prediction pipeline (EDA, Preprocessing, Modelling)
├── classification-task/ # Data classification pipeline (EDA, Preprocessing, Modelling)
├── reinforcement-learning/ # RL experiments on SlipperyGridWorld (Value Iteration, Q-Learning, SARSA, Dyna-Q)
├── NLP/ # Cyberbullying & Toxicity detection (Transformers & LLM Zero-Shot)
├── reports/ # Project reports and presentations (PDFs)
├── notatka-do-egzaminu.md # Comprehensive theoretical study notes for the exam
└── qa-part-1.md # Detailed open-question exam prep (10 core Q&As)
- Topic: House Price Prediction using Machine Learning algorithms.
-
Pipeline Breakdown:
-
notebooks/01_analytics.ipynb: Exploratory Data Analysis (EDA), feature distributions, correlation heatmaps, missing value detection. -
notebooks/02_preprocessing.ipynb: Data cleaning, encoding categorical attributes, scaling/standardization, missing value imputation. -
notebooks/03_modelling.ipynb: Model training, hyperparameter tuning (GridSearch / RandomizedSearch), evaluation using MAE, MSE, RMSE, and$R^2$ .
-
- Topic: Data Classification and Model Benchmarking.
- Pipeline Breakdown:
notebooks/01_analytics.ipynb: Class distribution analysis, dataset imbalance verification, feature profiling.notebooks/02_preprocessing.ipynb: Feature encoding (One-Hot), normalization, handling imbalanced datasets.notebooks/03_modelling.ipynb: Model selection (Logistic Regression, Decision Trees, Random Forest, k-NN), cross-validation, and metrics evaluation (Accuracy, Precision, Recall, F1-Score, ROC-AUC).
- Topic: Sequential decision making and policy learning in stochastic environments (
SlipperyGridWorld). - Key Environments & Notebooks:
- Clean & Modified GridWorld variants (
SlipperyGridWorldClean.ipynb,SlipperyGridWorldModified1-3.ipynb).
- Clean & Modified GridWorld variants (
- Implemented Algorithms:
- Model-Based: Value Iteration (
value-iteration-output,mod1-value-iteration-output). - Model-Free: Q-Learning (
q-learning-output), SARSA (SARSA-output). - Hybrid / Model-Based RL: Dyna-Q (
dyna-q-output).
- Model-Based: Value Iteration (
- Deliverables: Includes presentation (
WSI_Project2_Prezentation.pdf) and code archive.
- Topic: Toxic Comment & Cyberbullying Detection in English & Polish datasets using Transformers and Large Language Models (LLMs).
- Pipeline Breakdown:
01_data_prep.ipynb: Dataset acquisition from Hugging Face (jigsaw_toxicity_predEN,poleval/poleval2019_cyberbullyingPL), binary label mapping, test set generation.02_evaluate_transformers.ipynb: Benchmarking ~120M parameter fine-tuned Transformers:- English:
martin-ha/toxic-comment-model - Polish:
Hate-speech-CNERG/dehatebert-mono-polish - Multilingual:
unitary/multilingual-toxic-xlm-roberta
- English:
03_llm_zeroshot.ipynb: Zero-Shot classification benchmarking with Llama 3 8B via local Ollama server vs. Transformer baselines.
- Deliverables: Full NLP report (
raport_NLP.docx) and project archive.
WSI_Project1_Raport.pdf: Report for Project 1 (Machine Learning - Regression & Classification).WSI_Project2_Prezentation.pdf: Presentation slides for Project 2 (Reinforcement Learning).WSI_Project3_Raport.docx: Report for Project 3 (NLP).
- notatka-do-egzaminu.md: Full theoretical review for the exam, covering:
- NLP Foundations: Tokenization, Stemming vs. Lemmatization, Bag-of-Words, TF-IDF, Word Embeddings, RNNs, LSTMs, Attention, Transformers, LLMs (Temperature, Top-k, Top-p, Context Window, Prompting, Guardrails).
- AI & ML Concepts: AI definition, supervised vs. unsupervised vs. semi-supervised vs. reinforcement learning, algorithms (Linear/Logistic Regression, Decision Trees, Random Forest, k-NN, K-Means), evaluation metrics, hyperparameter tuning (Grid Search / Randomized Search), and cross-validation.
- qa-part-1.md: 10 detailed open questions & answers addressing core exam concepts such as cyclical feature encoding, data leak prevention, FN vs. FP in critical domains, overfitting detection, black-box XAI, and reproducibility.