This file contains 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 pandas as pd | |
import numpy as np | |
from pycaret.classification import * | |
# load data | |
data = pd.read_csv("HepatitisCdata.csv") | |
data = data.drop(labels='Unnamed: 0', axis=1) | |
data.head(10) | |
# clean data |
This file contains 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 numpy as np | |
import cv2 as cv | |
from matplotlib import pyplot as plt | |
# use matplotlib to print image in jupyter notebook | |
def show(img): | |
plt.figure(figsize=(10, 16)) | |
plt.imshow(img, cmap='gray') | |
plt.show() | |
This file contains 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
# Dr. Juan Zamora-Mora | |
# www.doczamora.com | |
import cv2 as cv | |
import numpy as np | |
import mediapipe as mp | |
# vertical distance betwen min-max y-axis points. | |
def open_len(arr): | |
y_arr = [] |
This file contains 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 numpy | |
import random | |
objetivo_str = "Hola Mundo" | |
# 1 - Poblacion (set de genes) | |
poblacion = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!.," | |
# 2 funcion Fitness | |
def fitness_fn(nuevo_str,target_str): |