Skip to content

Instantly share code, notes, and snippets.

View TOSHISTATS's full-sized avatar

Toshifumi Kuga TOSHISTATS

View GitHub Profile
@TOSHISTATS
TOSHISTATS / Loan-default model with images in SNS
Created May 14, 2017 04:02
Loan-default model with images in SNS
# "Defaults of loans" is predicted with "customer data + images in SNS"
# 1.import library
import keras
from keras.layers import Input, Embedding, LSTM, Dense,Conv2D,MaxPooling2D,Flatten
from keras.models import Model, Sequential
@TOSHISTATS
TOSHISTATS / End to End learning of self-driving car in Udacity simulator
Created May 14, 2017 04:06
End to End learning of self-driving car in Udacity simulator
import os
import h5py
import keras
import numpy as np
from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img
from keras.models import Sequential
from keras.layers import Convolution2D, MaxPooling2D, ZeroPadding2D,Cropping2D
from keras.layers import Activation, Dropout, Flatten, Dense, Lambda
from keras.utils.np_utils import to_categorical
from keras.regularizers import l2, activity_l2
@TOSHISTATS
TOSHISTATS / Car detector by pre-trained ResNet50
Last active June 6, 2017 16:24
Car detector by pre-trained ResNet50
# 1. Import library
import os
import h5py
import numpy as np
import tensorflow as tf
import time
import glob
import json
import csv
from PIL import Image
@TOSHISTATS
TOSHISTATS / Portfolio management by Genetic algorithm with mutations
Last active December 29, 2017 03:52
Portfolio management by Genetic algorithm with mutation
# 1.Import library
import time
import numpy as np
from numpy.random import *
seed(100)
# 2.Setting up the data
conv = np.array([(6,-5,4), (-5,17,-11),(4,-11,24)])
mu=np.array([8,12,15])
print(conv)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@TOSHISTATS
TOSHISTATS / Probability_of_default _model.ipynb
Created February 19, 2018 05:14
Probability of default model by Tensorflow&Keras
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.