8768184ae39b420292acc25eda9ae43c3af0752d,python-package/mlbox/model/supervised/regression/stacking_regressor.py,StackingRegressor,fit_transform,#StackingRegressor#,98

Before Change


                print("")
                print("> fitting estimator n°"+ str(c+1) + " : "+ str(clf.get_params())+" ...")

            start_time = time.time()
            y_pred = cross_val_predict(estimator = clf, X = X, y = y, cv = cv)     //for each base estimator, we create the meta feature on train set
            end_time = time.time()

            preds["est"+str(c+1)+"_("+str(end_time-start_time)+"sec)"] = y_pred

            clf.fit(X, y)  // and we refit the base estimator on entire train set

After Change


            reg.fit(X, y)  // and we refit the base estimator on entire train set

        layer = 1
        while(len(np.intersect1d(X.columns, ["layer"+str(layer)+"_"+s for s in preds.columns]))>0):
            layer = layer + 1
        preds.columns = ["layer"+str(layer)+"_"+s for s in preds.columns]            
            
        self.__fittransformOK = True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: AxeldeRomblay/MLBox
Commit Name: 8768184ae39b420292acc25eda9ae43c3af0752d
Time: 2017-06-20
Author: axelderomblay@gmail.com
File Name: python-package/mlbox/model/supervised/regression/stacking_regressor.py
Class Name: StackingRegressor
Method Name: fit_transform


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 646012c26db9335f69216c5d8656090c4211f323
Time: 2020-03-05
Author: crwilcox@google.com
File Name: storage/cloud-client/bucket_lock_test.py
Class Name:
Method Name: bucket


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 6c7f63e58534ff60c524324a1cf8628c838df772
Time: 2020-03-05
Author: crwilcox@google.com
File Name: storage/cloud-client/iam_test.py
Class Name:
Method Name: bucket