Skip to content

Commit 8ef3fa8

Browse files
committed
2 parents bc917be + 723a842 commit 8ef3fa8

File tree

9 files changed

+69
-1
lines changed

9 files changed

+69
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Pegasus deep learning micro library built with only python and numpy v1
22

3-
![alt text](./images/pegasus.jpg)
3+
![alt text](./assets/pegasus.jpg)
44

55
## Introduction
66
With the steady growth in the development of deep learning, there have been several layers of abstraction which have been built to simplify communication of ideas and speed up development. But the cost is that fewer people understand the foundational building blocks of deep learning models : the perceptron. This project is intended to be a *very simple* decomposition of a deep learning library, meant only for pedantic purposes.
File renamed without changes.

dev.ipynb

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"#### Pegasus\n",
8+
"Notebook for developing and experimenting with ideas related to the pegasus deep learning library"
9+
]
10+
},
11+
{
12+
"cell_type": "code",
13+
"execution_count": 1,
14+
"metadata": {},
15+
"outputs": [],
16+
"source": [
17+
"import numpy as np"
18+
]
19+
},
20+
{
21+
"cell_type": "code",
22+
"execution_count": null,
23+
"metadata": {},
24+
"outputs": [],
25+
"source": [
26+
"def nn_forward_single(X, y, w1, b1, w2, b2, w3, b3):\n",
27+
" return -np.log(\n",
28+
" np.sum(\n",
29+
" y\n",
30+
" * np.exp( # why are we multiplying y by the exponent here?\n",
31+
" np.dot(\n",
32+
" np.maximum(\n",
33+
" 0,\n",
34+
" np.dot(np.maximum(0, np.dot(X, w1.T) + b1), w2.T) + b2,\n",
35+
" ),\n",
36+
" w3.T,\n",
37+
" )\n",
38+
" + b3\n",
39+
" ),\n",
40+
" axis=1,\n",
41+
" keepdims=True,\n",
42+
" )\n",
43+
" )"
44+
]
45+
}
46+
],
47+
"metadata": {
48+
"kernelspec": {
49+
"display_name": "venv",
50+
"language": "python",
51+
"name": "python3"
52+
},
53+
"language_info": {
54+
"codemirror_mode": {
55+
"name": "ipython",
56+
"version": 3
57+
},
58+
"file_extension": ".py",
59+
"mimetype": "text/x-python",
60+
"name": "python",
61+
"nbconvert_exporter": "python",
62+
"pygments_lexer": "ipython3",
63+
"version": "3.12.3"
64+
}
65+
},
66+
"nbformat": 4,
67+
"nbformat_minor": 2
68+
}

pegasus/criteria/__init__.py

Whitespace-only changes.

pegasus/data/__init__.py

Whitespace-only changes.

pegasus/nn/__init__.py

Whitespace-only changes.

pegasus/optimizers/__init__.py

Whitespace-only changes.

pegasus/trainer/distributed/__init__.py

Whitespace-only changes.

pegasus/trainer/serial/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)