Skip to content

Instantly share code, notes, and snippets.

View tomokishii's full-sized avatar

Tomokazu Ishii tomokishii

  • Kanagawa, Japan
View GitHub Profile
@tomokishii
tomokishii / adult_LR_classifier.py
Last active February 1, 2018 18:23
Adult Dataset (from UCI Machine Learning Repository) classification, 1. Logistic Regression, 2. MLP (Multi-layer Perceptron) model
#
# adult_LR_classifier.py date. 10/17/2015
# SGD (Stochastic Gradient Descent) version
# consider 3 features of dataset
#
import numpy as np
import numpy.random as rng
import matplotlib.pyplot as plt
import scipy as sp
@tomokishii
tomokishii / example1.csv
Created March 29, 2016 02:04
Pandas Date index parse
Date Open High Low Close
2014/12/31 17702.11914 17713.75977 17450.76953 17450.76953
2014/12/30 17702.11914 17713.75977 17450.76953 17450.76953
2014/12/29 17914.55078 17914.55078 17525.66016 17729.83984
2014/12/26 17778.91016 17843.73047 17769.00977 17818.96094
2014/12/25 17804.83984 17832.4707 17773.58984 17808.75
2014/12/24 17842.03906 17875.41016 17800.41992 17854.23047
2014/12/22 17685.5293 17692.58008 17572.61914 17635.14062
2014/12/19 17511.00977 17621.40039 17471.59961 17621.40039
2014/12/18 17210.05078 17210.05078 17210.05078 17210.05078
@tomokishii
tomokishii / IRIS_logistic_regression.md
Last active September 24, 2021 17:35
TensorFlow Logistic Regression

Logistic Regression Demo by TensorFlow

Logistic Regression is the basic concept of recent "Deep" neural network models. I rechecked TensorFlow L.R. coding to classify IRIS dataset.

  • Binary Classification problem - iris_lr.py
  • Multi-class Classification problem - iris_lr_softmax.py
@tomokishii
tomokishii / mnist_cnn_bn.py
Last active December 14, 2023 03:55
MNIST using Batch Normalization - TensorFlow tutorial
#
# mnist_cnn_bn.py date. 5/21/2016
# date. 6/2/2017 check TF 1.1 compatibility
#
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
@tomokishii
tomokishii / Autoencoders.md
Last active February 24, 2022 11:49
TensorFlow MNIST Autoencoders

README.md

These codes are TensorFlow Autoencoder implementation examples. They are inspired by very educational Keras Blog article.

http://blog.keras.io/building-autoencoders-in-keras.html

Building Autoencodes in Keras

"Autoencoding" is a data compression algorithm where the compression and decompression

@tomokishii
tomokishii / tf_logistic_reg.py
Last active September 24, 2021 17:35
TensorFlow Logistic Regression tutorial
#
# tf_logistic_reg.py
# date. 11/18/2015
# date. 1/29/2017 - checked under tensorflow 0.12.1
#
# The baseline is the code for 'Theano'.
from __future__ import print_function
import numpy as np
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomokishii
tomokishii / chap7.ipynb
Created September 16, 2016 00:04
Python Machine Learning - chapter 7
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomokishii
tomokishii / README.md
Last active November 22, 2016 00:02
Collaborative Filtering Tutorial Codes

Collaborative Filtering Tutorial Codes

The original codes comes from "Coursera Machine Learning" by prof. Andrew Ng, the program assignment of week 9.
I implemented this by Python,
1.Numpy + Scipy.Optimize
2.TensorFlow

  • ex8_cofi.py: Numpy + Scipy.Optimize code
  • check_costfun.py: support functions for ex8_cofi.py
  • cofi_tf.py: TensorFlow code
@tomokishii
tomokishii / README.md
Last active January 13, 2018 21:47
TessorFlow tutorial of Variable Scoping

TensorFlow の名前空間を理解して共有変数を使いこなす

関連ファイル:

  1. mnist_ae_varscope.py
  2. mnist_2nets.py