[scikit-learn] Create sample dataset with specified range and regression coefficients

Onkar Mahajan on2k17nm at gmail.com
Mon Mar 27 00:03:51 EDT 2017


I would like to create a random dataset for Linear regression with specific
regression coefficients (reg.coef_, reg.intercept_ ) and with data in
specific range of values (person age - 0 to 100 as x - axis and y-axis Net
worth 0$ to 5,00,000$). I used sklearn.datasets.make_regression() but I did
not find anything in here that gives me control over range of samples and
regression coefficients (I might be missing something, please correct me if
mistaken)

Thanks,
Onkar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20170327/a602416a/attachment.html>


More information about the scikit-learn mailing list