Skip to content

About

A set of tasks and simple projects made during Introduction-to-AI course.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Introduction to AI (Wprowadzenie do Sztucznej Inteligencji - WdSI)

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.


Repository Overview & Structure

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)

Projects & Topics Summary

1. Regression Task (/regression-task)

  • 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$.

2. Classification Task (/classification-task)

  • 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).

3. Reinforcement Learning (/reinforcement-learning)

  • Topic: Sequential decision making and policy learning in stochastic environments (SlipperyGridWorld).
  • Key Environments & Notebooks:
    • Clean & Modified GridWorld variants (SlipperyGridWorldClean.ipynb, SlipperyGridWorldModified1-3.ipynb).
  • 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).
  • Deliverables: Includes presentation (WSI_Project2_Prezentation.pdf) and code archive.

4. Natural Language Processing (/NLP)

  • 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_pred EN, poleval/poleval2019_cyberbullying PL), 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
    • 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.

5. Project Reports (/reports)

  • 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).

Exam Study Materials

  • 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.

About

A set of tasks and simple projects made during Introduction-to-AI course.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages