视频学习来源 https://www.bilibili.com/video/av40787141?from=search&seid=17003307842787199553 笔记 环境为 anaconda + python3.7 Keras 线性回归 import keras from keras.layers import Dense from keras.models import Sequential import numpy as np import matplotlib.pyplot…
参加比赛用到了keras,虽然之前用tensorflow,但是感觉tensorflow的确不太友好,api比较难读,然后就学习keras使用 随着深入,发现keras的api确实比较友好 跑了一些example和models: https://github.com/fchollet/keras 官网blog:Building powerful image classification models using very little data :从网络中提取特征和fine-tune网络,也有中文…
import numpy as npimport gzip import struct import keras as ks import logging from keras.layers import Dense, Activation, Flatten, Convolution2D from keras.utils import np_utils def read_data(label_url,image_url): with gzip.open(label_url) as flbl: m…