自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 收藏
  • 关注

原创 MindSpore之Faster_rcnn

前一阵子参加了华为的多目标检测比赛 link,尝试通过 faster_rcnn 算法定位和分类病理图像中的癌细胞。MindSpore 是华为的 AI 框架,支持华为自研的Ascend芯片。MindSpore目前不支持macOS,不过组织方提供了华为云作为训练平台。以下将分享使用mindspore及华为云的经验。Notebook首先可以从mindspore官方的 gitee 上下载faster_rcnn模型, 注意原先的model_zoo已经被移至model 仓库,同时还可以这里 link 下载在im

2021-10-24 13:32:06 602

原创 Django简易

重要命令:1. django-admin startproject mysite2. cd .\mysite3. code . #开启vscode4. python manage.py startapp myapp5. #in mysite.setting: INSTALLED_APPS = [ 'myapp', ]6. python manage.py migrate7. python manage.py runserver详细教程:Django 框架快速入门视频讲解:

2021-04-18 00:11:32 156 1

原创 Pytorch使用

训练#genericclass LayerLinearRegression(nn.Module): def __init__(self): super().__init__() # Instead of our custom parameters, we use a Linear layer with single input and single output self.linear = nn.Linear(1, 1) .

2021-04-13 19:30:30 356

原创 数据预处理:pandas的使用和cv2初步

#读取文件夹里的所有文件名filenames = os.listdir("../input/train/train")#创建对应的分类categories = []for filename in filenames: category = filename.split('.')[0] if category == 'dog': categories.append(1) else: categories.append(0)#创建datafram

2021-04-09 11:40:41 211

原创 tensorflow ImageDataGenerator的使用

docslink

2021-04-09 10:49:34 386

原创 django静态文件的引入方法

Link1

2021-04-08 20:40:51 172

原创 笔记_Prognosis_week4

一. Survival(S) and hazard function(λ)the definitionthe formula and curve of the survial to hazard functionthe formula and curve of the hazard to survial functionCumulative Hazarda) the formula and definition求和代表离散时间,积分代表连续时间b) the curve

2021-04-08 20:28:32 116

原创 tensorflow (gpu)安装报错

各种报错的解决

2021-04-08 20:09:05 452

原创 交叉验证:cross validation

cross validation的目的:进行调参注意: cross validation的目的不是训练神经网络如何做(以最简单的为例)|1. 划分trainning set,test set, test set 不要动(仅用于最后评估参数)|2. 设置grid:选择多组参数,接下来对每组参数重复以下步骤|>>>>2.1. 把trainning set分成5份, 重复5次以下步骤|>>>>>>>2.1.1. 拿出一份作为valid.

2021-04-07 11:01:55 343

原创 OS module的简单使用, numpy保存文件, (zip,map,lambda)的使用

获取的都是当前脚本所在的dir2目录 linkos.path.dirname(os.path.realpath(__file__))

2021-03-05 23:01:19 168

原创 tqdm和pickle的使用,datetime和time的使用,SimpleNamespace和glob的使用

参考:使用python常用的一些技巧1.如何使用.运算符访问字典types.SimpleNamespace()>> from types import SimpleNamespace>>> d = {'a': 1, 'b':2}>>> sn = SimpleNamespace(**d) # 这里的**不可以少,表示命名关键字参数>>> sn #namespace(a=1, b=2)>>> sn.a #

2021-02-18 15:45:19 333 2

原创 pytorch的安装报错

官网查到是这两条指令pip install torch torchvision torchaudioconda install pytorch torchvision torchaudio -c pytorch失败过程官网下载太慢 失败使用镜像 镜像源没有torchaudio 失败尝试其他方法继续报错注意:“-c pytorch”指定了从pytorch官网下载,如果要使用镜像源,需要删掉-c pytorch解决:使用镜像conda install pytorch torchvi

2021-02-18 14:52:16 226

原创 conda的基本使用

conda与虚拟环境创建新的环境 创建名为 test 的环境,使用的 python 版本为 python3:conda create -n test python=3conda create --name myclone --clone myenv 克隆环境conda activate test (填写你的env_name) 进入创建的虚拟环境conda deactivate 退出创建的虚拟环境conda常用命令//查看已有的 conda 环境,包括环境的名字和其对应的目录。conda e

2021-02-18 14:43:08 294

原创 argparse模块

基础demo.py文件import argparseparser = argparse.ArgumentParser(description='命令行中传入一个姓名')#type是要传入的参数的数据类型 help是该参数的提示信息parser.add_argument('name', type=str, help='姓名')args = parser.parse_args()#获得传入的参数print(args)#print命令行:python demo.py -h #提示信息

2021-02-18 14:04:19 117

原创 Apply GANs week3

Unpaired Image-to-Image TranslationWhy is unpaired image-to-image translation different than paired image-to-image translation?There is no longer a clear target output.Correct! WIth unpaired image-to-image translation, you can just have a pile of image

2020-10-29 11:29:49 110

原创 Apply GANs week2

Image-to-Image TranslationWhat is paired translation?When you have corresponding input-output images that you can gather training data for.Correct! Paired translation means that you have input-output pairs that map exactly onto each other (1-to-1).Pa

2020-10-29 11:28:24 132

原创 Build Basic GANs week4

How does the generator learn what class to generate?The discriminator is checking if an image looks real or fake based on (conditioned on) a certain class.Correct! The discriminator also receives the class label and will classify the images based on if

2020-10-25 16:02:41 116

原创 Build Basic GANs week3

Mode CollapseWhy can mode collapse occur?The generator gets stuck in a local minimum.Correct! Mode collapse occurs when the generator gets stuck generating one mode. The discriminator will eventually learn todifferentiate the generator’s fakes when th

2020-10-25 15:20:46 144

原创 Coursera Deep learning 复习

CNNSequence Model:Week 1:Assignment 1: RNN和LSTM模型的 foward propagation (tensorflow)Assignment 2: Clip, Sample和完整LSTM 模型(tensorflow)Assignment 2: Single LSTM step和预测模型 (Keras)Week 2:Assignment 1: 相似度和中性化Assignment 2: 简单的情感分类模型和使用LSTM layer的情感分类.

2020-08-27 14:43:07 152

原创 笔记_Prognosis_week3

Survival Estimate function on the whole population一. Survival Model featurea) Decreasing survive possibility as time goes on. b) Start at 1 and end at 0.二. Censoring (实验终止)Right censoring: the timed the event is only known to exceed acertain value(18

2020-08-11 17:29:02 143

原创 笔记_Prognosis_week2

一. Tree-based modela) Decision treeDecision tree boundaries are always vertical or horizontal.Decision trees can model nonlinear associations. Notice how they’reable to capture here that the risk is low when both age and BP arelow.The step of buildi

2020-08-11 11:11:55 162

原创 笔记_Prognosis_week 1

一. prognosis的作用和在医学领域的应用案例intercept:interaction termWithout interaction terms, the effect of the two variables, blood pressure and age is independent. Whether you are young or whether you are old, blood pressure is affecting risk the same. As blood pr

2020-08-05 22:41:33 170

原创 笔记_diagnosis_week 1

一. 机器学习应用在medicine上成功案例1.Dermatologist-level classification of skin cancer with deep neural networks2.Fundus photograph-based deep learning algorithms in detecting diabetic retinopathy3.Impact of Deep Learning Assistance on the Histopathologic Review o

2020-08-03 22:11:54 184

原创 python-docx高亮单词

最近在读经济学人,阅读的时候遇到不认识的单词不想停下来查词典,我寻思如果这些单词的中文解释自动标注在旁边就好了。之前我已经做了个小工具(link),阅读的时候运行程序不断读取剪切板里的英文单词,并生成对应的中文解释,但是我无法在手机上使用程序。为了解决这个问题,我需要利用计算机将文章里我可能不认识的单词自动翻译并标注,这样省去了手机上阅读时的查询过程,从而实现流畅阅读。代码思路1.以雅思词库(7600)作为我认识的词汇,创建excel文件word_list(将来会将更多单词写入文件,并利用excel排

2020-06-30 09:34:11 1205 1

原创 拼图游戏

拼图游戏<!doctype html><html><head><title>拼图游戏</title><style type="text/css">body > div { margin: auto; border: 1px solid gold; padding: 5%;}.box { ...

2019-12-27 23:04:10 485

原创 JavaScript自动播放选项卡

视频 link<!DOCTYPE html><html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> <style media="screen"> #commentary{ ma...

2019-12-27 22:49:29 207

原创 CSS分栏的实现;鼠标滑过时显示内容,鼠标移开时隐藏的实现

#navigation{ background-color:#FFDFFF; width:30%; } #pageContent{ background-color:#CEFFFF; margin-left:30%; }<div id="navigation"> <ol> &...

2019-12-27 22:45:55 691

原创 HTML学习:float实现分栏,表单的固定格式和iframe使用的演示

1.用float实现多个页面<div id="main-container"> <div id="left-column"></div> <div id="right-column"></div></div><div id="footer"></div>2.规范的表单格式<f...

2019-12-27 22:34:48 652

原创 小白的安装win10,ubuntu双系统之路

工具U盘,Ubuntu,Rufus下载地址刻录下载https://rufus.ie/创建Ubuntu分区bios刻录acer快速点按F2,设置从磁盘启动按提示操作,选择共存link开机遇到的问题及解决进入控制台安装输入法和其他应用界面美化工作仿Mac OS link...

2019-12-27 22:22:29 517

原创 python自动化英语查词

先演示最终的成果,我的查词神器前一阵子在看Automate the Boring Stuff with Python,读英语文章时会碰到不认识的单词,需要复制英文,查询对应的中文解释。再把英文及中文解释复制到文章的右边方便查阅,如此重复很多次,相当烦人。就想试着用python实现按住Crtl+C,然后自动在记事本中生成对应的单词和意思,省去复制黏贴的繁琐无意义劳动。现在是搭建程序的全过程...

2019-12-27 13:11:20 1665

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除