随笔分类 -  Python3

summarization of Python3
摘要:PyCharm出现Remote file _ is mapped to the local path _ and can`t be found错误 问题描述: 基于PyCharm做远程开发与远程调试; 当涉及到paddlenlp相关代码的调试时; PyCharm出现“Remote file _ is 阅读全文
posted @ 2022-10-18 09:49 健康平安快乐 阅读(319) 评论(0) 推荐(0) 编辑
摘要:Spark简明教程 (Spark简明教程 1.1.2.md) 1.What is Apache Spark? 面向大规模数据分析的统一引擎(Unified engine for large-scale data analytics)[1]。大规模,为了处理几百GB的TSP数据,我们需要一个面向大规模 阅读全文
posted @ 2022-03-01 17:41 健康平安快乐 阅读(602) 评论(0) 推荐(0) 编辑
摘要:Elasticsearch Tutorial Concepts Mapping concepts across SQL and Elasticsearch While SQL and Elasticsearch have different terms for the way the data is 阅读全文
posted @ 2021-05-30 12:37 健康平安快乐 阅读(86) 评论(0) 推荐(0) 编辑
摘要:Kafka使用指南 概念对照表 Kafka概念 释义 消息 数据库表中的一行数据 批次 一组消息 主题/话题 数据库表 / 文件夹 分区 主题内的分块 消费者群组 专门消费同一个主题的消费者集合 偏移量 用来区分已经读过的消息 所有权关系 消费者与分区之间的映射关系 broker 一个独立的kafk 阅读全文
posted @ 2021-05-27 21:09 健康平安快乐 阅读(97) 评论(0) 推荐(0) 编辑
摘要:Conda in Action conda 命令 创建名为 tensorflow 的 conda 环境 conda create -n tensorflow pip python=3.5 激活 conda 环境 source activate tensorflow 退出 conda 环境 sourc 阅读全文
posted @ 2020-05-16 15:40 健康平安快乐 阅读(357) 评论(0) 推荐(0) 编辑
摘要:What is Pytorch? 起步(Getting Started) 内容参考自 Deep Learning with PyTorch: A 60 Munute Blitz 之 What is PyTorch (https://pytorch.org/tutorials/beginner/dee 阅读全文
posted @ 2020-01-28 21:13 健康平安快乐 阅读(160) 评论(0) 推荐(0) 编辑
摘要:Boston House Price with Scikit Learn Data Description Regression with Linear Regression Model 阅读全文
posted @ 2019-08-14 19:36 健康平安快乐 阅读(316) 评论(0) 推荐(0) 编辑
摘要:DeepWalk 安装指南 创建 conda 虚拟环境 安装 deepwalk 阅读全文
posted @ 2019-08-06 17:17 健康平安快乐 阅读(934) 评论(0) 推荐(0) 编辑
摘要:IMDB Classification on Keras In the book of Deep Learning with Python , there is an example of IMDB move reviews sentiment classification. 阅读全文
posted @ 2019-08-02 08:26 健康平安快乐 阅读(212) 评论(0) 推荐(0) 编辑
摘要:PDF to PNG to PDF PDF 2 PNG step 1, install PyMuPDF step 2, code python encoding:utf8 import sys import os import fitz if __name__ == '__main__': if l 阅读全文
posted @ 2019-05-19 19:09 健康平安快乐 阅读(559) 评论(0) 推荐(0) 编辑
摘要:施密特正交化 GramSchmidt 施密特正交化的原名是 Gram–Schmidt process,是由Gram和schmidt两个人一起发明的,但是后来因为施密特名气更大,所以该方法被简记为施密特正交化。 借用 《线性代数》P117 例2 的例子来运行代码。 $$ a_1 = (1,2, 1)^ 阅读全文
posted @ 2019-03-12 15:05 健康平安快乐 阅读(5221) 评论(0) 推荐(0) 编辑
摘要:Pandas 学习笔记 pandas 由两部份组成,分别是 Series 和 DataFrame。 Series 可以理解为“一维数组、列表、字典” DataFrame 可以理解为"二维矩阵、表格、字典",可以视为是由 Series 组成的字典。 创建 output: 阅读全文
posted @ 2018-10-23 21:51 健康平安快乐 阅读(133) 评论(0) 推荐(0) 编辑
摘要:PyTorch 使用心得 模板 标准库 计算设备(张量类型) 设置 tensor 的默认类型 设置程序优先使用 CUDA (e.g. GPU) Cosine作为损失函数 变量 类型转换 Tensor to float 阅读全文
posted @ 2018-07-04 22:51 健康平安快乐 阅读(408) 评论(0) 推荐(0) 编辑
摘要:Python3 Iterator and Generator iterator 主要是利用 iter 函数 generator 使用上述程序,读取如下文件(zh.txt) 程序输出: Reference "Python3 迭代器与生成器" 阅读全文
posted @ 2018-05-31 14:37 健康平安快乐 阅读(130) 评论(0) 推荐(0) 编辑
摘要:numpy 学习笔记 导入 numpy 包 声明 ndarray 的几种方法 方法一,从list中创建 [[1 2 3] [4 5 6] [7 8 9]] 方法二,指定维度,不赋值 [[9.66308774e 312 2.47032823e 322 0.00000000e+000 0.0000000 阅读全文
posted @ 2018-05-26 13:16 健康平安快乐 阅读(230) 评论(0) 推荐(0) 编辑
摘要:NLTK 知识整理 nltk.corpus模块自带语料 NLTK comes with many corpora, toy grammars, trained models, etc. A complete list is posted at: http://nltk.org/nltk_data/ 阅读全文
posted @ 2018-03-22 22:00 健康平安快乐 阅读(214) 评论(0) 推荐(0) 编辑
摘要:Examples of Machine Learning Toolkit Usage Scikit learn KFold K 折交叉验证 Reference : http://scikit learn.org/stable/modules/cross_validation.html k fold 阅读全文
posted @ 2017-12-11 20:25 健康平安快乐 阅读(248) 评论(0) 推荐(1) 编辑
摘要:Python3 解析XML 层序遍历二叉树 keyword : python3, xml, xml.dom.minidom, 层序遍历, 层次遍历, 二叉树 part1 问题描述 面对如下 XML 文件,写程序按层序遍历二叉树,要求打印 text 节点中的 text 属性,并按文法的形式展示。 1. 阅读全文
posted @ 2017-09-13 20:30 健康平安快乐 阅读(793) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示