def psgd_method(args):
"""
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, data = args
X_train, y_train = data
sgd.fit(X_train, y_train)
return sgd
评论列表
文章目录