上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页
摘要: 创建张量 综述: 功能代码利用数组、列表对象创建张量tf.constant与tf.convert_to_tensor创建纯0 或纯 1 张量tf.zeros()和tf.ones()按照现有张量创建纯0 或纯 1 张量tf.zeros_like, tf.ones_like创建自定义纯数字张量tf.fi 阅读全文
posted @ 2020-08-21 15:13 kuanleung 阅读(54) 评论(0) 推荐(0)
摘要: 数据类型 tensorflow的基础是数据类型,依赖特有的函数进行创建,此部分介绍与演示创建最基础常用的数据类型 数值类型、 字符串类型和布尔类型 数值类型 标量 0,1,2,3,4,5 创建标量实例: import tensorflow as tf a = tf.constant(1.2) b = 阅读全文
posted @ 2020-08-21 13:54 kuanleung 阅读(49) 评论(0) 推荐(0)
摘要: 安装Tensorflow 自动安装: pip install tensorflow -i https://pypi.douban.com/simple 速度最快的镜像 https://pypi.tuna.tsinghua.edu.cn/simple 镜像站点汇总 https://blog.csdn. 阅读全文
posted @ 2020-08-20 18:19 kuanleung 阅读(8) 评论(0) 推荐(0)
摘要: tensorflow镜像地址: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/tensorflow/ 点击进入 tensorflow镜像站点 阅读全文
posted @ 2020-08-20 17:40 kuanleung 阅读(9) 评论(0) 推荐(0)
摘要: 一、站点 (一)企业站 网易:http://mirrors.163.com/搜狐:http://mirrors.sohu.com/(Ubuntu旧发行版同步被冻结,不同步Ubuntu新发行版,Ubuntu源同步正常)阿里云:http://mirrors.aliyun.com/(部分镜像同步延迟超过1 阅读全文
posted @ 2020-08-20 11:08 kuanleung 阅读(14) 评论(0) 推荐(0)
摘要: 基础 结语 爬虫基础部分资料更新与学习已经完成,有疑问的小伙伴可以留言或私聊我,下一步计划是学习与更新tensorflow的相关知识 阅读全文
posted @ 2020-08-20 10:48 kuanleung 阅读(10) 评论(0) 推荐(0)
摘要: import scrapy class LogSpider(scrapy.Spider): name = 'log' allowed_domains = ['sxt.cn'] # start_urls = ['http://sxt.cn/'] def start_requests(self): ur 阅读全文
posted @ 2020-08-15 11:24 kuanleung 阅读(11) 评论(0) 推荐(0)
摘要: http_ua.py import scrapy class HttpUaSpider(scrapy.Spider): name = 'http_ua' allowed_domains = ['http://httpbin.org/get'] start_urls = ['http://httpbi 阅读全文
posted @ 2020-08-11 14:09 kuanleung 阅读(9) 评论(0) 推荐(0)
摘要: scrapy genspider -t crawl zwr zedu.com import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule clas 阅读全文
posted @ 2020-08-11 11:22 kuanleung 阅读(5) 评论(0) 推荐(0)
摘要: 1. Scrapy-Request和Response(请求和响应) Scrapy的Request和Response对象用于爬网网站。 通常,Request对象在爬虫程序中生成并传递到系统,直到它们到达下载程序,后者执行请求并返回一个Response对象,该对象返回到发出请求的爬虫程序。 sequen 阅读全文
posted @ 2020-08-10 15:51 kuanleung 阅读(15) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页