![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
hjmbt
这个作者很懒,什么都没留下…
展开
-
机器学习常用算法
机器学习常用算法1.线性回归在统计学和机器学习领域,线性回归可能是最广为人知也最易理解的算法之一。定义:线性回归(Linear Regression)是利用称为线性回归方程的最小平方函数对一个或多个自变量和因变量之间关系进行建模的一种回归分析。优点:结果易于理解,计算上不复杂。缺点:对非线性数据拟合不好。适用数据类型:数值型和标称型数据。用法: from sklear...原创 2019-11-14 15:56:39 · 312 阅读 · 0 评论 -
python 阿里云 安装
python 阿里云 安装下载地址1.下载 选择对应版本2.解压tar -zxvf Python-3.7.5.tgz -C /home/app3.源码安装cd Python-3.7.5/./configure --with-ssl --prefix=安装路径makemake install没有报错即安装成功查看默认python 版本python --version...原创 2019-11-14 15:58:42 · 277 阅读 · 0 评论 -
缺失值处理
缺失值处理数据缺失问题处理方式:当列数据缺失严重的时候 --删除缺失值列data_without_missing_values = original_data.dropna(axis=1)通常情况下我们需要将训练数据和测试数据一起处理,因此当训练数据由变动时测试数据一样需要处理.cols_with_missing = [col for col in original_data.c...原创 2019-11-14 16:01:14 · 129 阅读 · 0 评论 -
Jupyter Notebook自动化提醒
windows+Rcmd 回车python3 输入pip3 install jupyter_contrib_nbextensions确保 Jupyter 关闭状态下输入:jupyter contrib nbextension install --user --skip-running-check启动Jupyterjupyter notebook相对之前会在首页多出来一个 Nbex...原创 2019-11-14 15:57:29 · 324 阅读 · 0 评论 -
python 连接 hive 遇到的问题
1.sasl 安装问题下载…2 Ubantu安装sasl问题3 python2.7.6 安装impyla 问题使用python 连接hive 可行性版本 :①: thrift = 0.11.0 ,pyhive = 0.3.0pyhive 没有问题impala 连接报错 'TypeError: expecting list of size 2 for struct args②: th...原创 2019-11-14 16:02:10 · 1473 阅读 · 2 评论 -
Python numpy
Python numpy数组属性shape这一数组属性返回一个包含数组维度的元组,它也可以用于调整数组大小。示例1:import numpy as npa = np.array([[1,2,3],[4,5,6]])print a.shape输出如下:(2,3)示例2:import numpy as npa = np.array([[1,2,3],[4,5,6]]...原创 2019-11-14 16:02:26 · 73 阅读 · 0 评论 -
python Time
Python TimePython 日期与时间什么是Tick?什么是时间元组?获取当前时间获取格式化的时间获取某月日历Time模块日历(Calendar)模块其他相关模块和函数Python 日期与时间Python程序能用很多方式处理日期和时间。转换日期格式是一个常见的例行琐事。Python有一个time and calendar模组可以帮忙。什么是Tick?时间间隔是以秒为单位的浮点小数。...原创 2019-11-14 16:02:47 · 96 阅读 · 0 评论 -
python : ipython notebook 安装
python : ipython notebook 安装IPython notebook目前已经成为用Python做教学、计算、科研的一个重要工具。关于其发展,以及介绍,感兴趣可以找文献阅读。本文主要讲解的是它的基本用法和技巧。IPython Notebook使用浏览器作为界面,向后台的IPython服务器发送请求,并显示结果。Ipython使用了websocket,它是不支持IE的.一般用...原创 2019-11-14 15:57:50 · 177 阅读 · 0 评论 -
pandes : print() 显示不全解决办法
pandes : print() 显示不全解决办法import pandas as pdfilePath_melb_data = '''./csv/melb_data.csv'''melb_data = pd.read_csv(filePath_melb_data)print(melb_data.describe())#解决方法# 显示 列 None-所有列 n - n列 Non...原创 2019-11-14 16:02:57 · 891 阅读 · 0 评论 -
python pyplot 画图中文乱码以及正负号问题
python pyplot 画图中文乱码以及正负号问题python 使用pyplot 画图中文不显示问题解决办法:python 使用pyplot 画图中文不显示问题# coding=utf-8import numpy as npimport matplotlib.pyplot as pltx = np.arange(1, 10)y = x# 标题plt.title(u'测试画图'...原创 2019-11-14 16:03:09 · 842 阅读 · 0 评论 -
Python windows 安装
Python 下载地址 : https://www.python.org/校验:cmd注意 需要下载2.X 和3.X 版本的python原创 2019-11-14 15:59:03 · 59 阅读 · 0 评论