如果说感知机是最最最简单的分类算法,那么线性回归就是最最最简单的回归算法,所以这一篇我们就一起来快活的用两种姿势手撸线性回归吧算法介绍线性回归通过超平面拟合数据点,经验误差一般使用MSE(均平方误差),优化方法为最小二乘法,算法如下:假设输入数据为X,输出为Y,为了简单起见,这里的数据点为一维数据(更好可视化,处理方式没区别);MSE公式为:(\frac{1}{N}\sum_{i=1}^{N...
开发前台登陆的时候发现前台登陆错误不提示,看了一下Typecho代码后发现后台是用JS实现的,我不太想用JS实现,那就PHP呗。直接给出代码,把下面的代码放到functions.php,然后调用xNotice方法即可/** * 接管 Typecho 提示 * * @return void */ function xNotice() { $notice = json_decod...
问题最近在学习MyBatis,使用的是Mapper方式查询数据库,查库的时候一直报错Cause: org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'created' from result set. Cause: java.lang.IllegalArgumentExc...
错误太长,标题写不完Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 50; columnNumber: 17; 元素类型为 “configuration” 的内容必...
前言想做夜间模式很久了,只是苦于JS小白,不会操作Cookie,最近看到QQ爹的《网站夜间模式的实现》这个功能主要包括三个部分夜间模式开关按钮:用来手动切换夜间模式的,自动存储显示模式 Cookie。自动夜间模式:当显示模式 Cookie 为空时并且浏览器时间大于等于22点小于6点时会自动进入夜间模式,并存储 Cookie。后端处理:PHP判断是否有显示模式 Cookie,有的话直接输出夜间...
修改Spzac主题时发现侧边栏滚动固定不起作用了,看了一下Console也没输出,证明 window.onscroll 事件没有生效,排查了很久。一开始以为JS代码拼错了,但是看了半天没有问题。。。 $(window).on('scroll', function () { var t = $(document).scrollTop(); var r = ...
修改主题的时候发现 clone 的元素 hover 事件不生效,百度才知道原来要用 on 来绑定事件才能应用到JS生成DOM元素上。MD,我还检查了半天返现也没有拼写错误,就是移动菜单弹不出来但是查了查发现 on 并没有 hover 事件,好吧只能用 mouseover、moseleave。$("#navbar .menu-item").on('mouseover mou...
需求领导让我出几个 MySQL 的面试题,搞硬件运维的,会几个简单的就行,所以上网搜罗自己整理了一下。现有数据CREATE DATABASE IF NOT EXISTS TEST DEFAULT CHARSET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI; USE TEST; CREATE TABLE IF NOT EXISTS STUDENT ( ID I...
博主最近在大改自用主题,在下面列出的都是博主弄博客主题非常有用的CSS片段。垂直居中(未知宽高,常用于图文居中对齐)display: flex; justify-content: center; align-items: center;清除浮动,(解决就浮动元素父元素高度为0).clearfix:after { content: "\00A0"; disp...
友情链接
最近评论
  1. see this page : Hi, i read your blog from time to time and i own a similar one and i was just curious if you get a lot
    of spam feedback? If so how do you stop it, any plugin or
    anything you can advise? I get so much lately it's driving me insane so any support is very much appreciated.
  2. click to read more : Hi there, just became alert to your blog through Google, and found that it's really
    informative. I'm gonna watch out for brussels. I will be grateful if
    you continue this in future. Numerous people will be benefited
    from your writing. Cheers!
  3. Thiết kế phòng hát karaoke : I got this website from my pal who told me on the topic of this site and now this time I am visiting this site and
    reading very informative articles or reviews here.
  4. Lil Durk : Hello I am so grateful I found your website, I really found you by accident, while
    I was researching on Google for something else, Regardless I am here now and would just like to say
    thanks for a marvelous post and a all round exciting
    blog (I also love the theme/design), I don’t have time to read it all at the moment but I have book-marked it and also
    added your RSS feeds, so when I have time I will be back to read more, Please do keep up the superb b.
  5. Sbobet99 : Howdy thiiѕ is kinda of off tօpic but Ι was wondering if blogs use
    WYSIWYG editors or if you have to manually code with HTML.I'm starting a blog so᧐n butt have no coding skills so I wantеd to get guidаnce
    from someone with experience. Any help would be enormously аpprecіated!
Top