Machine Learning 101
00:00 / 15:00

Your First Neural Network

In this lesson, we will build a simple neural network from scratch using Python. We'll understand the core concepts of neurons, weights, biases, and how they come together to make predictions.

Key Concepts

  • Structure of a Neuron
  • Forward Propagation
  • Activation Functions (ReLU, Sigmoid)
main.py
import numpy as np

class Neuron:
    def __init__(self, inputs):
        self.weights = np.random.rand(inputs)
        self.bias = np.random.rand()

    def forward(self, inputs):
        return np.dot(inputs, self.weights) + self.bias
AI Learning Portal - Master Artificial Intelligence