def psgd_method_1(sgd, X_train, y_train):
"""
SGD method run in parallel using map.
Parameters
----------
args: tuple (sgd, data), where
sgd is SGDRegressor object and
data is a tuple: (X_train, y_train)
Returns
-------
sgd: object returned after executing .fit()
"""
sgd.fit(X_train, y_train)
return sgd
评论列表
文章目录