aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongheng Liu on Homelab <z.liu@outlook.com.gr>2025-03-10 12:21:59 +0200
committerZhongheng Liu on Homelab <z.liu@outlook.com.gr>2025-03-10 12:21:59 +0200
commit9568147aefac22f8928460220560c62bbd972c99 (patch)
tree027fb6a066797ac3b83076a8cb7327c4abada711
parent636fe6eaf079253e3a9b60e85d4d148141c5f1e2 (diff)
downloadcs-y13-9568147aefac22f8928460220560c62bbd972c99.tar.gz
cs-y13-9568147aefac22f8928460220560c62bbd972c99.tar.bz2
cs-y13-9568147aefac22f8928460220560c62bbd972c99.zip
feat: theory artificial intelligence
-rw-r--r--notebooks/a_bit_of_a_pickle.ipynb2
-rw-r--r--notebooks/task-26-01.ipynb62
-rw-r--r--notebooks/theory_ai.ipynb35
-rw-r--r--thing.binbin35 -> 0 bytes
4 files changed, 98 insertions, 1 deletions
diff --git a/notebooks/a_bit_of_a_pickle.ipynb b/notebooks/a_bit_of_a_pickle.ipynb
index e62e859..4519b0d 100644
--- a/notebooks/a_bit_of_a_pickle.ipynb
+++ b/notebooks/a_bit_of_a_pickle.ipynb
@@ -16,7 +16,7 @@
"import pickle\n",
"class StudentObject:\n",
" def __init__(self):\n",
- " "
+ " pass"
]
},
{
diff --git a/notebooks/task-26-01.ipynb b/notebooks/task-26-01.ipynb
new file mode 100644
index 0000000..2c847a8
--- /dev/null
+++ b/notebooks/task-26-01.ipynb
@@ -0,0 +1,62 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# TASK 26.01"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "import datetime\n",
+ "import pickle\n",
+ "import random # data generator\n",
+ "class Car:\n",
+ " def __init__(self, car_id):\n",
+ " self.VehicleID = car_id\n",
+ " self.__Registration = \"\"\n",
+ " self.__Date = datetime.datetime.now()\n",
+ " self.__EngineSize = -1\n",
+ " self.__PurchasePrice = 5900_00\n",
+ "def data_generator():\n",
+ " cars = []\n",
+ " for i in range(40):\n",
+ " s = \"ID\"\n",
+ " for i in range(10):\n",
+ " s += str(random.randint(0, 9))\n",
+ " cars.append(Car(s))\n",
+ " return cars\n",
+ "with open(\"cars.dat\", 'wb+') as carfile:\n",
+ " for car in data_generator():\n",
+ " print(car.VehicleID)\n",
+ " pickle.dump(car, carfile)"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": ".venv",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.12.7"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 2
+}
diff --git a/notebooks/theory_ai.ipynb b/notebooks/theory_ai.ipynb
new file mode 100644
index 0000000..49307e7
--- /dev/null
+++ b/notebooks/theory_ai.ipynb
@@ -0,0 +1,35 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Artificial intelligence\n",
+ "\n",
+ "## Catelogires\n",
+ "- Narrow AI - when a machine has superior performance to a human when doing one specific task.\n",
+ "- General AI is when a machine is similar in its performance to a human in any intellectual task.\n",
+ "- Strong AI is when a machine is superior to humans in any intellectual task.\n",
+ "\n",
+ "## Machine learning\n",
+ "A subset of AI\n",
+ "\n",
+ "### Supervised Learning\n",
+ "uses regression and classification analysis\n",
+ "- requires input and output\n",
+ "- uses labelled data\n",
+ "- receive set of inputs and correct outputs to permit learning process\n",
+ "- once trained, the model is run using labelled data (to refine / reinforce)\n",
+ "- results compared with expected output.\n",
+ "- model is run with unlabelled data"
+ ]
+ }
+ ],
+ "metadata": {
+ "language_info": {
+ "name": "python"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 2
+}
diff --git a/thing.bin b/thing.bin
deleted file mode 100644
index aa413c8..0000000
--- a/thing.bin
+++ /dev/null
Binary files differ