22b0bbca98fbc54d4c642b5257e713e32a858fa7,tests/test_drift_estimator.py,,test_fit_drift_estimator,#,41
Before Change
def test_fit_drift_estimator():
reader = Reader(sep=",")
dict = reader.train_test_split(Lpath=["data_for_tests/train.csv",
"data_for_tests/train.csv"],
target_name="Survived")
drift_estimator = DriftEstimator()
// drift_estimator.fit(dict["train"], dict["test"])
// assert drift_estimator._DriftEstimator__fitOK
// encoder = Categorical_encoder(strategy="wrong_strategy")
After Change
def test_fit_drift_estimator():
df_train = pd.read_csv("data_for_tests/clean_train.csv")
df_test = pd.read_csv("data_for_tests/clean_test.csv")
drift_estimator = DriftEstimator()
drift_estimator.fit(df_train, df_test)
assert drift_estimator._DriftEstimator__fitOK
def test_score_drift_estimator():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: AxeldeRomblay/MLBox
Commit Name: 22b0bbca98fbc54d4c642b5257e713e32a858fa7
Time: 2019-05-29
Author: hgerard.pro@gmail.com
File Name: tests/test_drift_estimator.py
Class Name:
Method Name: test_fit_drift_estimator
Project Name: shibing624/pycorrector
Commit Name: ee47125e34737db84aafe4908ebf60f052e4f023
Time: 2018-04-11
Author: 507153809@qq.com
File Name: pycorrector/rnn_crf/train.py
Class Name:
Method Name: train
Project Name: thoughtworksarts/EmoPy
Commit Name: da66e64f1eff8b52ae90cccc6f75a75d1af94c50
Time: 2018-02-05
Author: aperez@thoughtworks.com
File Name: examples/convolutional_model.py
Class Name:
Method Name: