bd5f9715eef832f5f94eaf92f1a82fc3cdfd8ef5,examples/example_feature_types.py,,,#,24

Before Change


X, y = sklearn.datasets.fetch_openml(data_id=179, return_X_y=True)

// y needs to be encoded, as fetch openml doesn"t download a float
y = preprocessing.LabelEncoder().fit_transform(y)

X_train, X_test, y_train, y_test = \
     sklearn.model_selection.train_test_split(X, y, random_state=1)

After Change


// Load Australian dataset from https://www.openml.org/d/40981
bunch = data = sklearn.datasets.fetch_openml(data_id=40981, as_frame=True)
y = bunch["target"].to_numpy()
X = bunch["data"].to_numpy(np.float)

X_train, X_test, y_train, y_test = \
     sklearn.model_selection.train_test_split(X, y, random_state=1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: automl/auto-sklearn
Commit Name: bd5f9715eef832f5f94eaf92f1a82fc3cdfd8ef5
Time: 2020-08-06
Author: 44504424+franchuterivera@users.noreply.github.com
File Name: examples/example_feature_types.py
Class Name:
Method Name:


Project Name: rkcosmos/deepcut
Commit Name: 0347e36737b25671dff14c6c1bbbe5d090d71a06
Time: 2017-06-28
Author: titipata@allenai.org
File Name: deepcut/train.py
Class Name:
Method Name: train_model


Project Name: keras-team/autokeras
Commit Name: cdbb8791ec13d03fd1fcf2580111db677a3ebc29
Time: 2019-12-15
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/head.py
Class Name: ClassificationHead
Method Name: set_state