Skip to content

Instantly share code, notes, and snippets.

View 79212's full-sized avatar

Bintao 79212

View GitHub Profile
@79212
79212 / sketch-to-color-streamlit.py
Created March 27, 2021 22:27 — forked from tejasmorkar/sketch-to-color-streamlit.py
Gist for showcasing how to add Streamlit function calls to the existing python code
import streamlit as st
# regular imports for the model
st.write('# Sketch to Color Image Generation using Conditional GANs')
# to store the model creation to cache
@st.cache()
def load_model():
# load the generator model
return generator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@79212
79212 / web_scraping_indeed.py
Created March 19, 2021 20:20 — forked from liannewriting/web_scraping_indeed.py
indeed_scraping_202002
from time import sleep
from selenium import webdriver
from selenium.common.exceptions import ElementNotVisibleException
from selenium.common.exceptions import NoSuchElementException
import pandas as pd
import random
# define scraping function
def scrape_indeed(search,loc, limit = 50, canada=False):
@79212
79212 / feature_importance.ipynb
Created January 29, 2021 17:43 — forked from nbertagnolli/feature_importance.ipynb
Gist for medium article...
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#Import needed libraries
from bs4 import BeautifulSoup as bs
import requests as rq
import pygal
import time
import pygal
from IPython.display import display, HTML
base_html = """
<!DOCTYPE html>
@79212
79212 / MNIST_Keras2DML.py
Created July 19, 2020 16:00 — forked from NiloyPurkait/MNIST_Keras2DML.py
An example of using Apache SparkML to train a convolutional neural network in parallel using the MNIST dataset, on IBM watson studio. Written for medium article: https://medium.com/@niloypurkait/how-to-train-your-neural-networks-in-parallel-with-keras-and-apache-spark-ea8a3f48cae6
################################### Keras2DML: Parallely training neural network with SystemML#######################################
import tensorflow as tf
import keras
from keras.models import Sequential
from keras.layers import Input, Dense, Conv1D, Conv2D, MaxPooling2D, Dropout,Flatten
from keras import backend as K
from keras.models import Model
import numpy as np
import matplotlib.pyplot as plt
@79212
79212 / common_pandas_errors.ipynb
Created February 24, 2020 16:03 — forked from discdiver/common_pandas_errors.md
Common Pandas Errors
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@79212
79212 / talks_links.md
Created April 12, 2019 01:58 — forked from ghego/talks_links.md
All the links for talks
@79212
79212 / Intro to ML.ipynb
Created December 6, 2018 03:52 — forked from polong-lin/Intro to ML.ipynb
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.