machinelearninginaction icon indicating copy to clipboard operation
machinelearninginaction copied to clipboard

Source Code for the book: Machine Learning in Action published by Manning

Results 15 machinelearninginaction issues
Sort by recently updated
recently updated
newest added

line 53, in file2matrix classLabelVector.append(int(listFromLine[-1])) ValueError: invalid literal for int() with base 10: 'largeDoses' the data in datingTestSet.txt like this 40920 8.326976 0.953952 largeDoses the error is in kNN line...

Fixed something about the confidence of a multi items(over 2) frequent set with one-item consequent won't be calculated in function generateRules(). Considerate the situation that a frequent lists L=[[{0},{1},{2}],[{0,1},{1,2},{0,2}],[{0,1,2}],[]], L[2][0]={0,1,2}....

When converting sets to lists, the ordering is non-deterministic. For example if the input to aprioriGen was: ([{0,1}, {1,2}, {2,0}], 3) If the lists stay in the same order as...

In your source code of Chapter 5, [Line26](https://github.com/pbharrin/machinelearninginaction/blob/master/Ch05/logRegres.py#L26), the weight's dimension is `n + 1`. But other places, like [Line58](https://github.com/pbharrin/machinelearninginaction/blob/master/Ch05/logRegres.py#L58) and [Line67](https://github.com/pbharrin/machinelearninginaction/blob/master/Ch05/logRegres.py#L67), only have `n`. I think you may not...

May I ask about the "Ek = calcEk(oS, k)" in the selectJ function, why not just use the Ek calculated in eCache.

I am confused about the smoP why validEcacheList = nonzero(oS.eCache[:,0].A)[0] in the selectJ thank you.

bigL = [v[0] for v in sorted(headerTable.items(), key=lambda p:str(p[1]))] AttributeError: 'NoneType' object has no attribute 'items'

I have read your book about (Machine Leanring in a Action). I very like this book ,i want to study more.So iF you have another book about data minning published?