<jupyter_start><jupyter_text>Image is nothing but a matrix of numbers.A grayscale image is a 2-D matrix with values ranging from 0 to 255.0 in black and 255 is white and in between you have all shades of grey.<jupyter_code>import numpy as np
import matplotlib.pyplot as plt
random_image = np.random.randint(0,256,(256,256))
plt.figure(figsize=(5,5))
plt.imshow(random_image,cmap='gray',vmin=0,vmax=255)
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1038374717832957, 'fraction_numerical': 0.056433408577878104, 'mean_word_length': 6.52542372881356, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '572080', 'license': 'Apache-2.0', 'n_tokens_mistral': 177, 'n_tokens_neox': 156, 'n_words': 48, 'path': 'Approaching_any_ML_problem/Image_Classification_&_Segmentation/Understanding_Images_1.ipynb', 'repo_name': 'kushagras71/understanding_ML', 'size': '443'}