- sklearn
- numpy
from sklearn.linear_model import LinearRegression
import numpy as np
get X_train, Y_train, X_test, Y_test
foo =LWLR(k=1)
foo.fit(X_train,y_train)
preds=foo.predict(X_test)
from sklearn.linear_model import LinearRegression
import numpy as np
get X_train, Y_train, X_test, Y_test
foo =LWLR(k=1)
foo.fit(X_train,y_train)
preds=foo.predict(X_test)