Closed jbencook closed 10 years ago
Really good :~)
I had tried to write this example but failed.
there are some data preprocessing functions in sklearn.preprocessing http://scikit-learn.org/stable/modules/classes.html#module-sklearn.preprocessing maybe they are more flexible than you write in utils.py
Yeah, I chose to stick as closely as possible to the PMTK matlab code instead of writing everything in a perfectly pythonic manner. The two main reasons I did this are:
centerCols()
, a python developer can simply call center_cols()
instead of figuring out which sklearn function to use.That said, I'm happy to refactor in order to take advantage of sklearn if people think that's best.
Agree~~~
Added linregPolyVsDegree.py from chapter 1 and some utility functions