You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swap memory - > using the hard-disk partition as a RAM
RAM 2G - > SWAP 2G
RAM 8G -> SWAP 4G
To create swap
make partition
mkswap hdd-name
To start swap swapon hdd-name
To stop swap swapoff hdd-name
to check swap free -m
make it permanent using UUID
UUID swap swap defaults 0 0
swapon -a to mount fstab entry
* To create data lots of data (kachra)
1. of = output file
2. bs = blocksize
3. count = no of blocks
```
dd if=/dev/urandom of=file-name bs=10M count=100
```
* to extend lvm size with format extension as well
```
lvextend --size +1G /dev/vggroup-name/lv-name -r
```
* to increase the format size of lvm , if partition is already formatted with xfs
```
xfs_growfs # only for xfs type
```
* to increase the format size of any format
```
resize2f lvm-name
```
ML
Random Forest
Random Forest divides the dataset into multiple datasets and apply DecisionTreeClassifier on each and randomly merge or select the output to get improved results
ensemble -> teaching itself in a loop repeatitive manner
## IMPORTANT IN Supervised Machine Learning
* Label Encoding
* Imputer
* One Hot Key
* Train test data
* Scaling
* after above cleaning give it to CLF
Computer Vision
the field in whch we discuss about the eyes of a machine that is providing data to machine by visuals
Data is taken from sources
Image
Video
GIF
Smiley
Animation
to install opencv
pip3 install opencv-contrib-python
IMAGE
* An image is a data with no. of rows and columns
* It is a collection of pixels
* pixel color is based on color coding scheme(RGB/BGR)
* value of color coding scheme is in range(0,255)
* DULL = less BGR value
* it a 3D numpy array
* GAN And OpenCV are used for image processing
* to show image on colab
```
from google.colab.patches import cv2_imshow
```
TASK
take picture from camera and find the major color in picture
Image Operations
Compress Image
Decompress Image
Zoom Image in particular area and not zoom the other area of image