How to fix Script timeout passed error

Script timeout passed, if you want to finish import, please resubmit same file and import will resume

Modify php.ini

Location : xampp/php/php.ini

Set these two line ( = The length of time you want)

Modify config.inc.php

Location : xampp/phpMyAdmin

add this line to set your custom time limit

Read More

Logistic regression

Sigmoid function


1
2
3
4
5
6
7
8
9
from matplotlib import pyplot as plt
import numpy as np

x = np.arange(-10, 10, 0.1)
f = 1 / (1 + np.exp(-x))

plt.ylabel("F(x)")
plt.plot(x, f)
plt.show()

Read More

gradient descent and linear regression

datasets.make_regression

1
2
3
4
5
6
7
import matplotlib.pyplot as plt
import numpy
from sklearn import datasets
from numpy import abs

# noise = 10 make it more scttered
regressionData = datasets.make_regression(100, 1, noise=10)
Read More

Install nvidia driver 515 | cuda 11.7 | docker | docker compose | nvidia container | anaconda on ubuntu 22.04

Remove

remove nvidia driver

1
2
sudo apt-get --purge remove nvidia*
sudo apt autoremove

remove cuda

1
sudo apt-get --purge remove "*cublas*" "cuda*"

Nvidia driver

1
2
3
4
5
6
7
8
9
sudo lshw -numeric -C display
sudo apt-get purge nvidia*
sudo add-apt-repository ppa:graphics-drivers
sudo apt-get update
sudo apt upgrade
ubuntu-drivers list
sudo apt install nvidia-driver-515
sudo reboot
nvidia-smi
Read More