- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 机器学习-1、一元线性回归
一元线性回归线表达式 h0(x) = a + bx 其中 a为截距,b为斜率代价函数(lost function)该公式的主要目的是求出J的最小值,其中的西达0和西达1分别对应一元线性回归表达式中的a和b。对cost function进行求导,得到上面的两个函数,用来分别求出西达0和西达1的最小值。其中,需要调整的是参数“学习率”。...
2019-04-19 16:44:13
472
转载 centos mysql 安装配置
安装完mysql后会有个临时密码去日志查看,但是查看登录修改密后还是不行ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:yes)于是1,停止mysql服务systemctl stop mysqld.service 2,修改配置文件无密码登录 vi /...
2018-09-17 16:57:58
151
原创 centos7+python3+nginx+uWSGI+virtualven+flask部署(记录及排坑)
1、nginx用yum安装,uWSGI用pip3安装!!!virtualven用yum安装。如果uWSGI不用pip安装就需要安装yum install uwsgi-plugin-python,并且在配置uwsgi.ini时加上plugin=python(坑0)2、uWSGI安装之后用ln -s xxx/xxx/python3/uwsgi usr/bin/uwsgi创建软连接。(坑1...
2018-09-06 18:35:45
757
原创 centos7安装python3
然后更改pip源到阿里wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo生成缓存yum makecache下载python3wget "https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tg...
2018-09-03 02:03:02
172
原创 2018/8/14第一个爬虫程序
# -*- coding: utf-8 -*-import scrapyfrom ..items import Mjproject1Itemclass MjspideroneSpider(scrapy.Spider): name = 'MJspiderOne' allowed_domains = ['www.zuihaodaxue.com'] start_urls ...
2018-08-14 17:30:23
250
原创 MySQL&PyMySQL基本操作
import pymysqldb = pymysql.connect('localhost','root','root',) #服务器信息cursor = db.cursor() #游标尺,重要!cursor.execute("SELECT Version()") #执行一条命...
2018-08-10 16:34:17
192
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人