会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大狗的技术狗窝
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
8
下一页
2024年5月9日
安装PyTorch_1
摘要: pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple pip install torch torchvision torchaudio -i https://mirrors.tencent.com/pypi/
阅读全文
posted @ 2024-05-09 02:13 bigdog
阅读(40)
评论(0)
推荐(0)
2023年3月22日
Pandas上的Dataframe求差集
摘要: df2 = df2[["name", "class"]] df = df[["name", "class"]] #df-df2 df_diff = pd.concat([df,df2]) df_diff = df_diff.drop_duplicates(keep=False) print(df_d
阅读全文
posted @ 2023-03-22 17:53 bigdog
阅读(41)
评论(0)
推荐(0)
2022年6月13日
Linux 下安装NLTK的过程
摘要: 1. 使用虚拟机安装Linux 2. 使用Miniananconda安装Python 下载地址:https://docs.conda.io/en/latest/miniconda.html#linux-installers 执行命令: bash /root/Miniconda3-latest-Lin
阅读全文
posted @ 2022-06-13 15:11 bigdog
阅读(731)
评论(0)
推荐(0)
2021年9月14日
Python函数返回多结果
摘要: def GetMangReturn(): l1=["a","b"] l2=["1","2"] l3={} l3["t1"]="89" l3["t2"]="92" return (l1,l2,l3) r = GetMangReturn()print(r)print(r[2])print(type(r[
阅读全文
posted @ 2021-09-14 14:37 bigdog
阅读(64)
评论(0)
推荐(0)
2021年8月25日
Pandas下的Dataframe如何实现多条件筛选
摘要: df = cache.GetCache_Student()result = df.loc[(df.sex=='M') & (df.LEAVE_DATE.isnull())] #性别为男且在校的学生result = df.loc[(df.sex=='M') & (~df.LEAVE_DATE.isnu
阅读全文
posted @ 2021-08-25 17:13 bigdog
阅读(1251)
评论(0)
推荐(0)
2021年4月9日
将英文缩写扩展成正常英文的方法
摘要: import re class RegexpReplacer(object): def __init__(self): self.patterns = [ (r"won\'t", "will not"), (r"can\'t", "can not"), (r"n\'t", " not"), (r"\
阅读全文
posted @ 2021-04-09 12:01 bigdog
阅读(162)
评论(0)
推荐(0)
2020年8月3日
如何安装pytorch
摘要: 1. 准备个Linux环境 2.上官网上自己配出一个 安装命令来 https://pytorch.org/get-started/locally/#mac-anaconda 最后得到安装命令: pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -
阅读全文
posted @ 2020-08-03 17:47 bigdog
阅读(1557)
评论(0)
推荐(0)
2020年7月28日
Selenium 获取Select元素的选中值
摘要: 1 url="https://www.baidu.com" 2 driver = webdriver.Chrome() 3 driver.get(url) 4 xpath="" #Select元素的Xpath串 5 ele_sel = driver.find_element_by_xpath(xpa
阅读全文
posted @ 2020-07-28 15:37 bigdog
阅读(3129)
评论(0)
推荐(0)
2020年6月23日
安装MxNet
摘要: 1.安装必要软件 apt-get update && apt-get install -y build-essential git libgfortran3 apt-get install -y vim git openssh-server # 安装 vim git ssh远程登录 apt-get
阅读全文
posted @ 2020-06-23 17:11 bigdog
阅读(889)
评论(0)
推荐(0)
Docker 的日常
摘要: 1. 配置镜像加速器 针对Docker客户端版本大于 1.10.0 的用户 您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器 sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EO
阅读全文
posted @ 2020-06-23 16:59 bigdog
阅读(121)
评论(0)
推荐(0)
1
2
3
4
5
···
8
下一页
公告