Code Monkey home page Code Monkey logo

Comments (4)

0Soul avatar 0Soul commented on May 17, 2024

输出所有可能的候选项集 Ck的算法有错误吧,例如输入{0,1,2}, {1,2,3}K=4,此时应该有输出{0,1,2,3},提供的算法只比较列表的前两项,L1==L2才会输出

from ailearning.

Dream-Fu avatar Dream-Fu commented on May 17, 2024

生成候选集的 createC1(dataSet)函数返回值应改成return list(map(frozenset, C1)),否则只能返回obj

from ailearning.

Dajielailin avatar Dajielailin commented on May 17, 2024

输出所有可能的候选项集 Ck的算法有错误吧,例如输入{0,1,2}, {1,2,3}K=4,此时应该有输出{0,1,2,3},提供的算法只比较列表的前两项,L1==L2才会输出

同样表示疑惑,看代码注释aprioriGen——应该是用来生成所有可能k+1维数据,但是L1 == L2就比较奇怪。。。

from ailearning.

Aevox121 avatar Aevox121 commented on May 17, 2024

输出所有可能的候选项集 Ck的算法有错误吧,例如输入{0,1,2}, {1,2,3}K=4,此时应该有输出{0,1,2,3},提供的算法只比较列表的前两项,L1==L2才会输出

同样表示疑惑,看代码注释aprioriGen——应该是用来生成所有可能k+1维数据,但是L1 == L2就比较奇怪。。。

输出所有可能的候选项集 Ck的算法有错误吧,例如输入{0,1,2}, {1,2,3}K=4,此时应该有输出{0,1,2,3},提供的算法只比较列表的前两项,L1==L2才会输出

这里应该没有错误,输入为{0,1,2}和{1,2,3}的时候是一定还有一个输入为{0,1,3},{0,1,2}和{0,1,3}就能组合成{0,1,2,3}

from ailearning.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.