上一页 1 2 3 4 5 6 7 ··· 22 下一页
摘要: MIL陷入局部最优,检测到局部,无法完整的检测到物体。将instance划分为空间相关和类别相关的子集。在这些子集中定义一系列平滑的损失近似代替原损失函数,优化这些平滑损失。 C-MIL learns instance subsets, where the instances are spatial 阅读全文
posted @ 2019-04-14 23:52 demianzhang 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: upload 403 error need to change the name in setup.py upload 400 error need to change the version of the same name pkg register: python setup.py regist 阅读全文
posted @ 2019-03-31 20:43 demianzhang 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Trie build and search 加 . 正则匹配一个任意字母 ,递归处理,注意p应指向当前遍历字母对应的结点 word search II 1. word list insert to Trie 2. dfs search 421 数组中任意两个数的最大异或值 思路:建树插入所有数,对每 阅读全文
posted @ 2019-03-15 18:10 demianzhang 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Wildcard-Matching & Regular Expression Matching Wildcard-Matching中?匹配任意一个字符,*匹配任意长度字符串包括空字符串 方法一:记录*的位置,分别考虑*匹配空,匹配一个,匹配两个,三个... 方法二:DP dp[i][j]=1表示s[ 阅读全文
posted @ 2019-03-08 22:34 demianzhang 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 转自:0giant 管道允许在进程之间按先进先出的方式传送数据,是进程间通信的一种常见方式。 管道是Linux 支持的最初Unix IPC形式之一,具有以下特点: 1) 管道是半双工的,数据只能向一个方向流动;需要双方通信时,需要建立起两个管道; 2) 匿名管道只能用于父子进程或者兄弟进程之间(具有 阅读全文
posted @ 2019-03-06 14:25 demianzhang 阅读(513) 评论(0) 推荐(0) 编辑
摘要: blog 这次遇到的问题是sys.path的输出不包含'',导致无法import当前文件和文件夹 When no ._pth file is found, this is how sys.path is populated on Windows: An empty entry is added at 阅读全文
posted @ 2019-03-02 16:45 demianzhang 阅读(382) 评论(0) 推荐(0) 编辑
摘要: Ubuntu子系统安装和删除yarn 在 Debian 或 Ubuntu 上,需要用 Debian 包仓库来安装 Yarn。 首先需要配置仓库: Ubuntu安装yarn Ubuntu删除yarn 测试 待续 无法执行powershell(ps1)脚本,解决方案 安装node npm 博客 阅读全文
posted @ 2019-02-26 14:21 demianzhang 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 大数乘法 string solve(string, string) 设置中间进位变量c和累加变量d(从上到下考虑,不用存储中间变量) 1 string multiply(string num1, string num2) { 2 int len1 = num1.size(); 3 int len2 阅读全文
posted @ 2019-02-23 20:58 demianzhang 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 1. <>一种为泛型,作为类型模板 另一种如下表示类型转换( Type Assertion or casting) 2. 函数完整形式:参数列表 => 返回类型 = 函数体,...args: 数组表示任意个数的参数 3. 依赖注入typescript-ioc github:IoC Container 阅读全文
posted @ 2019-02-17 18:38 demianzhang 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Async Await async 用于申明一个 function 是异步的,而 await 用于等待一个异步方法执行完成 async 会将其后的函数(函数表达式或 Lambda)的返回值封装成一个 Promise 对象,而 await 会等待这个 Promise 完成,并将其 resolve 的结 阅读全文
posted @ 2019-02-16 17:08 demianzhang 阅读(121) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 22 下一页