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

Andreas Mueller t3kcit at gmail.com
Mon Mar 27 10:57:57 EDT 2017


Yes, make_regression is for quickly making a random task.
Doing what you want should be about three lines of numpy, why do you 
need a function for it?


On 03/27/2017 12:03 AM, Onkar Mahajan wrote:
> 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
>
>
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn

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


More information about the scikit-learn mailing list