![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
only111
这个作者很懒,什么都没留下…
展开
-
Pandas基础
1.常用方法 # -*- coding: UTF-8 -*- import os import pandas print(os.getcwd()) dt=pandas.read_excel("C:\\Users\\asus\\Desktop\\aaa.xlsx",delimiter="\t") print(type(dt)) print(dt.head(2)) print(dt.tail(2))原创 2017-06-09 08:44:47 · 196 阅读 · 0 评论 -
matplotlib基础
数据如下: DATE VALUE 1987/1/1 3.4 1987/2/1 3.2 1987/3/1 3.1 1987/4/1 3.6 1987/5/1 3.2 1987/6/1 3.1原创 2017-06-09 09:08:06 · 243 阅读 · 0 评论 -
python 基本语法
# -*- coding: UTF-8 -*- import numpy as np #变量 str_test="hell python" int_test=123 float_test=123.5 print(str_test);print(type(str_test)) print(type(int_test)) print(type(float_test)) 输出结果: hel原创 2017-06-08 21:27:58 · 308 阅读 · 0 评论 -
numpy 基础
# -*- coding: UTF-8 -*- import numpy vactor=numpy.array([5,10,15,20]) matris=numpy.array([[5,10,15,20],[25,30,35,40]]) print(vactor) print(matris) print(type(vactor)) print(type(matris)) print(vactor.原创 2017-06-08 23:20:19 · 234 阅读 · 0 评论 -
numpy计算及常用函数
axis vactor1=numpy.array([5,10,15,20]) matris1=numpy.array([ [5,10,15,20], [25,30,35,40], [55,60,65,70] ]) print(vactor1.min()) print(vactor1.max()) print(matris1.sum(axis=0))#对行累加 print(原创 2017-06-09 15:23:26 · 486 阅读 · 0 评论 -
机器学习:线性回归(最小二乘法代码)
''' 最小二乘法求解线性回归 ''' import pandas as pd import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split #防止中文乱码 plt.rcParams['font....翻译 2018-08-28 21:18:25 · 1020 阅读 · 0 评论 -
一张图读懂softmax分类器
即 -log(24.5/24.5+164+0.18) 目标函数原创 2018-09-01 16:15:34 · 6671 阅读 · 0 评论