Skip to content

Instantly share code, notes, and snippets.

Avatar
🐳
Deep Learning, Data Structures, Algorithms, and Problem Solving

Chanchana Sornsoontorn off99555

🐳
Deep Learning, Data Structures, Algorithms, and Problem Solving
View GitHub Profile
@datlife
datlife / mnist_tfdata.py
Last active Jan 25, 2021
Training Keras model with tf.data
View mnist_tfdata.py
"""An example of how to use tf.Dataset in Keras Model"""
import tensorflow as tf # only work from tensorflow==1.9.0-rc1 and after
_EPOCHS = 5
_NUM_CLASSES = 10
_BATCH_SIZE = 128
def training_pipeline():
# #############
# Load Dataset
@mrry
mrry / tensorflow_self_check.py
Last active Jun 29, 2021
[DEPRECATED] TensorFlow on Windows self-check
View tensorflow_self_check.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@anbrjohn
anbrjohn / draw_neural_net.py
Last active Mar 5, 2021 — forked from craffel/draw_neural_net.py
Draw a neural network diagram with matplotlib!
View draw_neural_net.py
#!/usr/bin/env python3
"""
Created by @author: craffel
Modified on Sun Jan 15, 2017 by anbrjohn
Modifications:
-Changed xrange to range for python 3
-Added functionality to annotate nodes
"""
@TangChr
TangChr / .gitconfig
Last active Aug 6, 2018
Adding Visual Studio Code to .gitconfig
View .gitconfig
[core]
editor = "code --wait"
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = "code --wait --diff $LOCAL $REMOTE"
[merge]
@off99555
off99555 / Machine Learning Curriculum.md
Last active Apr 1, 2020
Machine learning resources and related artificial intelligence concepts.
View Machine Learning Curriculum.md
@stefanthoss
stefanthoss / mysql-pandas-import.py
Last active Feb 19, 2021
Import data from a MySQL database table into a Pandas DataFrame using the pymysql package.
View mysql-pandas-import.py
mport pandas as pd
import pymysql
from sqlalchemy import create_engine
engine = create_engine("mysql+pymysql://USER:PASSWORD@HOST:PORT/DBNAME")
df = pd.read_sql_query("SELECT * FROM table", engine)
df.head()
@PurpleBooth
PurpleBooth / README-Template.md
Last active Nov 30, 2021
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@craffel
craffel / draw_neural_net.py
Created Jan 10, 2015
Draw a neural network diagram with matplotlib!
View draw_neural_net.py
import matplotlib.pyplot as plt
def draw_neural_net(ax, left, right, bottom, top, layer_sizes):
'''
Draw a neural network cartoon using matplotilb.
:usage:
>>> fig = plt.figure(figsize=(12, 12))
>>> draw_neural_net(fig.gca(), .1, .9, .1, .9, [4, 7, 2])
@dpryden
dpryden / ClassLoaderLeakExample.java
Created Oct 20, 2014
Example of a ClassLoader leak in Java
View ClassLoaderLeakExample.java
import java.io.IOException;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
/**
* Example demonstrating a ClassLoader leak.
*
* <p>To see it in action, copy this file to a temp directory somewhere,