asaini / Apriori

Python Implementation of Apriori Algorithm for finding Frequent sets and Association Rules
MIT License
771 stars 435 forks source link

datafile is opened without close function #20

Open youyuge34 opened 7 years ago

youyuge34 commented 7 years ago

Inside the function dataFromFile(fname) ,the file is opened. But the file close function is not called, which is not safe. Suggest that call the with open...as... instead of open function.

zoeleesss commented 6 years ago

I have implemented this lift feature with more datasets. See my repo here: https://github.com/zoeleesss/Apriori