Coding
Simplicity_
这个作者很懒,什么都没留下…
展开
-
FFT & IFFT in python
Func1from __future__ import divisionimport numpy as npimport scipy.fftpack as fftpackimport matplotlib.pyplot as plt"""# Define signal.Fs = 128 # Sampling rate.Ts = 1 / Fs # Sampling interval.Time = np.arange(0, 10, Ts) # Time vector.signal =原创 2020-09-16 16:45:12 · 580 阅读 · 0 评论 -
笔记:C语言
1.在vs2015导入c的源码给c++调用参考https://blog.csdn.net/daniaokuye/article/details/788964562.error C4703: 使用了可能未初始化的本地指针变量“xxx”原因 开启了 “安全开发生命周期(SDL)检查”,如果勾选上这一项,那么他将严格按照SDL的规则编译代码,会有一些以前常用的函数无法通过编译。项目属性->配置属性->C/C+±>SDL检查,选择 否。...原创 2020-06-08 15:22:59 · 807 阅读 · 0 评论 -
BelgiumTS识别交通标志
import osimport randomimport skimage.dataimport skimage.transformimport matplotlibimport matplotlib.pyplot as pltimport numpy as npimport tensorflow as tfdef load_data(data_dir): """Loads a原创 2017-12-31 21:25:03 · 3145 阅读 · 0 评论 -
验证码识别
# encoding=utf-8import syssys.path.append('/home/henson/Documents/coding/bill/captcha_recognition')from captcha_recognition.recognition_img import distinguish_captchafrom PIL import Image,ImageDra原创 2017-11-01 20:00:48 · 318 阅读 · 2 评论 -
input tensor values 困惑
2: 3: 4: : 5: 6: 均为: img = img.resize((448, 448)) image = tf.reshape(image, [224, 224, 3])为什么得到是input tensor values会不一样呢?classes_num为奇数时为50176=224*224,偶数时为200704=448*448,,图片的resize和input存在着原创 2017-10-14 21:02:17 · 1679 阅读 · 18 评论 -
关于input to reshape is a tensor 的问题
for index, name in enumerate(classes): class_path = cwd + name +'/' for img_name in os.listdir(class_path): img_path = class_path + img_name # 每一个图片的地址 img = Image.open(img_path原创 2017-10-07 21:17:30 · 8084 阅读 · 12 评论 -
cnki__未解之谜
#!/usr/bin/python#encoding=utf-8__author__ = 'Administrator'from bs4 import BeautifulSoupfrom selenium.common.exceptions import NoSuchElementExceptionimport seleniumimport sysimport timeimpor原创 2017-09-02 20:47:24 · 329 阅读 · 0 评论 -
TFRecord预处理
我可能没有领悟带Input的reshape的真谛,应该怎么改成224*224*3??? How?原创 2017-09-27 20:53:43 · 337 阅读 · 0 评论 -
复习java6
package com.company;/** * Created by henson on 17-8-28. */public class Student extends Person{ String school; int score; void sayHello(Student another){ System.out.println("Hi");原创 2017-09-01 20:52:57 · 262 阅读 · 0 评论 -
fashion-mnist
import tensorflow as tffrom tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_setsimport tensorflow.examples.tutorials.mnist.input_data as input_datafashion=input_data.read_data_se原创 2017-09-10 20:24:24 · 1547 阅读 · 0 评论 -
复习java5
package com.company;/** * Created by henson on 17-8-31. */import java.sql.*;public class JdbcTest{ public static void main(String[] args){ try{ Class.forName("sun.jdbc.odbc.原创 2017-08-31 20:09:37 · 197 阅读 · 0 评论 -
初测vgg16
# coding: utf-8import matplotlib.pyplot as pltimport numpy as npimport tensorflow as tffrom six.moves import xrange# get_ipython().magic(u'matplotlib inline')train_dataset = np.load('/home/sys-04/原创 2017-09-23 21:08:34 · 326 阅读 · 0 评论 -
复习java4
package com.company;/** * Created by henson on 17-8-30. */public class Train { public static void main(String[] args){ /*Thread t1=new Thread(new Runner3(),"售票窗口1 : "); Thread t2原创 2017-08-30 20:42:15 · 307 阅读 · 0 评论 -
简版测试driver.get
from PIL import Imageimport seleniumimport sysimport timeimport reimport csvimport syssys.path.append('/home/henson/Documents/coding/bill/captcha_recognition')from captcha_recognition.recogni原创 2017-11-02 19:58:08 · 533 阅读 · 0 评论 -
mobileNet训练自己的样本
import matplotlib.pyplot as pltimport numpy as npimport tensorflow as tffrom six.moves import xrangeimport os#from datainput import read_and_decodefrom mobileNet import mobilenetfrom tf_test imp原创 2017-11-28 20:34:44 · 4329 阅读 · 0 评论 -
Paddle的场景文字识别 (STR, Scene Text Recognition)
import gzipimport osimport clickimport paddle.v2 as paddlefrom config import TrainerConfig as conffrom network_conf import Modelfrom reader import DataGeneratorfrom utils import get_file_list,...原创 2018-07-27 09:52:40 · 1839 阅读 · 0 评论 -
res_board 残差神经网络训练
#coding=utf-8import tensorflow as tfimport numpy as npimport pandas as pdimport osimport skimageimport skimage.dataimport randomimport residual_networkfrom dataset import randomizedef load_...原创 2018-05-18 18:42:42 · 516 阅读 · 0 评论 -
Hashmap笔记
import java.io.*;import java.util.HashMap;/** * Created by henson on 18-4-1. */public class Label { public void label(String path, String outpath){ try { BufferedReader b...原创 2018-04-02 20:29:13 · 154 阅读 · 0 评论 -
简单神经网络预测结构化数据关系___训练集(调参实验)
# coding: utf-8import tensorflow as tffrom sklearn.datasets import load_bostonimport matplotlib.pyplot as pltfrom sklearn.preprocessing import scalefrom sklearn.model_selection import train_test_...原创 2018-03-21 20:06:32 · 856 阅读 · 4 评论 -
对原始数据进行采样过滤
# coding: utf-8import randomimport timeimport csvimport tensorflow as tfimport matplotlib.pyplot as pltfrom sklearn.preprocessing import scalefrom sklearn.model_selection import train_test_spli...原创 2018-03-11 10:35:03 · 1369 阅读 · 0 评论 -
简单神经网络预测结构化数据关系
# coding: utf-8import randomimport tensorflow as tffrom sklearn.datasets import load_bostonimport matplotlib.pyplot as pltfrom sklearn.preprocessing import scalefrom sklearn.model_selection imp原创 2018-01-19 19:12:56 · 873 阅读 · 0 评论 -
简单神经网络预测结构化数据关系___测试集(改良)
# coding: utf-8import randomimport csvimport tensorflow as tfimport matplotlib.pyplot as pltfrom sklearn.preprocessing import scalefrom sklearn.model_selection import train_test_splitfrom sklea原创 2018-01-25 18:08:24 · 711 阅读 · 0 评论 -
简单神经网络预测结构化数据关系___训练集(1)
# coding: utf-8import tensorflow as tffrom sklearn.datasets import load_bostonimport matplotlib.pyplot as pltfrom sklearn.preprocessing import scalefrom sklearn.model_selection import train_test_原创 2018-01-25 17:54:58 · 663 阅读 · 0 评论 -
原始数据的筛选(一)
raw_data.py# coding: utf-8import randomimport csvimport tensorflow as tfimport matplotlib.pyplot as pltfrom sklearn.preprocessing import scalefrom sklearn.model_selection import train_test_spl原创 2018-01-25 17:33:19 · 441 阅读 · 0 评论 -
简单神经网络预测结构化数据关系___测试集(1)
# coding: utf-8import randomimport csvimport tensorflow as tffrom sklearn.datasets import load_bostonimport matplotlib.pyplot as pltfrom sklearn.preprocessing import scalefrom sklearn.model_sel原创 2018-01-21 10:21:01 · 500 阅读 · 0 评论 -
复习java3
package com.company;import java.util.Stack;/** * Created by henson on 17-8-29. */public class Stacks { static String[] months={"Jan","Febr","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov"原创 2017-08-29 20:31:24 · 237 阅读 · 0 评论 -
将原始图片转换成TFRecord文件
# -*-coding = utf-8 -*-from __future__ import absolute_import,division,print_functionimport numpy as npimport tensorflow as tfimport timefrom os import walkfrom os.path import joinfrom scipy.misc原创 2017-09-14 20:06:08 · 1282 阅读 · 0 评论 -
复习java_2
package com.company;public class Arraytest{ public static void main(String args[]) { char str1[] = {'j', 'a', 'v', 'a'}; char str2[] = new char[4]; //str2=str1; Syst原创 2017-08-28 20:32:40 · 259 阅读 · 0 评论 -
爬虫之旅(三)
!/usr/bin/python#encoding=utf-8__author__ = 'Administrator'from bs4 import BeautifulSoupimport seleniumimport sysimport urllibimport requestsimport timeimport reif __name__ == "__main__":原创 2017-07-24 20:31:16 · 280 阅读 · 0 评论 -
爬虫之旅(二)
#!/usr/bin/python#encoding=utf-8__author__ = 'Administrator'from bs4 import BeautifulSoupimport seleniumimport sysimport urllibimport requestsimport reif __name__ == "__main__": import os原创 2017-07-23 19:57:09 · 301 阅读 · 0 评论 -
爬虫之旅(一)
#!/usr/bin/python#encoding=utf-8__author__ = 'Administrator'import seleniumimport sysimport urllibimport requestsimport reif __name__ == "__main__": import os from selenium import webdriv原创 2017-07-21 18:32:50 · 357 阅读 · 0 评论 -
Couldn't deal with it,bug!!!
HOW TO FIX IT!原创 2017-07-16 19:42:00 · 238 阅读 · 0 评论 -
CNN_CT
#coding:utf-8import tensorflow as tfimport numpy as np#导入数据train_dataset=np.load('train_dataset.npy')train_labels=np.load('train_labels.npy')test_dataset=np.load('test_dataset.npy')test_labels=n原创 2017-07-18 08:57:20 · 828 阅读 · 0 评论 -
tensorflow学习之cifar_10模型评估
# -*- coding: utf-8 -*-import new_cifar10import tensorflow as tfimport timeimport datetimeFLAGS=tf.app.flags.FLAGStf.app.flags.DEFINE_string('eval_dir','/tmp/cifar10_eval',"""Directory where to w原创 2017-07-15 19:18:33 · 995 阅读 · 0 评论 -
tensorflow 学习之 cifar_10 模型定义(补)
# -*- coding: utf-8 -*-import osimport tensorflow as tfimport new_cifar10_inputimport sysimport tarfileimport urllibFLAGS=tf.app.flags.FLAGS #解析命令行传递的参数#设置模型参数tf.app.flags.DEFINE_integer('b原创 2017-07-13 19:33:55 · 1098 阅读 · 0 评论 -
tensorflow 学习之 cifar_10 模型定义
# -*- coding: utf-8 -*-import osimport tensorflow as tfimport new_cifar10_inputFLAGS=tf.app.flags.FLAGS #解析命令行传递的参数#设置模型参数tf.app.flags.DEFINE_integer('batch_size',128,"""Number of images to pr原创 2017-07-12 21:07:46 · 573 阅读 · 0 评论 -
MNIST_cnn
# -*- coding: utf-8 -*-import tensorflow as tffrom tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_setsimport tensorflow.examples.tutorials.mnist.input_data as input_datamnist=in原创 2017-07-10 21:12:50 · 421 阅读 · 0 评论 -
知网__
#!/usr/bin/python#encoding=utf-8__author__ = 'Administrator'from bs4 import BeautifulSoupimport seleniumimport sysimport urllibimport requestsimport timeimport reif __name__ == "__main__":原创 2017-08-15 21:17:52 · 601 阅读 · 0 评论 -
知网抓取失败案例
#!/usr/bin/python#encoding=utf-8__author__ = 'Administrator'from bs4 import BeautifulSoupimport seleniumimport sysimport urllibimport requestsimport timeimport reif __name__ == "__main__":原创 2017-08-02 20:44:06 · 3061 阅读 · 0 评论 -
爬虫之旅(四)
#!/usr/bin/python#encoding=utf-8__author__ = 'Administrator'from bs4 import BeautifulSoupimport seleniumimport sysimport urllibimport requestsimport timeimport reif __name__ == "__main__":原创 2017-07-25 20:19:15 · 228 阅读 · 0 评论