Method undefined for type Java

前端 未结 1 444
太阳男子
太阳男子 2020-12-22 09:28

Having real trouble figuring out where i\'m going wrong on this one. Building a system using WEKA in java to study associations and am trying to implement the Apriori algori

相关标签:
1条回答
  • 2020-12-22 09:34

    Your class is also named Apriori, so you are experiencing a name clash.

    You should change the name of your own class to a different name (e.g. AprioriTest). In the unprobable case where you would really need your class to be named Apriori, then you would have to refer to the library's implementation by it's full name:

    weka.associations.Apriori apriori = new weka.associations.Apriori();
    apriori.buildAssociations(dapriori);
    
    0 讨论(0)
提交回复
热议问题