Python
sangba2019
这个作者很懒,什么都没留下…
展开
-
leetcode第一题:两数之和(哈希函数)
leetcode第一题 哈希函数原创 2022-08-18 00:01:16 · 168 阅读 · 1 评论 -
目标识别笔记:鸢尾花数据集GBDT分类的python仿真
利用GBDT分类算法测试鸢尾花数据分类效果原创 2022-06-23 23:30:07 · 766 阅读 · 0 评论 -
GBDT程序中的predict_stages代码
# -*- coding: utf-8 -*-"""Created on Tue May 17 23:39:24 2022@author: DELL"""# Author: Peter Prettenhofer## License: BSD 3 clausecimport cythonfrom libc.stdlib cimport freefrom libc.string cimport memsetimport numpy as npcimport numpy as .转载 2022-05-24 11:05:54 · 147 阅读 · 0 评论 -
Python笔记:两个二维数组利用concatenate实现拼接
import pandas as pdimport numpy as npimport matplotlib.pyplot as pltfrom sklearn.datasets import load_irisiris = load_iris() #加载鸢尾花数据集iris_feature = iris.data #特征数据iris_target = iris.target #分类数据iris_f = np.ones(iris_feature.shape)iris_t = np.原创 2022-04-30 23:43:14 · 3750 阅读 · 0 评论