<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Le___Le的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Le___Le</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Le___Le]]></copyright><item><title><![CDATA[字节跳动 - 今日头条 - 后端实习生 - 急招]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/130953281</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/130953281</guid><author>Le___Le</author><pubDate>Tue, 30 May 2023 17:27:09 +0800</pubDate><description><![CDATA[https://bytedance.feishu.cn/docx/G5yndZmbLo8Mr1xkhpwcoBSqnJf]]></description><category></category></item><item><title><![CDATA[Pandas数据视图 — groupby 和 pivot]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/121749580</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/121749580</guid><author>Le___Le</author><pubDate>Mon, 06 Dec 2021 16:38:29 +0800</pubDate><description><![CDATA[Groupby


	作用
	
根据某一个或某一组属性聚合 DataFrame，返回 SeriesGroupBy 或者 DataFrameGroupBy 对象。通常对聚合后的某一列数据数据进行 max(), min(), sum(), mean() 等操作，从而得到新的 Series 或者 DataFrame. 如下图所示：


	数据
	

covid_data.head()
"""
    date	    area	        cumulative_cases

0	2020-12-08	Ea..]]></description><category></category></item><item><title><![CDATA[Python 字符串中的双括号]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/121643628</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/121643628</guid><author>Le___Le</author><pubDate>Tue, 30 Nov 2021 21:53:22 +0800</pubDate><description><![CDATA[variable = 1

print('{}')
# output: {}

print('{{}}')
# output: {{}}

print(f'{{}}')
# output: {}

print(f'{variable}')
# output: 1

print(f'{{variable}}')
# output: {variable}

print('{}'.format(variable))
# output: 1

print('{{}}'.format(variable))
# ou.]]></description><category></category></item><item><title><![CDATA[Python - Conda 创建环境]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/120639188</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/120639188</guid><author>Le___Le</author><pubDate>Thu, 07 Oct 2021 18:10:49 +0800</pubDate><description><![CDATA[查看已有环境

conda env list

创建/删除新环境

conda create -n env_name python=x.x
conda remove -n env_name --all

激活/停止环境

activate env_name
deactivate

添加/删除安装包

conda/pip install package_name
conda/pip uninstall package_name

如果我的陈述存在疏漏还请不吝赐教，感激不尽！
如果觉得有用就请点个赞吧，创作动力]]></description><category></category></item><item><title><![CDATA[Python requests.post 发送一张或一组 image or a list of images]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/118320493</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/118320493</guid><author>Le___Le</author><pubDate>Tue, 29 Jun 2021 05:15:48 +0800</pubDate><description><![CDATA[1. 发送单张图片文件


r = requests.post(url, files=[('file', img_jpg)])
print(r, r.text)

2. 发送一组图片文件


r = requests.post(url, files=[('file', queue[0]), ('file', queue[1])])

注：一般情况下发送单张图片就可以解决问题，毕竟接收端可以存储之前发送的图片，没有必要一次性都发送

如果我的陈述存在疏漏还请不吝赐教，感激不尽！
如果觉得有用就请点个赞吧，创作]]></description><category></category></item><item><title><![CDATA[cv2 和 PIL.Image 操作 RGB 和 BGR]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/118320231</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/118320231</guid><author>Le___Le</author><pubDate>Tue, 29 Jun 2021 05:06:56 +0800</pubDate><description><![CDATA[1. 两者对比（假设原图像RGB）

Step1
			cv2.imread
			RGB -&gt; BGR
		Step2
			cv2.imencode
			BGR -&gt; RGB bytes
		Step3
			cv2.imdecode
			RGB bytes -&gt; BGR
		   cv2.VideoCapture(0).read() 读取 BGR 图像
	PIL.Image 操作过程中不改变 Red 和 Blue 的位置
2. cv2操作 BGR 和 R...]]></description><category></category></item><item><title><![CDATA[Conda 通过 yml/yaml]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/118230570</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/118230570</guid><author>Le___Le</author><pubDate>Sat, 26 Jun 2021 00:04:20 +0800</pubDate><description><![CDATA[1. 导出环境到 yaml 文件


conda env export &gt; environment.yaml

文件内容示例


name: kyle

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
  - https://repo.anaconda.com/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/m..]]></description><category></category></item><item><title><![CDATA[为什么机器学习里的图像分类总不能达到百分百，而人脑却可以？]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/116756093</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/116756093</guid><author>Le___Le</author><pubDate>Thu, 13 May 2021 16:44:21 +0800</pubDate><description><![CDATA[原因： 人脑可以想象，当我们被给了第一张猫的照片，就可以想象出它转过身是什么样，另一面是什么样。但是机器学习却做不到，他只能成功分类这一张照片或者极其相似的照片。
解决： 结合图像生成任务，把它当作人脑的想象，在分类一张图片的时候尽可能多的生成不同角度的照片。如此分类的话就不会只把原来的照片当做唯一的基准了。

...]]></description><category></category></item><item><title><![CDATA[seaborn.heatmap 倒序坐标轴]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/114667415</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/114667415</guid><author>Le___Le</author><pubDate>Thu, 11 Mar 2021 15:11:55 +0800</pubDate><description><![CDATA[问题： 如何改变seaborn的heatmap坐标轴顺序
解决办法：
ax = sns.heatmap(dist).invert_yaxis()
plt.show()



如果我的陈述存在疏漏还请不吝赐教，感激不尽！
如果觉得有用就请点个赞吧，创作动力！

]]></description><category></category></item><item><title><![CDATA[Why to choose Computer Vision]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/113541353</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/113541353</guid><author>Le___Le</author><pubDate>Tue, 02 Feb 2021 10:28:09 +0800</pubDate><description><![CDATA[Vision is the most important perception.
With sound and bralliant Computer Vision that much much better than human brains, with sound and bralliant telescope that much much better than human eyes, then, nothing is impossible.

]]></description><category></category></item><item><title><![CDATA[Github 无法显示markdown图片]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/112347610</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/112347610</guid><author>Le___Le</author><pubDate>Fri, 08 Jan 2021 11:17:04 +0800</pubDate><description><![CDATA[问题： 上传 md 文件到 Github 图片无法显示，引用格式为 ‘![Title](./images/Title.png’。
同时Github 上 F12 显示

raw.githubusercontent.com/kyle-cloud/kaggle/master/projects/titanic/images/head.png:1 Failed to load resource: net::ERR_EMPTY_RESPONSE

但是右键查看图片显示链接地址为

https://github.com/]]></description><category></category></item><item><title><![CDATA[keras 使用单个或多个GPU训练模型（已经不需要自己设置了，会自动检测环境）]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/110672347</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/110672347</guid><author>Le___Le</author><pubDate>Fri, 04 Dec 2020 20:28:44 +0800</pubDate><description><![CDATA[问题： keras 使用单个或多个GPU训练模型
解决办法：


单个GPU：直接设置环境
import os
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0" # 指定GPU编号

def get_model():
	# input_ids = keras.layers.Input(shape=(MAXLEN, ))...
	#_, x = bert_model([input_ids, attension_mask, token_type_ids])
	]]></description><category></category></item><item><title><![CDATA[VSCode连接不到扩展商店]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/108762208</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/108762208</guid><author>Le___Le</author><pubDate>Wed, 23 Sep 2020 21:36:08 +0800</pubDate><description><![CDATA[问题： VScode显示连接不到扩展商店
解决办法： 修改设置里的Proxy代理url, 空着 或者 http://127.0.0.1:8080 互换一下，然后刷新（切换回扩展）一下，就可以了

如果觉得有用的话就点个赞吧，创作动力！

...]]></description><category></category></item><item><title><![CDATA[托福TOEFL、雅思IELS、PearsonPTE备考之路]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/107357877</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/107357877</guid><author>Le___Le</author><pubDate>Wed, 15 Jul 2020 13:17:50 +0800</pubDate><description><![CDATA[今年准备去英国留学，由于各种原因，我先后备考过这三门语言考试，美国的，英国的，还有澳洲的。在这里也是想记录一下自己的学习过程以及心得吧，我尽量简单写，希望可以给大家提供一个思路，在考试选择和备考上。

1. 托福

托福我觉得最难的是听力和记笔记的能力

原因 a.口语需要复述听力内容 b. 听力内容长，无停顿，学术讲座专业词汇好准备但确实比较多

所以需要在听对话或讲座的同时记录下关键信息，并且要保证在口语环节自己可以连词成句保证流利度，也要在听力环节可以想起文段对应的主要内容。因此，在备考过程中应该投入]]></description><category></category></item><item><title><![CDATA[VScode中的python或Anaconda与本地不同步问题]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/106211215</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/106211215</guid><author>Le___Le</author><pubDate>Tue, 19 May 2020 11:45:04 +0800</pubDate><description><![CDATA[问题： 在本地成功安装包（如 tensorflow）之后，VScode中却不能使用。可是如果在VScode中新建的终端里是可以运行的，与本地 cmd 无异。
解决方法： 重启电脑，可能重启VScode也可以。

]]></description><category></category></item><item><title><![CDATA[Scikit_learn错误：ModuleNotFoundError: No module named ‘sklearn.cross_validation‘]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/105079268</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/105079268</guid><author>Le___Le</author><pubDate>Tue, 24 Mar 2020 19:40:15 +0800</pubDate><description><![CDATA[报错：ModuleNotFoundError: No module named 'sklearn.cross_validation'



解决：


from sklearn.cross_validation import ***

## 换成

from sklearn.model_selection import ***



原因：当前 sklearn 版本中 cross_val...]]></description><category></category></item><item><title><![CDATA[VSCode上传本地项目到github]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/103585617</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/103585617</guid><author>Le___Le</author><pubDate>Sat, 14 Mar 2020 19:08:03 +0800</pubDate><description><![CDATA[等我下次创建项目再说吧
]]></description><category></category></item><item><title><![CDATA[JSON-JAVA 报错：java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeExce]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/104505146</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/104505146</guid><author>Le___Le</author><pubDate>Tue, 25 Feb 2020 21:00:01 +0800</pubDate><description><![CDATA[原因：

遇到这种问题是因为jar包不全



解决：下载并导入相应jar包

commons-beanutils-1.8.3.jar
commons-lang-2.5.jar
ezmorph-1.0.6.jar
json-lib-2.3-jdk15.jar

可以看一下报错内容里的包，是否在这些目录里，在继续导入





注意：lang3.jar 包 和 lang.jar 包 ...]]></description><category></category></item><item><title><![CDATA[Eclipse 上传项目到 Github]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/103936830</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/103936830</guid><author>Le___Le</author><pubDate>Sat, 11 Jan 2020 15:19:32 +0800</pubDate><description><![CDATA[步骤：

1. GitHub 创建仓库







2. eclipse 新建项目







3. eclipse 添加 Git 账号（github 用户名和邮箱）







4. eclipse 共享此项目









5. eclipse 上传项目到 GitHub （有可能得先从 GitHub pull 下来 readme 文件，再 push）







...]]></description><category></category></item><item><title><![CDATA[Python3 报错：TypeError: ‘range‘ object doesn‘t support item deletion]]></title><link>https://blog.youkuaiyun.com/Le___Le/article/details/103662864</link><guid>https://blog.youkuaiyun.com/Le___Le/article/details/103662864</guid><author>Le___Le</author><pubDate>Mon, 23 Dec 2019 11:44:18 +0800</pubDate><description><![CDATA[报错：TypeError: 'range' object doesn't support item deletion



解决：转为trainSet=list(range(50)) 即可


]]></description><category></category></item></channel></rss>