自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(48)
  • 资源 (5)
  • 收藏
  • 关注

原创 focal loss的一些思考

focal loss的一些思考关于分类器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入关于分类器分类器是通常输出的是属于某一类的概率。通常来说,一个强的分类器在预测的分数上很好的区分样本,一个弱的分类器则容易混淆。我们

2021-09-18 09:46:00 899

原创 将检测看做机器学习问题

将检测看做机器学习问题检测问题经典的建模经典建模的问题问题1:box太多的问题分类规则不明确输出的冗余前后背景平衡(经典问题)检测问题经典的建模检测的问题是输入为一张图片,输出一些可能是框,并且对框进行分类。所以检测的建模可以形式化的表达成:Detection = classification(boxes)label对于分类来说,背景类别为0,前景类别为1对于box来说,一个图像里产生的框是无穷的分类的规则(对每个框归属一个类别)如果一个框在GT的集合里,则类别为{1,C}否则,为背景

2021-09-07 20:45:36 199

原创 检测改进的一些方法

比较好用的方法就是 1.扩大图像输入 2.更好的backbone 3.FPN 4.增强浅层的feature的semantic信息

2018-07-24 19:17:34 467

原创 Find All Numbers Disappeared in an Array

Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements of [1, n] inclusive that do not appear in this array.Coul...

2018-07-05 20:37:54 163

原创 Path Sum III

You are given a binary tree in which each node contains an integer value.Find the number of paths that sum to a given value.The path does not need to start or end at the root or a leaf, but it mus...

2018-07-05 20:04:04 221

原创 House Robber III

The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each house has one and only one parent house. After a tour...

2018-07-03 18:05:17 156

原创 Coin Change

You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money...

2018-07-03 17:15:16 153

原创 Longest Increasing Subsequence

Given an unsorted array of integers, find the length of longest increasing subsequence.Example:Input: [10,9,2,5,3,7,101,18]Output: 4 Explanation: The longest increasing subsequence is [2,3,7,101...

2018-07-03 15:01:04 134

原创 Find the Duplicate Number

Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate number, fi...

2018-07-03 11:44:06 105

原创 Move Zeroes

Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.Example:Input: [0,1,0,3,12]Output: [1,3,12,0,0]Note:You mus...

2018-07-03 11:26:47 147

原创 Perfect Squares

Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.Example 1:Input: n = 12Output: 3 Explanation: 12 = 4 + 4 + 4.Example 2...

2018-07-03 11:10:15 227

原创 Search a 2D Matrix II

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted in ascending from left to right.Integers in each ...

2018-07-03 10:23:18 117

原创 Product of Array Except Self

Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].Example:Input: [1,2,3,4]Output: ...

2018-07-02 20:45:39 125

原创 Lowest Common Ancestor of a Binary Tree

Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes p ...

2018-07-02 20:30:09 104

原创 Invert Binary Tree

Invert a binary tree.Example:Input: 4 / \ 2 7 / \ / \1 3 6 9Output: 4 / \ 7 2 / \ / \9 6 3 1先序遍历并交换左右的元素。/** * Definition for a binary tree ...

2018-07-02 19:44:19 111

原创 Maximal Square

Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area.Example:Input: 1 0 1 0 01 0 1 1 11 1 1 1 11 0 0 1 0Output: 4这题是一道简单的动态规划。...

2018-07-02 19:38:48 81

原创 Majority Element

Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the array is non-empty and the majority element alwa...

2018-07-02 19:09:22 100

原创 Linked List Cycle II

Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Note: Do not modify the linked list.Follow up:Can you solve it without using extra space?这题比较经典,首先...

2018-07-02 12:06:23 97

原创 Minimum Size Subarray Sum

Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't one, return 0 instead.Example: Input: s = 7, n...

2018-07-02 10:01:06 94

原创 Reverse Linked List

Reverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULLFollow up:A linked list can be reversed either iteratively or recursivel...

2018-06-30 19:54:27 92

原创 Remove Linked List Elements

Remove all elements from a linked list of integers that have value val.Example:Input: 1->2->6->3->4->5->6, val = 6Output: 1->2->3->4->5这题比较简单,有一点要记住的是,如果删除当前节点,那么...

2018-06-30 19:43:11 104

原创 Happy Number

Write an algorithm to determine if a number is “happy”.A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares...

2018-06-30 19:24:47 94

原创 Bitwise AND of Numbers Range

201. Bitwise AND of Numbers RangeGiven a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive.Example 1:Input: [5,7]Output: 4...

2018-06-30 17:09:53 104

原创 编译caffe2源码遇到的坑

编译caffe2源码遇到的坑最新的caffe2 已经移到pytorch中去了,直接下载其中的代码然后按照官方教程就可以了。编译遇到的问题:make[3]: Entering directory ‘/home/ubuntu/caffe2-master/build’ make[3]: Leaving directory ‘/home/ubuntu/caffe2-master/build’ make[3...

2018-06-22 18:46:13 1372

原创 利用caffe工具将图片转换成lmdb

首先生成train.txt,val.txt。里面的内容就是(图片路径,标签). 首先把$CAFFE_ROOT/examples/imagenet目录下的东西全复制过来 然后,vi create_imagenet.sh,改改里面的路径。EXAMPLE=/home/ds/PycharmProjects/mnistDATA=/home/ds/PycharmProjects/mnistTOOLS=/

2017-02-24 20:40:51 400

原创 lenet-5的理解

lenet-5是卷积神经网络的一种典型的网络结构。以下试图解释以下该网络结构。卷积公式如下: 首先,输入是一张图片,这张图片是32*32的。。 然后用6个5*5的卷积核,于是就有了C1,变成了6个28*28的feature maps。其中,C1中的每个像素与前一层的5*5个像素相连接,所以共有6*28*28*(5*5+1)=122304个参数,其中,6是指feature maps个数,28*

2016-12-20 20:39:16 2224

转载 线性回归分析中的哑变量

最近偶尔在重温统计学,发现自己工作后用了各种高级的统计分析方法,各种统计模型,却忽视了统计学中一些最基础的知识,而这些知识是所有这些高级方法的基础,基础不扎实,高级方法用起来真觉得底气不足,今天看到哑变量在回归分析中的应用,总结如下: 哑变量(Dummy Variable),也叫虚拟变量,引入哑变量的目的是,将不能够定量处理的变量量化,如职业、性别对收入的影响,战争、自然灾害对GDP的影响,季节对

2016-12-06 11:17:42 11968

转载 Spark在爱奇艺的应用实践

http://files.meetup.com/16395762/Spark%20in%20iQiyi.pdf

2016-11-26 18:27:08 444

转载 降维算法(二)—— MDS

原文 http://blog.sina.com.cn/s/blog_c493e7920101ko27.html

2016-11-16 18:45:58 758

转载 降维算法(一)—— PCA算法

原文http://blog.sina.com.cn/s/blog_c493e7920101kh86.html 降维算法(一)—— PCA算法 信息技术的发展,使得人们获取的数据呈指数级的形式增长,但大量的数据也给人们造成了“数据丰富但知识匮乏”的现象。数据降维技术就是解决这一问题的技术之一。有效的数据降维技术能够揭示原始数据的内在结构和联系,不仅可以消除数据间的冗余,以简化数据,提高计算效率,还

2016-11-16 14:53:33 1379

翻译 spark MLLib简介

Machine Learning Library (MLlib) Guide MLlib is Spark’s machine learning (ML) library. Its goal is to make practical machine learning scalable and easy. At a high level, it provides tools such as:ML A

2016-11-15 11:13:32 455

原创 spark sql中的sqlcontext与hivecontext区别

很困惑这两者有什么区别,然后谷歌。 One of Sparks’s modules is SparkSQL. SparkSQL can be used to process structured data, so with SparkSQL your data must have a defined schema. In Spark 1.3.1, SparkSQL implements dataf

2016-11-14 20:11:14 5516 2

原创 Scala面向对象

package com.zyh.scala.class_test/** * Created by root on 16-11-12. */abstract class Person{ var name = "zhangsan"; val id = "1001"; private var salary = 100; def eat() { println("eatting

2016-11-14 19:54:05 257

转载 Scala中的var val/def

原文:http://blog.csdn.net/q1059081877q/article/details/46917681val和def都会被编译为一个方法,区别是:val会被编译器保证运行时其值不能改变,但def不同,是可以改变的。val init : String===>public abstract String init()var则不同,其会被编译为

2016-11-13 11:05:23 420

原创 支持度,置信度,提升度

例题: 则: “茶叶→咖啡”的置信度为 Confidence(X→Y) = 450 / 500 = 90%茶叶→咖啡“的提升度为 Lift(X→Y) = Confidence(X→Y) / P(Y) = 90% / ((450+450) / 1000) = 90% / 90% = 1 其中,P(Y) = 买了咖啡的人数/总人数。

2016-11-12 12:24:17 3422

原创 spark sql group by 出现问题

hiveContext.sql("select time,count(*) from page_click group by id").collect.foreach(println)//报错org.apache.spark.sql.AnalysisException: expression 'page_click.`time`' is neither present in the group

2016-11-09 19:06:38 11486 2

转载 spark history server学习

原文:http://bit1129.iteye.com/blog/2174673 本文包括如下内容:Spark History Server的作用 配置Spark History Server 运行Spark History Server 查看Spark程序的运行信息 Spark History Server的作用 在 运行Spark应用程序的时候,driver会提供一个webUI用于展

2016-11-04 10:41:05 703

转载 Apache Spark 的资源管理和 YARN 的 App 模型

Apache Spark 的资源管理和 YARN 的 App 模型 原文地址:http://blog.cloudera.com/blog/2014/05/apache-spark-resource-management-and-yarn-app-models/ 一个关于在YARN下运行 Spark 和 MapReduce 如何管理资源的简单介绍 应用 Executors Active Dr

2016-11-01 19:39:45 417

转载 Spark中的资源调度

Spark中,每个Application对应一个SparkContext。对于SparkContext之间的调度关系,取决于Spark的运行模式。对Standalone模式而言,Spark Master节点先计算集群内的计算资源能否满足等待队列中的应用对内存和CPU资源的需求,如果可以,则Master创建Spark Driver,启动应用的执行。宏观上来讲,这种对应用的调度类似于FIFO策略。在Me

2016-11-01 19:38:48 861

原创 Hadoop2.7.3的安装详细过程(伪分布式)

1.安装java 2.设置ssh免密码登入 3.安装Hadoop1.安装java:rpm -ivh jdk-8u101-linux-i586.rpm然后设置环境变量vi /etc/profile在最末端添加:#set java env JAVA_HOME=/usr/java/jdk1.8.0_101 PATH=$JAVA_HOME/bin:$PATH CLASSPA

2016-10-29 18:19:44 4294 1

VC++6.0编译器支持win7

VC++是一款功能非常强大的编译器!非常适用于初学者,界面简洁

2014-12-09

STL源码剖析

STL是一个非常强大的库,其效率是世界高水平认可的,C++将其融入了其语言

2014-12-09

linux设备驱动程序

linux设备驱动程序,驱动开发必备书籍,也是入门书籍

2014-12-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除