<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[qq_34525938的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qq_34525938</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_34525938]]></copyright><item><title><![CDATA[GBDT回归数学推导]]></title><link>https://blog.csdn.net/qq_34525938/article/details/114960076</link><guid>https://blog.csdn.net/qq_34525938/article/details/114960076</guid><author>qq_34525938</author><pubDate>Thu, 18 Mar 2021 06:28:22 +0800</pubDate><description><![CDATA[GBDT回归数学推导
一、写在前面
前面推文讲了 GBDT 做回归的主流程，这篇推文讲数学推导啦～
没有看过前面那一篇文章的童鞋建议先看一下
二、贴一下算法（来自李航《统计学习方法》算法8.4 ）
输入： 训练数据集 T=(x1,y1),(x2,y2),...,(xN,yN),xi∈χ⊆Rn;T={(x_1,y_1),(x_2,y_2),...,(x_N,y_N)}, x_i\in\chi\subseteq R^n;T=(x1​,y1​),(x2​,y2​),...,(xN​,yN​),xi​∈χ⊆Rn;
]]></description><category></category></item><item><title><![CDATA[初识GBDT回归流程]]></title><link>https://blog.csdn.net/qq_34525938/article/details/114503469</link><guid>https://blog.csdn.net/qq_34525938/article/details/114503469</guid><author>qq_34525938</author><pubDate>Sun, 07 Mar 2021 23:26:11 +0800</pubDate><description><![CDATA[一、写在前面
自己对于GBDT的过程不是很了解，所以找了些资料学习了一下。这篇文章会以一个小例子，简单介绍一下用GBDT做回归的大致流程。要是能帮助你理解GBDT回归，那就再好不过了。

这篇文章主要讲述流程，数学推导后面再写篇文章讲述。

二、问题引入
算法是需要数据训练的，让我们先造一些假数据吧 ????

假设上面是5个男生高富帅这三个特征的数据，还有他们受女生欢迎的程度的数据。
现在呢，想用GBDT训练出一个回归模型，用于预测某个男生受女生欢迎的程度？
三、GBDT的流程
3.1 求平均值
第一步，]]></description><category></category></item><item><title><![CDATA[在k8s里面部署自己的go web服务]]></title><link>https://blog.csdn.net/qq_34525938/article/details/109415401</link><guid>https://blog.csdn.net/qq_34525938/article/details/109415401</guid><author>qq_34525938</author><pubDate>Sun, 01 Nov 2020 12:13:28 +0800</pubDate><description><![CDATA[我们的目标

今天，试一下在k8s里面跑自己编写的go web服务。

1、编写可运行的go服务

首先，第一步当然是写一个简单的go服务，这里简单写了一个http的服务。


package main
​
import (
    "fmt"
    "net/http"
)
​
func main() {
    http.HandleFunc("/", hello)
    server := &amp;http.Server{
        Addr: ":8888",
    }
 fmt.P.]]></description><category></category></item><item><title><![CDATA[简单KNN算法实现]]></title><link>https://blog.csdn.net/qq_34525938/article/details/106448664</link><guid>https://blog.csdn.net/qq_34525938/article/details/106448664</guid><author>qq_34525938</author><pubDate>Sat, 30 May 2020 22:54:31 +0800</pubDate><description><![CDATA[knn算法简单实现札记


# 导入鸢尾花数据
from sklearn.datasets import load_iris
data = load_iris()
print(data)

# 转成DataFrame看下数据
import pandas as pd
df = pd.DataFrame(data.data,columns=data.feature_names)
df ['target'] = data.target_names[data.target]
df.head()

# 画个图，更直观]]></description><category></category></item><item><title><![CDATA[Goland等IDE工具加文件头注释]]></title><link>https://blog.csdn.net/qq_34525938/article/details/106318258</link><guid>https://blog.csdn.net/qq_34525938/article/details/106318258</guid><author>qq_34525938</author><pubDate>Sun, 24 May 2020 17:59:24 +0800</pubDate><description><![CDATA[一、效果展示
在网上看到一些教程的时候，看到作者经常创建一个新的文件的时候，会自动在文件头部加上文件头，如下图所示。

二、如何操作
那么这个自动创建注释文件头是如何做到的呢，IDE的全家桶都可以做这个设置，具体路径为
File -&gt; Setting -&gt; Editor -&gt; File and Code Templates -&gt; Go File(选择你需要加文件头的文件扩展名）-&gt; 写模板 -&gt; 搞定！
三、分步操作截图
3.1 File-&gt; Setting

3.]]></description><category></category></item><item><title><![CDATA[IPL+pytesseract识别带干扰验证码]]></title><link>https://blog.csdn.net/qq_34525938/article/details/105904322</link><guid>https://blog.csdn.net/qq_34525938/article/details/105904322</guid><author>qq_34525938</author><pubDate>Sun, 03 May 2020 16:08:04 +0800</pubDate><description><![CDATA[我也曾在茫茫搜索中浪费大量宝贵时间

为了不浪费您的时间，说明一下，本篇博客是用IPL+pytessearct识别验证码

不包括神经网络，识别效果只有20%左右，不过我的需求是自动登陆，能够满足

b站视频：https://www.bilibili.com/video/BV13T4y137Q9/

代码获取：【辣鱼编程】公众号回复【验证码】可以获取ppt、整套代码

一、写在前面

最近想写一个...]]></description><category></category></item><item><title><![CDATA[数据库怎么存储ip地址]]></title><link>https://blog.csdn.net/qq_34525938/article/details/104178298</link><guid>https://blog.csdn.net/qq_34525938/article/details/104178298</guid><author>qq_34525938</author><pubDate>Wed, 05 Feb 2020 08:56:50 +0800</pubDate><description><![CDATA[一、写在前面

今天看项目的时候，想找一个ip地址，但是看到打印的日志里面却有一个长长的十进制 322237939

然后就产生了疑惑，ip地址不是182.232.231.174这种形式的吗？怎么需要转成十进制，怎么映射到十进制

二、需求在哪里

我在想 322237939 这种表示ip地址的方式 比 “192.168.9.115” 这种表示方法好在哪？

我能想到的一点，就是存数据库的时候，i...]]></description><category></category></item><item><title><![CDATA[consul kv迁移]]></title><link>https://blog.csdn.net/qq_34525938/article/details/102769352</link><guid>https://blog.csdn.net/qq_34525938/article/details/102769352</guid><author>qq_34525938</author><pubDate>Sun, 27 Oct 2019 18:24:48 +0800</pubDate><description><![CDATA[consul kv迁移一、写在前面二、consul kv的简单介绍三、consul导出kv到json文件四、替换的需求
一、写在前面
说到consul，很多人会说这是一个可以用于注册服务发现的工具，当然了，consul除了常用的注册服务发现，还可以用来当key-value数据库。这篇文章主要介绍一下consul 键值对数据库迁移。简单来说，当你在测试环境用到了consul的键值数据库存储，当你需要...]]></description><category></category></item><item><title><![CDATA[go channel源码]]></title><link>https://blog.csdn.net/qq_34525938/article/details/101017941</link><guid>https://blog.csdn.net/qq_34525938/article/details/101017941</guid><author>qq_34525938</author><pubDate>Thu, 19 Sep 2019 12:15:10 +0800</pubDate><description><![CDATA[今天在【Go夜读#Channel】的视频，感觉这个视频很长，两个小时，然后比较模糊，听不明白，可能是自己读源码的基础不够吧。不过前面的可视化版本还是不错的

把hchan的属性可视化到下面这种，看起来就很好理解



后面读源码的第二部分就看得云里雾里了，只好去网上找其他博客来看，下面这篇还不错

http://legendtkl.com/2017/08/06/golang-channel-imp...]]></description><category></category></item><item><title><![CDATA[go的信号量semaphore]]></title><link>https://blog.csdn.net/qq_34525938/article/details/100973045</link><guid>https://blog.csdn.net/qq_34525938/article/details/100973045</guid><author>qq_34525938</author><pubDate>Wed, 18 Sep 2019 10:05:59 +0800</pubDate><description><![CDATA[今天学习了go的信号量semaphore，因为之前学习过操作系统的pv操作，所以看这个东西，没有什么很难的地方

简单的记录一些学习笔记：

1、TryAcquire 和 Acquire 分别是不等待和等待

2、一开始看视频，以为collatzSteps是一个必须的东西，看不懂，后面理解了才知道，只是用这个模拟平时编程的任务而已，并不用太在意，这个函数是当奇数的时候，乘3+1；当是偶数的时候，除...]]></description><category></category></item><item><title><![CDATA[go1.13特性 errors改动 Is()函数]]></title><link>https://blog.csdn.net/qq_34525938/article/details/100883331</link><guid>https://blog.csdn.net/qq_34525938/article/details/100883331</guid><author>qq_34525938</author><pubDate>Mon, 16 Sep 2019 12:04:16 +0800</pubDate><description><![CDATA[看了go的doc，对包装wrap不是很理解，看了一上午，原来不是设计模式的那种包装模式，而是fmt.Errorf的包装

打了一小段理解的代码如下：


package main

import (
	"errors"
	"fmt"
)

type UserNotFoundErr struct {
}

func (e UserNotFoundErr) Error() string {
	retu...]]></description><category></category></item><item><title><![CDATA[mongo-go没有找到数据的返回]]></title><link>https://blog.csdn.net/qq_34525938/article/details/100751422</link><guid>https://blog.csdn.net/qq_34525938/article/details/100751422</guid><author>qq_34525938</author><pubDate>Wed, 11 Sep 2019 22:28:14 +0800</pubDate><description><![CDATA[今天偶然间发现，使用go的第三方包调用mongo

1、如果是One（）找一条记录的话，如果找不到，回返回ErrNotFound这个错误

2、但是如果是All（）的话，找很多条记录，就算找不到，也不会返回任何错误

验证代码如下：


package main

import (
	"fmt"
	"github.com/globalsign/mgo"
	"github.com/globalsig...]]></description><category></category></item><item><title><![CDATA[用keras解决回归问题【人工音频第一篇文章】]]></title><link>https://blog.csdn.net/qq_34525938/article/details/100587994</link><guid>https://blog.csdn.net/qq_34525938/article/details/100587994</guid><author>qq_34525938</author><pubDate>Fri, 06 Sep 2019 23:23:07 +0800</pubDate><description><![CDATA[keras解决回归问题目录一、简介二、代码
一、简介
这一篇博客是AI音频的第一篇，想写一下怎么用keras去解决回归问题。首先，keras是一个在tensorflow上面封装的高级的API包，用起来十分的方便。keras的API文档的地址在这里。然后是对于回归问题的理解，回归问题的话，就是输出的y值是连续的，如果输出是标签化的，比如判断一张照片是猫是狗，那就是分类问题；如果判断一个地区的房子的房...]]></description><category></category></item><item><title><![CDATA[gorm不同数据库跑事务]]></title><link>https://blog.csdn.net/qq_34525938/article/details/98306106</link><guid>https://blog.csdn.net/qq_34525938/article/details/98306106</guid><author>qq_34525938</author><pubDate>Sat, 03 Aug 2019 09:26:53 +0800</pubDate><description><![CDATA[func (d *MySqlDao)Tran(v int){
	 t:=d.db.Begin()
	 s:=t.Exec("insert into sharing.collections values(?,?);",v,v)
	 s.Exec("insert into promoter.anchors values(?,?);",v,v)
	 t.Commit()
}

之前以为gorm连接到时...]]></description><category></category></item><item><title><![CDATA[golang err错误码的细分]]></title><link>https://blog.csdn.net/qq_34525938/article/details/98014515</link><guid>https://blog.csdn.net/qq_34525938/article/details/98014515</guid><author>qq_34525938</author><pubDate>Thu, 01 Aug 2019 06:11:04 +0800</pubDate><description><![CDATA[package main

import (
	"fmt"
)

type UpdateNotingErr struct {
	error
	Code int
}

func main(){
	e:=returnErr()
	v:=e.(*UpdateNotingErr)
	fmt.Println(v.Code)
}

func returnErr()error{
	return &amp;Up...]]></description><category></category></item><item><title><![CDATA[图最小路程]]></title><link>https://blog.csdn.net/qq_34525938/article/details/97870744</link><guid>https://blog.csdn.net/qq_34525938/article/details/97870744</guid><author>qq_34525938</author><pubDate>Wed, 31 Jul 2019 05:55:26 +0800</pubDate><description><![CDATA[package main

import (
	"fmt"
)

func main(){
	var n int
	fmt.Scan(&amp;n)

	var arr [][]int //二维数组初始化
	for i := 0; i &lt; n+1; i++ {
		tmp := make([]int, n+1)
		arr = append(arr, tmp)
	}

	var a int...]]></description><category></category></item><item><title><![CDATA[go的标准输入输出]]></title><link>https://blog.csdn.net/qq_34525938/article/details/97702485</link><guid>https://blog.csdn.net/qq_34525938/article/details/97702485</guid><author>qq_34525938</author><pubDate>Tue, 30 Jul 2019 00:12:42 +0800</pubDate><description><![CDATA[好久没有刷算法题了，感觉自己的算法能力都退步了

最近想用go刷一些算法题，首先要学的就是go怎么与标准输入输出啦


package main

import "fmt"

func main(){
	var a int
	var b string
	fmt.Scan(&amp;a)
	fmt.Scan(&amp;b)
	fmt.Print("a=",a)
	fmt.Print("b=",b)
...]]></description><category></category></item><item><title><![CDATA[go的sync.Map]]></title><link>https://blog.csdn.net/qq_34525938/article/details/91409988</link><guid>https://blog.csdn.net/qq_34525938/article/details/91409988</guid><author>qq_34525938</author><pubDate>Mon, 10 Jun 2019 23:42:58 +0800</pubDate><description><![CDATA[今天在写代码的时候，发现了一个bug，查到最后居然是go的sync.Map的key是有判断类型的

下面的a是uint32类型，然后硬编码的1是int类型，因为类型不一样，所以输出的值是nil

记录一下




...]]></description><category></category></item><item><title><![CDATA[Apns读书笔记一（overview）]]></title><link>https://blog.csdn.net/qq_34525938/article/details/91352540</link><guid>https://blog.csdn.net/qq_34525938/article/details/91352540</guid><author>qq_34525938</author><pubDate>Sun, 09 Jun 2019 14:05:09 +0800</pubDate><description><![CDATA[https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html#//apple_ref/doc/uid/TP40008194-CH8-SW1

今天花了点时间把apns推送的概括看了一遍，觉得对apns推送的...]]></description><category></category></item><item><title><![CDATA[go http server graceful exit]]></title><link>https://blog.csdn.net/qq_34525938/article/details/89330096</link><guid>https://blog.csdn.net/qq_34525938/article/details/89330096</guid><author>qq_34525938</author><pubDate>Tue, 16 Apr 2019 11:32:24 +0800</pubDate><description><![CDATA[今天做了一个go语音的http server优雅退出的测试实验


package main

import (
	"context"
	"fmt"
	"log"
	"net/http"
	"os"
	"os/signal"
	"syscall"
	"time"
)

func main() {
	http.HandleFunc("/", func(w http.ResponseWriter, r...]]></description><category></category></item></channel></rss>