自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(46)
  • 收藏
  • 关注

原创 Python 数据分析 - Pandas

Pandas

2020-02-28 15:53:56 869

原创 Python 数据分析 - NumPy

numpy numpy.linspace(start, stop, num=50, endpoint=True): 在[start, stop](endpoint=True)或者[start, stop)(endpoint=False)之间取num个等差的数。 import numpy as np arr = np.linspace(0, 10, num=10) print(arr...

2020-02-26 00:40:47 997

原创 Statistics 01

data types: 1. Quantitative data: numeric values that allow mathematical operations 1.1 Continuous data: Quantitative values that can be split into smaller values 1.2 Discrete data: Quantitative value...

2020-02-18 18:29:59 712

原创 Python 基础

<添加目录> Python语言的特点 1. 面向对象语言 2. 解释型语言 -- 执行效率低 3. 代码简洁,开发效率高 4. 丰富的函数库 Python语言的使用场景 1. web开发 2. 网络爬虫 3. 网络安全 4. 自动化运维 5. 数据分析 6. 人工智能 sublime text http://www.sublim...

2020-01-17 01:40:54 1078

原创 SQL 应用实例

查询总分第六到十名的学生姓名以及总分 stud_crs: select sno, sum(grade) as 总分 from stud_crs group by sno; select top 3 sno, sum(grade) as 总分 from stud_crs group by sno order by sum(grade) desc; select top 2 ...

2019-12-19 19:01:25 344

原创 SQL JOIN

stud: Course: stud_crs: select stud_crs.scno, stud.sno as 学号, stud.sname as 姓名, stud_crs.cno as 课程号, stud_crs.grade as 分数 from stud inner join stud_crs on stud.sno = stud_crs.sno; ...

2019-12-19 14:02:35 258

原创 Review 16 [coursera] Machine learning - Stanford University - Andrew Ng

Large Scale Machine Learning Assuming that you have a very large training set, which of the following algorithms do you think can be parallelized using map-reduce and splitting the training s...

2019-07-18 15:21:36 220

原创 Ex08 [coursera] Machine learning - Stanford University - Andrew Ng

Anomaly Detection and Recommender Systems 目录 Anomaly Detection and Recommender Systems Anomaly detection ex8.m estimateGaussian.m multivariateGaussian.m selectThreshold.m prompt output figure...

2019-07-17 12:36:13 649

原创 Review 15 [coursera] Machine learning - Stanford University - Andrew Ng

Recommender Systems In which of the following situations will a collaborative filtering system be the most appropriate learning algorithm (compared to linear or logistic regression)? You manage an o...

2019-07-16 13:35:17 178

原创 Ex07 [coursera] Machine learning - Stanford University - Andrew Ng

K-means Clustering and Principal Component Analysis 目录 K-means Clustering and Principal Component Analysis K-means Clustering ex7.m findClosestCentroids.m computeCentroids.m runkMeans.m kMeans...

2019-05-17 20:26:46 881

原创 Review12 [coursera] Machine learning - Stanford University - Andrew Ng

Unsupervised Learning For which of the following tasks might K-means clustering be a suitable algorithm? Select all that apply. A. From the user usage patterns on a website, figure out what diffe...

2019-05-15 19:14:59 223

原创 Ex06 [coursera] Machine learning - Stanford University - Andrew Ng

Support Vector Machines 目录 Support Vector Machines Support Vector Machines ex6.m svmTrain.m visualizeBoundaryLinear.m gaussianKernel.m visualizeBoundary.m svmPredict.m dataset3Params.m Prom...

2019-05-14 18:01:05 1243

原创 Ex05 [coursera] Machine learning - Stanford University - Andrew Ng

Regularized Linear Regression and Bias v.s. Variance 目录 Regularized Linear Regression and Bias v.s. Variance ex5.m linearRegCostFunction.m trainLinearReg.m learningCurve.m polyFeatures.m featu...

2019-05-05 14:03:20 710

原创 Ex04 [coursera] Machine learning - Stanford University - Andrew Ng

Neural Networks Learning 目录 Neural Networks Learning ex4.m displayData.m nnCostFunction.m sigmoidGradient.m sigmoid.m randInitializeWeights.m checkNNGradients.m debugInitializeWeights.m com...

2019-05-02 17:16:45 516

原创 Review08 [coursera] Machine learning - Stanford University - Andrew Ng

Neural Networks: Learning For computational efficiency, after we have performed gradient checking to verify that our backpropagation code is correct, we usually disable gradient checking before us...

2019-04-27 11:47:10 190

原创 Ex03 [coursera] Machine learning - Stanford University - Andrew Ng

Multi-class Classification and Neural Networks 目录 Multi-class Classification and Neural Networks Examples from the dataset Part1 ex3.m displayData.m lrCostFunction.m predictOneVsAll.m prompt ou...

2019-04-25 13:38:16 511

原创 Review07 [coursera] Machine learning - Stanford University - Andrew Ng

Neural Networks: Representation Any logical function over binary-valued (0 or 1) inputs x1 and x2 can be (approximately) represented using some neural network. T The activation values of the hidd...

2019-04-24 19:13:04 195

原创 Ex02 [coursera] Machine learning - Stanford University - Andrew Ng

Logistic Regression 目录 Part1 ex2.m plotData.m sigmoid.m costFunction.m plotDecisionBoundary.m predict.m prompt output figure output Part2 ex2_reg.m mapFeature.m costFunctionReg.m pro...

2019-04-21 15:04:14 366

原创 Review05 [coursera] Machine learning - Stanford University - Andrew Ng

Logistic Regression Suppose you have the following training set, and fit a logistic regression classifier hθ​(x)=g(θ0​+θ1​x1​+θ2​x2​). Which of the following are true? Check all that appl...

2019-04-21 14:10:52 294

原创 fminunc() [coursera] Machine learning - Stanford University - Andrew Ng

Advanced Optimization fminunc() in Octave costFunction.m function [jVal, gradient] = costFunction(theta) jVal = (theta(1)-5)^2 + (theta(2)-5)^2; gradient = zeros(2,1); gradient(1) = 2*(theta...

2019-04-20 15:50:07 135

原创 Ex01 [coursera] Machine learning - Stanford University - Andrew Ng

Linear Regression 目录 Part1 ex1.m plotData.m computeCost.m gradientDescent.m prompt output figure output Part2 ex1_multi.m featureNormalize.m computeCostMulti gradientDescentMulti.m no...

2019-04-20 00:19:48 665

原创 Review04 [coursera] Machine learning - Stanford University - Andrew Ng

Octave/Matlab Tutorial Say you have two column vectors vvv and www, each with 7 elements (i.e., they have dimensions 7x1). Consider the following code: z = 0; for i = 1:7 z = z + v(i) * w(i) end ...

2019-04-18 16:08:44 362

原创 Octave/Matlab Tutorial [coursera] Machine learning - Stanford University - Andrew Ng

目录 Octave/Matlab Tutorial Basic Operations Moving Data Around Computing On Data Plotting Data Control Statements: for, while, if Statements Octave/Matlab Tutorial Basic Operations octave:1&g...

2019-04-18 15:14:41 946

原创 Review03 [coursera] Machine learning - Stanford University - Andrew Ng

Linear Regression with Multiple Variables Suppose m=4 students have taken some class, and the class had a midterm exam and a final exam. You have collected a dataset of their scores on the two exams,...

2019-04-18 09:52:45 404

原创 Review02 [coursera] Machine learning - Stanford University - Andrew Ng

Linear Regression with One Variable If θ0 and θ1 are initialized at the global minimum, then one iteration will not change their values. T Setting the learning rate α to be very small is not ...

2019-04-12 21:03:33 195

原创 OS note04 -- process, thread

#include <stdio.h> #include <unistd.h> int main() { printf("start from main (pid:%d)\n", (int)getpid()); int rc; rc = fork(); if( rc == 0 ) printf("fork() 1, (pid:%d)\n", rc); el...

2019-04-12 20:56:20 307

原创 Python语言程序设计(北京理工大学)第九周_Python Programming week09

数据分析: Numpy: 表达N维数组的最基础库 Pandas: Python数据分析高层次应用库 SciPy: 数学、科学和工程计算功能库 数据可视化: Matplotlib: 高质量的二维数据可视化功能库 Seaborn: 统计类数据可视化功能库 Mayavi:三维科学数据可视化功能库 文本处理: PyPDF2:用来处理pdf文件的工具集 NLTK:自然语言文本处理第三方库 Pyth...

2019-01-31 13:43:58 1136

原创 Python语言程序设计(北京理工大学)第八周_Python Programming week08

1. 自顶向下设计主要由下列哪个语法元素实现?‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬A. 函数 B. 过程 C. 对象 D. 循环结构函数是自顶向下设计的关键元素,通过定义函数及其参数逐层开展程序设计。 2. 关于计算思维,以下选项描述正确的是...

2019-01-31 12:07:40 829

原创 Python语言程序设计(北京理工大学)第七周_Python Programming week07

1. 以下选项对文件描述错误的是: ‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬A. 文件是数据的集合和抽象 B. 文件可以包含任何内容C. 文件是程序的集合和抽象 D. 文件是存储在辅助存储器上的数据序列函数或类是程序的集合和抽象,文件不是。 2....

2019-01-31 00:04:32 9972

原创 Python语言程序设计(北京理工大学)第六周_Python Programming week06

1. 关于Python组合数据类型,以下描述错误的是:‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬A. 序列类型是二维元素向量,元素之间存在先后关系,通过序号访问 B. 组合数据类型可以分为3类:序列类型、集合类型和映射类型 C. 组合数据类型能够将多...

2019-01-29 23:18:05 15980

原创 Python语言程序设计(北京理工大学)第五周_Python Programming week05

1. 以下关于递归函数基例的说法错误的是: A. 每个递归函数都只能有一个基例 B.递归函数的基例决定递归的深度 C. 递归函数的基例不再进行递归 D. 递归函数必须有基例 每个递归函数至少存在一个基例,但可能存在多个基例。 2. 以下选项不是函数作用的是: A. 复用代码 B. 降低编程复杂度 C. 提高代码执行速度 D. 增强代码可读性 函数不能直接提高代码执行速度。 ...

2019-01-29 17:17:30 6079

原创 Python语言程序设计(北京理工大学)第四周_Python Programming week04

整数的加减和 描述 编写程序计算如下数列的值:‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬ 1-2+3-4...966‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬...

2019-01-28 17:55:52 2078

原创 Python语言程序设计(北京理工大学)第三周_Python Programming week03

实例3:天天向上的力量 描述 这是"实例"题,与课上讲解实例相同,请作答检验学习效果。‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬ 工作日模式要努力到什么水平,才能与每天努力1%一样?‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪...

2019-01-27 18:29:42 1758

原创 OS note03 -- clone

references: https://blog.csdn.net/gatieme/article/details/51417488 Linux中fork,vfork和clone详解(区别与联系) int clone(int (fn)(void ), void *child_stack, int flags, void *arg); fn是函数指针,这个就是指向程序的指针,就是所谓的“剧...

2019-01-27 00:17:01 175

原创 Python语言程序设计(北京理工大学)第二周_Python Programming week02

实例2: Python蟒蛇绘制 描述 这是"实例"题,与课上讲解实例相同,请作答检验学习效果。‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬ 使用turtle库,绘制一个蟒蛇形状的图形。‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪...

2019-01-26 23:49:21 779

原创 Python语言程序设计(北京理工大学)第一周_Python Programming week01

货币转换 I 描述 人民币和美元是世界上通用的两种货币之一,写一个程序进行货币间币值转换,其中: 人民币和美元间汇率固定为:1美元 = 6.78人民币。 程序可以接受人民币或美元输入,转换为美元或人民币输出。人民币采用RMB表示,美元USD表示,符号和数值之间没有空格。‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭...

2019-01-26 21:24:41 1349 1

原创 计算理论Computing Theory_Chapter01

Set elements/members singleton: (one element) empty set proper set union intersection difference: Idempotency, Commutativity, Associativity, Distributivity, Absorption, DeMorgan's laws: disj...

2019-01-23 17:30:32 870

原创 OS -- three easy pieces -- (Persistence 01) I/O Devices

Persistence: making information persist, despite computer crashes, disk failures, or power outages.   I/O Devices introduce the concept of an input/output (I/O) device and show how the operating s...

2019-01-16 09:32:12 730

原创 OS -- three easy pieces -- Introduction

Virtualization: Assume there is one physical CPU in a system (though now there are often two or four or more). What virtualization does is take that single (physical) CPU and make it look like many...

2019-01-15 19:42:39 576

原创 第九周 标准模板库STL(二) - PKU[课程作业]程序设计与算法(三)C++面向对象程序设计_C++ Object Oriented Programming week09

1:Set #include<iostream> #include<set> #include<string> using namespace std; int main() { int n; cin >> n; multiset<int> ms; set<int> s; multiset<int>:...

2018-05-23 19:08:57 318

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除