| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Silly mistake on my part -- thanks for correcting it. It was also corrected in another change. |
Sorry, something went wrong.
|
@norvig There is just one small problem left: missing import on utils.py for the Counter class. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In the mode function in learning.py, there is a problem in this the line:
(item, count) = Counter(data).most_common(1)
That's because the most_common method returns a list. Therefore, the unpacking fails. That's the reason the build is currently failing as well. This MR fixes that and adds a test for the mode function