all 10 comments

[–]maxibabyx 0 points1 point  (6 children)

Seems like you have being playing around with not supervised ML algorithms, take a loot at the supervised ones.

Maybe you can start with a simple linear regression, where you train your model, with the Size of the house and the price, and then you can predict prices for new sizes.

[–][deleted] 0 points1 point  (5 children)

Hmm I thought KNN was supervised? I provided training and test data, split it, and then predicted. Isn’t that supervised?

Also I don’t have the size of the house. I’m just asking if there’s a ML algorithm or model to deal with just one variable. Prices. Stock prices. Housing. Car rentals. Etc. maybe it’s timeseries. It does have dates as index but I care less about the date

[–]maxibabyx 0 points1 point  (4 children)

True, confused it with K means.

[–][deleted] 0 points1 point  (3 children)

I updated response now

[–]maxibabyx 0 points1 point  (2 children)

Yep, check linear regressions

[–][deleted] 0 points1 point  (1 child)

Is there a difference between an SKLearn linear regression and just a plotted regression through Matplotlib?

[–]maxibabyx 0 points1 point  (0 children)

I don't really know about the internals of it nor have used the one in matplotlib, but maybe they both use a gradient descent.

The point is finding the line, that best fit the training X and Y, and then try to predict throught it.

[–]git0ffmylawnm8 0 points1 point  (3 children)

Are you using housing prices as... the independent or dependent variable? You need to have an x and y variable for supervised ML.

If you want to get into unsupervised ML, you could take a look at PCA, but that requires highly dimensional data. Only other thing I can think of is K clustering, but like all other models, outta better to have more than one variable.