This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| # Load an image | |
| img = cv2.imread("test.jpg") # keep test.jpg in same folder | |
| # Resize image to fit on screen | |
| img = cv2.resize(img, (800, 600)) | |
| # Convert to gray scale | |
| gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| print("Input x=") | |
| x = float(input()) | |
| print("Weight w=") | |
| w = float(input()) | |
| print("Bias b=") | |
| b = float(input()) | |
| yin = b + x * w |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !pip install gensim matplotlib scikit-learn | |
| from gensim.models import Word2Vec | |
| from sklearn.manifold import TSNE | |
| import matplotlib.pyplot as plt | |
| sentences = [ | |
| ["students", "love", "python"], | |
| ["teachers", "guide", "students"], | |
| ["college", "life", "is", "fun"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PARAMETERS: p_fname TYPE string, | |
| p_mname TYPE string, | |
| p_lname TYPE string. | |
| DATA: lv_withspace TYPE string, | |
| lv_withoutspace TYPE string, | |
| lv_condensed TYPE string. | |
| DATA: lv_len_fname TYPE i, | |
| lv_len_mname TYPE i, | |
| lv_len_lname TYPE i, | |
| lv_len_final TYPE i. |