Inverse Matrix
2×2 example 3×3 example properties A^-1 * A = A * A^-1 = I (AB)^−1=B^−1A^−1 (A^T)^−1=(A^−1)^T (kA)^−1=(1/k)(A^−1) (A^−1)^−1=A
Python Identity Matrix
Example 1 Create a 3×3 identity matrix also can use np.eye Example 2 Matrix Multiplication Example 3 Determinant of the Identity Matrix Example 4 Identity Matrix is Its Own Inverse Example 5 Eigenvalues of the Identity Matrix
Python Determinant of a Matrix
2×2 Example 3×3 Example singular matrix identity matrix The determinant of a product of matrices satisfies det(AB)=det(A)⋅det(B) Swapping two rows (or columns) of a matrix multiplies the determinant by − 1 Eigenvalues of A and their product Scale A by a scalar k and compute determinant the shape attribute of a numpy array provides the […]
Ridge Regressor
https://youtu.be/GMF4Td7KtB0#Ridge Regression which is considered #L2 Regularization #helps with overfitting in linear regression models #keeping the coefficients small # lead to a model that is less prone to overfitting #balance between fitting the data and keeping the coefficients small #more robust and stable models, particularly when dealing with datasets that have highly correlated predictor variables […]
Pandas datetime
In this Python Pandas lesson, we will take a look how Datetime works. If you would rather watch a YouTube video then read the article, the video the article is based around is linked below. https://youtu.be/1tmN3gbimvI?si=_fvXRgfzoFlm7deM Importing Required Libraries we start by importing three libraries: pandas as pd: for data manipulation and analysis numpy as […]
Stacking Regressor
SEE ALL NULL VLAUES voting classifier hyperparamater tuning
BeautifulSoup4 extract table
import requests import pandas as pd from bs4 import BeautifulSoup Basic Example HTML Code -> Runners html = “”” Personal Running Bests Personal Running Bests Distance Time 5k 18:30 10k 37:50 Half Marathon 1:25:11 Marathon 3:17:00 50 Miler 9:14:30 100 Miler 32:11:11 “”” Extract headers headers = [th.get_text(strip=True) for th in table.find_all(“th”)] headers Step 5: […]
Augmented Dickey–Fuller test
parts of the ADF test – tuple access by index
KPSS-test
parts of the ADF test -tuple access by index