摘要: 这是我最近看到的面试题,想自己写一下试试,真学渣。我只是把简单功能实现了,希望大家教教我怎么可以把命名以及结构规范化起来。 1. 给定两个字符串a和b(长度超过100w),在字符类型上b是a的子集,求b在a字符类型上的补集;(本题我认为应该可以忽略对于输入的判断) a='abcdefgcdeh' b 阅读全文
posted @ 2020-01-08 21:56 import_Hyq 阅读(802) 评论(0) 推荐(0)
摘要: 因为需要系统的使用一下python中的OpenCV库,所以这里也给大家一个使用过程吧。 新手可以对着打一遍,对自己会有好处的。 1.安装cv2 一般使用pip install cv2即可。 2.读入图片 函数:img=cv2.imread(filepath,flag) -filepath:读入图片路 阅读全文
posted @ 2020-01-07 13:00 import_Hyq 阅读(3200) 评论(0) 推荐(0)
摘要: 李宏毅老师的课件: http://speech.ee.ntu.edu.tw/~tlkagk/courses/MLDS_2018/Lecture/ForDeep.pdf B站的课件讲解: https://www.bilibili.com/video/av9770302/?p=11 大部分内容转载于用户 阅读全文
posted @ 2019-12-27 13:18 import_Hyq 阅读(1572) 评论(0) 推荐(0)
摘要: 什么是fine-tuning?简单举一个本人的例子来说明 我有两种类型的数据集,一种命名为style1,另一种为style2,两种数据集类型(也就是label)一致,但是数据却采集于不同的地方,比如佛经的手写文字和《黄帝内经》的手写文字。现在我基于style1的数据集上训练出一个识别模型,然后用这个 阅读全文
posted @ 2019-12-23 17:16 import_Hyq 阅读(1055) 评论(0) 推荐(0)
摘要: 1 from PIL import Image 2 import os 3 import cv2 4 import numpy as np 5 6 def rotation(root_path, img_name): 7 pilim = Image.open(os.path.join(root_pa 阅读全文
posted @ 2019-12-23 12:58 import_Hyq 阅读(1530) 评论(0) 推荐(0)
摘要: 1 #读取表格内容 2 import xlrd 3 wb = xlrd.open_workbook(filename=file)#打开文件 4 sheet_names = wb.sheet_names() #读取文件名称 5 Sheet=wb.sheet_by_index(i) #i为表格文件中表的 阅读全文
posted @ 2019-12-23 12:45 import_Hyq 阅读(1220) 评论(0) 推荐(0)