- 博客(26)
- 收藏
- 关注
原创 FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated
原因:当前,Pandas 在处理 object 类型数组(通常是字符串类型)时,fillna()、ffill() 和 bfill() 等方法会自动将 object 类型数组向下转换为更具体的类型,比如布尔型、整数型或浮点型。这种自动类型转换可能会在未来版本中被移除,导致不同的行为。
2024-09-01 15:46:36
2747
原创 Edge浏览器鼠标滚轮过于灵敏/速度过快解决方法
使用Edge浏览器时鼠标滚轮过于灵敏,导致翻页速度过快,使用Chrome浏览器时则没有这种现象。
2023-08-26 09:41:35
6006
2
原创 Repo id must use alphanumeric chars or ‘-‘, ‘_‘, ‘.‘, ‘--‘ and ‘..‘ are forbidden, ‘-‘ and ‘.‘ canno
虽然该错误说的是Repo ID必须使用字母数字字符或者'-'、'_'、'...',禁止使用'--'和'...','-'和'...'不能作为名称的开始或结束,但也。Repo ID必须使用字母数字字符或者'-'、'_'、'...',禁止使用'--'和'...','-'和'...'不能作为名称的开始或结束,最大长度为96。
2023-07-13 11:34:31
12231
原创 win11 任务栏图标重叠/混乱/异常/闪烁/乱动 解决方法
问题:Windows11系统任务栏图标异常,图标位置变了而且重叠在一起,有时候会乱跳,如下图所示。
2023-07-12 13:36:54
48545
21
原创 单机游戏出现 D3D Compiler Module can‘t be found 解决方法
问题:运行单机游戏时出现 D3D Compiler Module can't be found。
2023-07-07 11:11:14
367
1
原创 python使用KNeighborsClassifier出现FutureWarning: Unlike other reduction functions (e.g. `skew`, `kurtosi
FutureWarning: Unlike other reduction functions (e.g. `skew`, `kurtosis`), the default behavior of `mode` typically preserves the axis it acts along. In SciPy 1.11.0, this behavior will change: the default value of `keepdims` will become False, the `axis`
2023-01-06 14:14:50
6842
11
原创 Latex引用网页未报错,但出现“[Z]“的可能原因
使用@Misc或@Online应用网页时没报错,但输出[Z]里出现了空格或其他字符,全部删除后即可。
2023-01-05 10:38:59
506
翻译 零样本文本分类任务的简单教程
基于huggingface的零样本文本分类Zero-shot Text Classification with Hugging Face
2022-12-29 09:47:58
2459
2
原创 Unable to load vocabulary from file. Please check that the provided vocabulary is accessible and not
无法从文件中加载词表。请检查所提供的词表是否可以访问并且没有损坏。一开始以为是下载的文件损坏了,但是重新下载之后依旧报错。猜测并非因为文件损坏报错,而是因为无法访问导致的,不过尝试之后发现没用。
2022-12-28 14:47:58
6894
5
原创 python matplotlib cannot import name ‘artist‘ from ‘matplotlib‘
问题:cannot import name 'artist' from 'matplotlib'搜索后发现可能是误删了部分文件,需要卸载matplotlib后重新安装,但是无法卸载,会出现下面的问题。Cannot uninstall matplotlib 3.4.3, RECORD file not found. You might be able to recover from this via: 'pip install --force-reinstall --no-deps matpl
2022-09-18 20:46:01
1896
原创 python xgboost 出现 FutureWarning: pandas.Int64Index is deprecated
问题:python使用xgboost 出现 FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead. from pandas import MultiIndex, Int64Index 解决:版本问题,更新xgboost即可:pip install --upgr
2022-09-15 14:59:09
2402
原创 pytorch GradScaler() 出现 UserWarning: Detected call of lr_scheduler.step() before optimizer.step().
UserWarning: Detected call of lr_scheduler.step() before optimizer.step(). In PyTorch 1.1.0 and later, you should call them in the opposite order: optimizer.step() before lr_scheduler.step(). Failure to do this will result in PyTorch skipping the first val
2022-08-10 10:46:56
4955
10
原创 python 使用catboost报错: rsm on GPU is supported for pairwise modes only
rsm on GPU is supported for pairwise modes only
2022-07-14 10:27:00
1168
原创 ImportError: cannot import name ‘EarlyStopping‘ from ‘pytorchtools‘ 解决方法
ImportError: cannot import name 'EarlyStopping' from 'pytorchtools'
2022-07-08 10:54:09
4447
9
原创 python将一个文件夹中的所有文件复制给多个文件夹
目标:复制“data”文件夹中的所有文件,分别粘贴给“mri”文件夹中名字为“1”、“2”……“100”的文件夹。代码如下所示
2022-06-25 21:57:01
1017
转载 python中的3D热力图
Heatmaps are a great way to visualize a dataset, methods for visualizing the data are getting explored constantly and 3D heatmap is one of the ways to plot data. Let’s learn how we can plot 3D data in python.
2022-06-18 16:31:25
4209
原创 使用XGBClassifier出现Dataset is empty, or contains only positive or negative samples.错误
python使用xgboost出现Dataset is empty, or contains only positive or negative samples.错误
2022-05-22 16:43:26
954
原创 python lightgbm中使用“early_stopping_rounds”和“verbose_eval”出现 UserWarning
LightGBM早停失败,提示TypeError: fit() got an unexpected keyword argument ‘early_stopping_rounds‘UserWarning: 'early_stopping_rounds' argument is deprecated and will be removed in a future release of LightGBM.
2022-05-04 22:05:24
28000
6
原创 Spaceship Titanic——简单的预处理+LightGBM
Kaggle上的Spaceship Titanic比赛,简单的预处理+LightGMB
2022-04-25 12:40:55
3189
原创 Python 坐标上升法
坐标上升法——例题及修改后的代码。之前在优快云看了几篇关于坐标上升算法的博客,都用了这个例子,但是代码实现里面的迭代部分都是错的,导致最终结果错误,现在把修改后的代码放上来供大家参考;) ......
2022-04-17 10:25:08
490
转载 VS code(Visual Studio Code)乱码解决
VS Code输出*'gcc’�����ڲ����ⲿ���Ҳ���ǿ����еij��� ���������ļ���*乱码修改方法VS Code中文输出乱码解决方法 方法一: 首先win + i,打开window设置,点击时间和语言。 点击区域选项卡内的日期时间和区域格式设置(没找到的话就页面下拉试试,在页面下面) 点击 区域 点击右边的管理 点击更改系统区域设置 勾选Beta版:使用Unicode UTF-8提供全球语言支持
2022-04-14 14:34:41
5644
6
转载 Jupyter中使用matplotlib画图出现kernel died问题
jupyter中使用matplotlib画图会导致kernel diedconda install --yes freetype=2.10.4Matplotlib依赖freetype库。
2022-04-04 21:18:56
3419
2
转载 RuntimeError: cuda runtime error (59) : device-side assert triggered(已解决)
是这样的,在跑fasterrcnn的时候,要把原模型21个类别改为自己的类别数目,第一次改过后运行没有报错,第二次再修改就报错了,错误如下1 block: [0,0,0], thread: [16,0,0] Assertion `t >= 0 && t < n_classes` failed.2 RuntimeError: cuda runtime error (59) : device-side assert triggered 网上的主要解决方法如下:造成这
2022-03-18 15:49:06
1149
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人