The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

david robben (1) [Avatar] Offline
#1
in the logRegres.py ,why do you make the datamat become 100*3,as we know there are two features in the testSet.txt. you make it three features by adding a float 1.0 as the first.can we just use a 100*2 dataset.?
peter.harrington (82) [Avatar] Offline
#2
Re: chapter five logistic regression:a small question
There actually are three features: X2, X1, and X0. X0 is the a constant value.