1. Apriori Algorithm

    在大规模数据集中寻找关系:

    • 频繁项集:经常出现在一块的物品的集合
    • 关联规则:暗示两种物品之间可能存在很强的关系

    如何定量地定义关系?如何定义频繁?

    啤酒,尿布的故事为例,

    • 支持度:数据集中包含该项集的记录所占的比例。比如一共有5条交易记录,其中4条出现了{尿布},则尿布的支持度就为4/5。再比如,如果数据集中有3条同时出现了{尿布,啤酒},则项集{尿布,啤酒}的支持度就为3/5

    • 置信度:针对关联规则定义。我们现在知道了{尿布}的支持度为4/5{尿布,啤酒}的支持度为3/5,呢么{尿布}->{啤酒}的关联规则的可信度可以被定义为“支持度({尿布,啤酒})/支持度({尿布 ...

    read more

    There are comments.

  2. OpenCV settings on Mac

    Install homebrew

    Type the following directions to install homebrew

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    Install OpenCV

    After installing homebrew, we just need to type the following direction to install OpenCV

    brew install opencv
    

    It will not always works well. There may be kind ...

    read more

    There are comments.

  3. Python File Operating

    Python's file operating is so powerful that you may use python to operate your file system as shell did. In the following topics, I will do some introduction of python's file operations.


    Package

    We need to import some of the packages provided defaultly by python. All of it ...

    read more

    There are comments.

  4. Python Print to a File

    One day, when I was writing a program that requires a 2D map. All things are well designed and the random map is printed to the console screen. However, I found what I need is not to show my some maps, but to the computer, which to let the computer ...

    read more

    There are comments.

  5. Vim + Youcompleteme Settings

    Vim, as an excellent editor which have already been admitted by many coders, may be the first choice to editor C/C++ program.

    Vim can do many things fluently in editing, however, vim can't do everything in coding. In many IDEs, the basic function is to complete a variable ...

    read more

    There are comments.

« Page 2 / 2

blogroll

social