AISafetyLectureNotes
Machine Learning Safety
Install / Use
/learn @xiaoweih/AISafetyLectureNotesREADME
Machine Learning Safety
This repository includes the code (in Chapter-X/) and the draft textbook (file "Machine_Learning_Safety.pdf"). It is used in "COMP219: Advanced Artificial Intelligence" at the Univesity of Liverpool for second year undergraduate students.
Table of Contents:
Part 1: Safety Properties
Part 2: Safety Threats
Part 3: Safety Solutions
Part 4: Extended Safety Solutions
Part 5: Appendix: Mathematical Foundations and Competition
Installation
conda installation
windows https://conda.io/projects/conda/en/latest/user-guide/install/windows.html
Linux: https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html
macOS: https://docs.conda.io/projects/conda/en/latest/user-guide/install/macos.html
conda env setup
First of all, you can set up a conda environment (Note that you do not need to set up conda in the lab)
conda create --name aisafety python==3.13
conda activate aisafety
This should be followed by installing software dependencies:
conda install -c pandas numpy matplotlib scikit-learn pytorch torchvision
IDE (VScode/PyCharm) and JupyterNotebook with conda
- Visual Studio Code (VScode) is a free cross-platform source code editor. The Python for Visual Studio Code extension allows VSC to connect to Python distributions installed on your computer. Reference: https://docs.anaconda.com/anaconda/user-guide/tasks/integration/python-vsc/
- Using PyCharm. PyCharm is an IDE that integrates with IPython Notebook, has an interactive Python console, and supports Anaconda as well as multiple scientific packages. Reference: https://docs.anaconda.com/anaconda/user-guide/tasks/pycharm/
- If you want to use Jupyter Notebook to code, use below command:
- install jupyter
conda install jupyter
- open jupyter notebook
jupyter notebook
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
groundhog
399Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
last30days-skill
18.8kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
sec-edgar-agentkit
10AI agent toolkit for accessing and analyzing SEC EDGAR filing data. Build intelligent agents with LangChain, MCP-use, Gradio, Dify, and smolagents to analyze financial statements, insider trading, and company filings.
