Loading

摘要: 转载 + 踩坑 阅读全文
posted @ 2022-09-06 17:11 摇头晃脑学知识 阅读(1328) 评论(0) 推荐(0) 编辑
摘要: 传送门:https://www.cnblogs.com/pinard/p/6221564.html 算法: 阅读全文
posted @ 2022-08-10 17:00 摇头晃脑学知识 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 由于实验室的服务器没有连外网,因此需要手动安装pip的包,步骤如下: 以dgl为例 在pip的官网上下载whl文件 注意:这一步需要下载对应的whl文件,这里的cp37指的linux内对应的python版本,也可以通过pip debug --verbose | less指令查看支持的cp版本,我选择 阅读全文
posted @ 2022-07-26 17:21 摇头晃脑学知识 阅读(488) 评论(0) 推荐(0) 编辑
摘要: vscode-实时同步代码到远程服务器 补充:VSCode配置多个sftp 自己的配置模板(多个sftp): { "name": "myserver", "context": "/local path/", "ignore": [ "**/.vscode/**", "**/.git/**", "** 阅读全文
posted @ 2022-07-26 16:26 摇头晃脑学知识 阅读(31) 评论(0) 推荐(0) 编辑
摘要: tmux是什么 tmux是一个 terminal multiplexer(终端复用器),它可以启动一系列终端会话。 简单来说,安装tmux之前,一旦与服务器断开连接或者关闭xhell或其他shell终端,我们的服务器上运行的程序就会终止,而且输入的历史消息全部消失。因此如果我们希望整晚在服务器上跑代 阅读全文
posted @ 2022-07-26 10:38 摇头晃脑学知识 阅读(203) 评论(0) 推荐(0) 编辑
摘要: from matplotlib import pyplot as plt %matplotlib inline import os import numpy as np import pandas as pd filename = 'xx' df = pd.read_csv(os.path.join 阅读全文
posted @ 2022-07-11 17:31 摇头晃脑学知识 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 创建文件夹 if not os.path.exists(batch_save_path): os.makedirs(batch_save_path) 获取文件夹下所有文件 os.listdir(query_data_folder_path) 获取当前路径,加入sys curPath = os.pat 阅读全文
posted @ 2022-06-14 19:34 摇头晃脑学知识 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 在网上找了很久,终于解决了,代码如下: with mydata as ( select ID, my_array from ( --some array<struct> example select 1 ID, array(1.1, 2.2, 3.3) as my_array union all s 阅读全文
posted @ 2022-06-13 20:22 摇头晃脑学知识 阅读(2615) 评论(0) 推荐(1) 编辑
摘要: How to transform data into a map using group by in Hive SQL? select grade, str_to_map(course_list,',',':') lecture_count_map from ( select grade, conc 阅读全文
posted @ 2022-06-09 11:47 摇头晃脑学知识 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Pytorch使用过程中的一些API资料总结 阅读全文
posted @ 2022-06-01 14:48 摇头晃脑学知识 阅读(36) 评论(0) 推荐(0) 编辑