Artificial Intelligence
Master the fundamentals of AI including search, reasoning, decision-making, and real-world applications like self-driving cars and intelligent assistants.
Activation Function Derivatives
Implement derivatives for sigmoid and ReLU activation functions.
Binary Classification with Perceptron
Implement a perceptron for binary classification with given weights [0.6, -0.4] and bias 0.3.
Binary Cross Entropy Loss
Calculate binary cross entropy loss between true and predicted values.
Calculate Hamming Distance
Calculate the Hamming distance between two binary strings.
Decision Stump Classifier
Implement a decision stump (1-level decision tree).
Feature Scaling (Normalization)
Implement feature scaling to normalize data between 0 and 1.
Implement AND Logic Gate
Create a function that implements AND logic (returns 1 only if both inputs are 1).
Implement NOT Logic Gate
Create a function that implements NOT logic (returns the opposite of input).
Implement OR Logic Gate
Create a function that implements OR logic (returns 1 if either input is 1).
K-Nearest Neighbors Classifier
Implement a simple KNN classifier with k=3.
Linear Regression Prediction
Make predictions using a trained linear regression model (y = 2x + 1).
Logistic Regression Prediction
Make predictions using a trained logistic regression model.
Mean Squared Error
Calculate mean squared error between predicted and actual values.
Naive Bayes Classifier
Implement a Gaussian Naive Bayes classifier from scratch.
Q-Learning Table
Implement a simple Q-learning table for a grid world.
Simple Genetic Algorithm
Implement a genetic algorithm to maximize f(x) = x^2.
Simple Gradient Descent
Implement gradient descent to find the minimum of f(x) = x^2.
Simple Linear Regression
Implement a simple linear regression model (y = wx + b).
Simple Perceptron
Implement a perceptron for AND gate with weights [0.5, 0.5] and bias -0.7.
Simple Recommender System
Implement a cosine similarity-based recommender system.
Softmax Function
Implement the softmax function for multi-class classification.
Standardization (Z-score)
Implement standardization using z-score normalization.
Step Activation Function
Implement a step activation function with threshold 0.