Skip to content

Instantly share code, notes, and snippets.

View VinitaSilaparasetty's full-sized avatar
👩‍💻
Chief Data Scientist | Generative AI | Author | Speaker | Python | Tensorflow

Vinita Silaparasetty VinitaSilaparasetty

👩‍💻
Chief Data Scientist | Generative AI | Author | Speaker | Python | Tensorflow
View GitHub Profile
#import numpy
import numpy as np
#Create datasets
Z= np.random.rand(2,1)
y= np.random.rand(2,1)
# Define Sigmoid Function
@VinitaSilaparasetty
VinitaSilaparasetty / regularize_cost_function.py
Created July 31, 2019 12:15
Regularization of the Cost Function in Python
# import numpy library
import numpy as np
# Create a test dataset
Z= np.random.rand(2,1)
y= np.random.rand(2,1)
# define sigmoid function
def sigmoid(x, derivative=False):
@VinitaSilaparasetty
VinitaSilaparasetty / pyspark_basics_part_2.ipynb
Created August 2, 2019 03:40
Pyspark Basics Notebook - Part 2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@VinitaSilaparasetty
VinitaSilaparasetty / adafruit_gps_tracker.py
Last active August 19, 2019 15:38
Adafruit GPS Tracker
#Inspired by Adafruit's tutorial: https://learn.adafruit.com/adafruit-ultimate-gps/circuitpython-parsing
# import libraries
import time
import board
import busio
import adafruit_gps
# Define RX and TX pins for the board's serial port connected to the GPS.
@VinitaSilaparasetty
VinitaSilaparasetty / undertone_detection.py
Last active August 20, 2019 08:14
Skin undertone detection using RGB
# import libraries
import numpy as np
import argparse
import cv2
# construct the argument parse and parse the arguments
argp = argparse.ArgumentParser()
argp.add_argument("-i", "--image", help = "path to the image")
args = vars(argp.parse_args())
@VinitaSilaparasetty
VinitaSilaparasetty / skintone_detection.ipynb
Last active August 20, 2019 12:20
Skintone Detection
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@VinitaSilaparasetty
VinitaSilaparasetty / CNN_undertone_detection.ipynb
Created August 20, 2019 09:36
CNN for Skin Undertone Detection
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.