- 博客(10)
- 收藏
- 关注
原创 sklearn使用StratifiedShuffleSplit分层抽样踩的坑
发现问题新手入坑机器学习,使用StratifiedShuffleSplit创建测试集时,一直报如下错误:ValueError: The least populated class in y has only 1 member, which is too few. The minimum number of groups for any class cannot be less than 2.踩坑代码import pandas as pdfrom sklearn.model_selection im
2020-08-13 16:59:53 8737 2
原创 scrapy学习笔记
文章目录基础安装简单的爬虫项目1. 创建新项目2. 创建爬虫模块3. 编写代码4. 开始爬虫5. 开始爬虫,并保存数据6. 深度爬取数据选择器css选择器xpath选择器工具使用1. scrapy shell2. 使用crawlspider入坑爬虫,学习scrapy查看官方文档时的一些笔记。基础安装scrapy官网建议使用虚拟环境,避免与其他库冲突。这里选用anaconda环境。conda install -c conda-forge scrapy简单的爬虫项目1. 创建新项目scrapy
2020-08-05 09:39:46 517
原创 python3.7 安装module 爬坑记
文章目录安装pycrypto安装cv2安装pycrypto升级Microsoft Visio C++官网下载地址 (不靠谱)百度云下载地址自定义安装需指定 common tools for visual c++ 2015, python tools for Visual Studio(March 2016), Microsoft web developer tools 等选项...
2020-04-08 22:25:41 366
原创 get到的python库
文章目录python实用库加解密 —— itsdangerouspython实用库加解密 —— itsdangerous将数据传递给第三方时,需要对数据进行加密,防止数据被篡改。比如给用户发送带有链接的邮件官方文档安装与更新pip install -U itsdangerous基本使用from itsdangerous import TimedJSONWebSignatureS...
2019-12-03 22:35:03 123
原创 ubuntu环境下mysql主从配置
文章目录主从配置同步现有数据服务器配置主节点配置 Ubuntu从节点配置 windows建立连接主从配置同步现有数据多台mysql服务器将主服务器中的数据同步到其他服务器中,保证现有数据相同 导出: mysqldump -u user -p password db_name --lock-all-tables > master_db.sql 导入: mysql -u us...
2019-01-26 15:39:39 196
原创 通过js获取视频长度
通过js获取视频长度借助于音、视频的duration属性获取时长基本选择框: <div class="form-group col-sm-12"> <label class="control-label">获取时长1。。。。</label> <input class="form-control" type="file"
2018-11-12 13:58:10 22692
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人