Doesn't work with only one independent variable
mb52089 opened this issue · 3 comments
mb52089 commented
This gem doesn't seem to work with examples that have only one independent variable. Is that by design?
daugaard commented
Can you provide an example?
If you have one independent variable to predict a dependent variable with a linear relationship wouldn't you just have a simple ratio to calculate?
mb52089 commented
Thanks for the reply. I figured it out. The x value still needs to be an
array within an array, even though it's just one variable.
…On Tue, Jul 23, 2019 at 9:15 PM Søren Blond Daugaard < ***@***.***> wrote:
Can you provide an example?
If you have one independent variable to predict a dependent variable with
a linear relationship wouldn't you just have a simple ratio to calculate?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AANV5YUFSV3G4S7YCH7J3D3QA6UJ3A5CNFSM4IF6L2S2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2U3XNA#issuecomment-514440116>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANV5YROARLS5HGPGTZ2SG3QA6UJ3ANCNFSM4IF6L2SQ>
.
--
Michael Burke
404.271.8652
LinkedIn <https://www.linkedin.com/in/michael-burke-6418681/>
daugaard commented
Arrr yes that is correct, it still needs to be 2 dimensional array.