3600c23f6c7e20ac9492f1dd3604019b933923d6,deepchem/models/sklearn_models/__init__.py,SklearnModel,fit,#SklearnModel#Any#,40
Before Change
Xs, ys, ws = [], [], []
for (X_batch, y_batch, w_batch, _) in dataset.iterbatches(batch_size=32):
Xs.append(X_batch)
ys.append(y_batch)
ws.append(w_batch)
X = np.concatenate(Xs)
y = np.concatenate(ys).ravel()
After Change
Fits SKLearn model to data.
X, y, w, _ = dataset.to_numpy()
y, w = y.flatten(), w.flatten()
print("fit")
print("X")
print(X)
print("y")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: deepchem/deepchem
Commit Name: 3600c23f6c7e20ac9492f1dd3604019b933923d6
Time: 2016-04-26
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/sklearn_models/__init__.py
Class Name: SklearnModel
Method Name: fit
Project Name: kengz/SLM-Lab
Commit Name: 8c17debc9dc6552da8c317c0c852b55f03c80c61
Time: 2017-12-24
Author: kengzwl@gmail.com
File Name: slm_lab/env/__init__.py
Class Name: OpenAIEnv
Method Name: reset
Project Name: PyMVPA/PyMVPA
Commit Name: 0dff96e2921e94c97bf8c2314b84cf23b44048f6
Time: 2015-03-24
Author: superstar@medusa.ovgu.de
File Name: mvpa2/tests/test_stelzer_clusterthr.py
Class Name:
Method Name: test_cluster_count