码迷,mamicode.com
首页 >  
搜索关键字:count    ( 18169个结果
POJ 1005 - I Think I Need a Houseboat
POJ 1005 - I Think I Need a Houseboat Description Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process o ...
分类:其他好文   时间:2021-05-24 00:42:36    阅读次数:0
git clone 下载时报错: fatal: Out of memory, malloc failed
使用云服务器git clone某个项目时,遇到如下问题: fatal: Out of memory, malloc failed (tried to allocate 2000000000 bytes) 百度后找到如下解决方法: sudo mkdir -p /opt/temp sudo dd if= ...
分类:其他好文   时间:2021-05-24 00:26:08    阅读次数:0
RuntimeError: you must first build vocabulary before training the model
解决RuntimeError: you must first build vocabulary before training the model错误 查找解决方案,意思就是说你的数据集中的数量过少,解决方案有两种,扩大数据集的数量、另一个就是更改min_count的值例如:如果太少的话可以更改为 ...
分类:其他好文   时间:2021-05-23 23:49:16    阅读次数:0
自动 批量 发送工资条 到邮箱
from openpyxl import load_workbook import smtplib from email.mime.text import MIMEText # 邮件正文 from email.header import Header # 邮件头 # 加载excel 文件 wb = ...
分类:其他好文   时间:2021-05-04 16:06:39    阅读次数:0
决策树3:基尼指数--Gini index(CART)
pi表示在信息熵部分中有介绍,如下图中介绍 选择最小的那个0.3 #整个c4.5决策树的所有算法: import numpy as np import operator def creatDataSet(): """ outlook-> 0:sunny | 1:overcast | 2:rain t ...
分类:其他好文   时间:2021-05-03 12:13:28    阅读次数:0
Java 使用fastjson 获取嵌套json
前言 有时候调用API时,会出现嵌套json(Json数组)的情况,这时如果使用fastjson就可以很快的进行解析。 例子 { "status": "1", "info": "OK", "infocode": "10000", "count": "1", "geocodes": [ { "form ...
分类:编程语言   时间:2021-05-03 11:41:00    阅读次数:0
_循环嵌套、Random随机数、数组
一、循环嵌套 1. 下列代码的运行结果是( ) public static void main(String[] args){ int count = 0; for(int j = 0;j<3;j++) { for(int i = 0;i<6;i++) { count++; } } System.o ...
分类:编程语言   时间:2021-04-30 12:15:08    阅读次数:0
pyspark reduceByKey、groupByKey、groupBy、keyBy、subtractByKey 使用
reduceByKey、groupByKey rdd=sc. parallelize([("one",1),("two",1),("one",1),("one1",1)]) rdd. reduceByKey(lambda x,y:x). count() rdd1=sc. parallelize([( ...
分类:其他好文   时间:2021-04-29 12:20:10    阅读次数:0
python中返回列表中特定指定元素的所有索引
python中返回列表中指定元素的所有索引。 1、基本用法 >>> test1 ['aa', 'bb', 'aa', 'cc', 'aa', 'cc', 'dd', 'xx', 'bb'] >>> test1.index("aa") 0 2、返回所有索引 >>> test1 ['aa', 'bb', ...
分类:编程语言   时间:2021-04-29 12:10:59    阅读次数:0
django 第七弹
今日内容简介 聚合查询(聚合函数的使用)aggregate max、min、sum、count、avg 分组查询(group by的使用)annotate F与Q查询 django中如何开启事务 orm中常用字段及参数 数据库查询优化(only与defer、select_related与prefet ...
分类:其他好文   时间:2021-04-29 12:08:18    阅读次数:0
18169条   上一页 1 ... 8 9 10 11 12 ... 1817 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!