**#关键 ##SVM SVM是二分类模型,在特征空间需要间隔最大化。可形式化为一个求解凸二次规划问题。 ###优点: 1、可以有效解决高维特征的分类和回归问题 2、无需依赖全体样本,只依赖支持向量 3、有大量的核技巧可以使用,从而可以应对线性不可分 4、样本量中等偏小照样有较好的效果 ###缺点: ...
分类:
其他好文 时间:
2020-06-21 15:45:00
阅读次数:
53
从零配置dlib(GPU) ? Written by Aquish 参考: [ win10+anaconda+cuda配置dlib ] [ 记一次Win10环境python3.7安装dlib模块趟过的坑 ] [ win10系统python下实现dlib的GPU加速 ] 写在前面 配环境真的是一件考验 ...
分类:
其他好文 时间:
2020-06-05 21:00:07
阅读次数:
133
1 awt Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); double width = screenSize.getWidth(); double height = screenSize.getHeight() ...
分类:
编程语言 时间:
2020-05-31 12:58:52
阅读次数:
60
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist ...
分类:
其他好文 时间:
2020-05-30 23:25:31
阅读次数:
106
84. 柱状图中最大的矩形 题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/largest-rectangle-in-histogram/ 题目 给定 n 个非负整数,用来表示柱状图中各个柱子的高度。每个柱子彼此相邻,且宽度为 1 。 求在该柱状图 ...
分类:
编程语言 时间:
2020-05-30 20:17:18
阅读次数:
73
https://leetcode-cn.com/problems/largest-rectangle-in-histogram/ 这个题没有做啥要求,暴力也能过。 其实这个题有点像接雨水一样,看题解有人用扫描法也做出来了。但是还是用单调栈的方法吧,(明明22天前做出来了,今天却做不出来???) pu ...
分类:
其他好文 时间:
2020-05-30 10:33:39
阅读次数:
55
绘图程序结构简单,逻辑也不复杂,例如在工具栏 (tool_frame) 中选择画线 (draw_line), 在选项栏(top_frame) 设置,然后在画布 (canvas_frame) 中进行绘制即可。其他如画方画园等,无论是操作还是实现,都基本类同。 1. 效果图: 2. 代码: import ...
分类:
其他好文 时间:
2020-05-24 19:21:12
阅读次数:
43
博客转自:https://www.cnblogs.com/yangxi/archive/2012/02/21/2361801.html OpenGL小程序,实现了点击屏幕中矩形拖动的功能。 #include <windows.h> #include <GL/glut.h> static GLint ...
分类:
其他好文 时间:
2020-05-22 00:13:15
阅读次数:
51
一、OC配置的基本条件与工具软件1.1、准备Mac平台,包括实体机平台和虚拟机平台。1.2、下载最新镜像并核对MD5,制作安装U盘。1.3、工具软件:loverConfigurator(Clover配置工具),OpenCoreConfigurator(持续更新中),Hackintool(综合工具),PlistEditPro(Plist文件工具),IORegistryExplorer(路径工具),B
分类:
移动开发 时间:
2020-05-21 10:29:18
阅读次数:
1380
1 from PIL import Image,ImageDraw,ImageFont 2 img = Image.new('RGB',(300,300),'white') 3 # img.show() 4 # 绘制一个矩形 5 draw_obj = ImageDraw.Draw(img) 6 dr ...
分类:
其他好文 时间:
2020-05-19 17:57:20
阅读次数:
52