Loading

摘要: 内核密度估计 seaborn.kdeplot(x=None, *, y=None, shade=None, vertical=False, kernel=None, bw=None, gridsize=200, cut=3, clip=None, legend=True, cumulative=Fa 阅读全文
posted @ 2020-11-23 18:15 lixin2020 阅读(260) 评论(0) 推荐(0)
摘要: stats 使用import scipy.stats as st st.norm.rvs(loc = 0,scale = 0.1,size =10) loc指分布的期望,scale指分布的标准差,size指定返回array的shape(rvs) 也可以使用numpy模块 np.random.norm 阅读全文
posted @ 2020-11-23 16:33 lixin2020 阅读(221) 评论(0) 推荐(0)
摘要: 导入 import matplotlib.pyplot as plt导入 散点图 matplotlib.pyplot.scatter(x, y, s=None, c=None, marker=None, cmap=None, norm=None, vmin=None, vmax=None, alph 阅读全文
posted @ 2020-11-23 14:10 lixin2020 阅读(519) 评论(0) 推荐(0)
摘要: 贝叶斯简介 先验:体现了对参数的了解,设定参数的分布 似然:引入观测数据,反映在给定参数下,观测数据的可信度 后验:基于观测数据,获得参数的分布和可信度 贝叶斯定理:后验正比于似然乘以先验 抛硬币案例 以抛硬币为例 参数为硬币朝上的概率A(表示抛一次硬币时正面朝上的可能性),定义为P(A),此为先验 阅读全文
posted @ 2020-11-23 00:18 lixin2020 阅读(2059) 评论(0) 推荐(0)
摘要: SpringBoot 将属性配置中的url更改为阿里云的公网IP spring.datasource.url=jdbc:mysql://ip:3306/test1?serverTimezone=Asia/Shanghai&allowMultiQueries=true 注意此处仍然使用3306端口(需 阅读全文
posted @ 2020-11-15 16:50 lixin2020 阅读(1083) 评论(0) 推荐(0)
摘要: 线性回归 import numpy as np N=100 x1 = np.random.randn(N) x2 = np.random.randn(N) alpha = 1 sigma = 1 beta = [1,2.5] y = alpha + beta[0]*x1 + beta[1]*x2 + 阅读全文
posted @ 2020-11-15 01:10 lixin2020 阅读(2057) 评论(0) 推荐(0)
摘要: 阿里云 为阿里云里面设置安全组,添加端口3306作为sql的使用端口 MySQL 在阿里云(Ubuntu18)上部署MySQL 使用如下命令进行MySQL的安装 apt-get update apt-get install mysql-server apt-get install mysql-cli 阅读全文
posted @ 2020-11-13 16:27 lixin2020 阅读(770) 评论(0) 推荐(0)
摘要: XML文件 在resource下面建立一个包,命名为mapper,再创建sring config文件 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 阅读全文
posted @ 2020-11-12 18:51 lixin2020 阅读(2854) 评论(0) 推荐(0)
摘要: 数据库 首先要对数据库文件进行一定的设置 即将id列设置为主键(主键不能为空,否则会丧失其唯一的索引),同时设置自增 否则会报出id没有默认值的错误 controller package com.Lee.connect.controller; import com.Lee.connect.mappe 阅读全文
posted @ 2020-11-12 00:02 lixin2020 阅读(444) 评论(0) 推荐(0)
摘要: controller package com.Lee.connect.controller; import com.Lee.connect.mapper.UserMapper; import com.Lee.connect.table.TableUser; import org.springfram 阅读全文
posted @ 2020-11-11 21:26 lixin2020 阅读(430) 评论(0) 推荐(0)