摘要: 1、什么叫回归算法: 常见的回归算法有: 线性回归、Logistic回归、Softmax回归...... ① 回归算法属于一种有监督学习 ② 回归算法是一种比较常用的机器学习算法,用来建立自变量(x)与因变量(y)之间的关系;从机器学习的角度来讲,用于构建一个算法模型(函数)来做属性(x)与标签(y 阅读全文
posted @ 2020-08-25 17:02 leon-chan 阅读(1189) 评论(0) 推荐(0) 编辑
摘要: python3.7可以通过https://pypi.tuna.tsinghua.edu.cn/simple/pyinstaller/下载3.6版本的PyInstaller压缩包后,解压到本地文件中,然后,通过python setup.py install 安装PyInstaller 在打包结束后,e 阅读全文
posted @ 2020-06-24 13:24 leon-chan 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 模块名 功能 pygame.cdrom 访问光驱 pygame.cursors 加载光标 pygame.display 访问设备显示 pygame.draw 绘制形状、线和点 pygame.event 管理事件 pygame.font 使用字体 pygame.image 加载和存储图片 pygame 阅读全文
posted @ 2020-06-23 14:13 leon-chan 阅读(138) 评论(0) 推荐(0) 编辑
摘要: parser = ArgumentParser(description='argparse笔记')parser.add_argument('arg1',help='description1')#必填参数arg1parser.add_argument('-a',dest='a',default='a' 阅读全文
posted @ 2020-04-17 09:52 leon-chan 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1、r''(之后的字符串不做任何转义处理) 与普通字符相比,其他相对特殊的字符,其中可能包含转义字符,即那些,反斜杠加上对应字母,表示对应的特殊含义的,比如最常见的”\n”表示换行,”\t”表示Tab等。而如果是以r开头,那么说明后面的字符,都是普通的字符了,即如果是“\n”那么表示一个反斜杠字符, 阅读全文
posted @ 2020-04-09 09:29 leon-chan 阅读(4281) 评论(0) 推荐(0) 编辑
摘要: 1.概念 激活函数的主要作用是提供网络的非线性建模能力。如果没有激活函数,那么该网络仅能够表达线性映射,此时即便有再多的隐藏层,其整个网络跟单层神经网络也是等价的。因此也可以认为,只有加入了激活函数之后,深度神经网络才具备了分层的非线性映射学习能力。 2.特性 可微性: 当优化方法是基于梯度的时候, 阅读全文
posted @ 2020-04-02 13:17 leon-chan 阅读(3313) 评论(0) 推荐(0) 编辑
摘要: 1、wget https://www.php.net/downloads/php-7.4.4.tar.gz 2.tar -zvxf php-7.4.4.tar.gz 3、cd php-7.4.4.tar.gz 4、./configure --prefix=/usr/local/php --with- 阅读全文
posted @ 2020-03-27 15:28 leon-chan 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 在linux系统安装完成后 Ubuntu系统可以使用-apt-get install build-essential命令安装常用的开发编译工具包 centos系统可以使用-yum groupinstall "Development Tools"命令实现同一功能 阅读全文
posted @ 2020-03-27 14:30 leon-chan 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 安装selenium之后,引入webdriver 代码如下(代码没问题): from selenium import webdriver b = webdriver.Chrome() b.get('https://www.baidu.com') b.close() 运行结果如下: unknown e 阅读全文
posted @ 2020-03-23 17:06 leon-chan 阅读(735) 评论(0) 推荐(0) 编辑
摘要: Tomcat下载地址:http://tomcat.apache.org/ 1.下载Tomcat,根据自身系统下载不同版本的客户端 2.解压出压缩包,将解压的路径精确到\bin添加到环境变量中 3.启动服务器:进入命令界面中,输入startup.bat(startup.sh) 4.检测服务器是否开启成 阅读全文
posted @ 2019-12-26 14:04 leon-chan 阅读(157) 评论(0) 推荐(0) 编辑