- 博客(14)
- 资源 (6)
- 收藏
- 关注
原创 Python学习之路_sklearn
题目:For this assignment you need to generate a random binary classification problem, and then train and test (using 10-fold cross validation) the three algorithms. For some algorithms inner cross v...
2018-06-18 11:49:58
268
原创 Python学习之路_jupyter notebook
import randomimport numpy as npimport scipy as spimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snsimport statsmodels.api as smimport statsmodels.formula.api as smfsns....
2018-06-11 09:28:50
222
原创 Python学习之路_scipy
1. Least squares代码from numpy import random from scipy import linalg A = random.randn(20, 20) b = random.randn(20, 1) x, residual, rank, s = linalg.lstsq(A, b) print(x) print(resid...
2018-06-05 17:31:03
288
原创 Python学习之路_matplotlib
1. Plotting a function代码from numpy import *import matplotlib.pyplot as pltx=linspace(0,2)y = sin(x-2)*sin(x-2)*exp(-(x**2))plt.plot(x,y,)plt.title('My_plot')plt.xlabel('X')plt.ylabel('...
2018-05-29 12:12:45
226
原创 Python学习之路_numpy
Python学习之路_numpy这周老师给我们布置了一些关于numpy使用的题目,下面我来展示一下0.思路:使用numpy中的randn来生成random Gaussian entries,使用自己写的Toeplitz函数生成Toeplitz矩阵代码:import numpy as npdef toeplitz(row_vector, column_vecto...
2018-05-21 20:41:14
326
原创 Python学习之路_第七周
这次是实操,上LeetCode找3道题来写第一道题:打乱数组思路:1.将原始数组深复制进类中的self.origin (避免干扰)2.reset时返回原始数组3.shuffle时先把self.origin深复制给一个临时变量tmp并对其调用random.shuffle(tmp)并返回代码:import randomimport copyclass Solution: def __in...
2018-04-24 10:39:10
211
原创 Python学习之路_第二周
这次学习了list相关的知识,并挑选了几道简单的练手题做了一下,在这里发上来(以完成伟大的老师布置的作业~)修改过后
2018-03-13 14:50:25
549
原创 Visual Studio 2017(VS 2017)Python 环境配置
由于我本人之前一直使用VS进行C、C++编程,所以对这个平台有着很大的好感,这次我要开始学习Python的编程,便决定继续沿用这个平台。但是经过一番寻找发现现在网上并没有VS上配置Python的教程,于是决定自己动手写一个。1.打开 Visual Studio installer2.修改->勾选Python开发3.安装完之后打开VS->新建项目这里也是一个我选择VS作为Python开发...
2018-03-12 00:27:52
90501
13
原创 Python官网游记&&目标展望
Python官网游记 这就是python的官网,Downloads和About放在最显眼的位置,算是方便了我们下载并入门Python。 那么事不宜迟进入下载界面,可以看到官网自动识别了我的系统为Windows并推给我两个版本,分别是3.6.4和2.7.14(分别代表了PY2和PY3)同时在下面提供了一些其他版本,下载环境可以说是很方便了。PS:虽然我并没有在官网下载Python,而是通过VS安...
2018-03-06 11:38:08
242
C与汇编的接口技术
2018-03-15
COM与EXE可执行程序格式
2018-03-15
Bochs虚拟机的配置
2018-03-15
Bios 基础知识
2018-03-15
《操作系统精髓与设计原理·第六版》中文版 答案
2018-03-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人