f1b5b349fbffae3ae1ca0a3ca862ba7b81ddbaa1,mlbox/model/classification/classifier.py,Classifier,feature_importances,#Classifier#,175
Before Change
for i, col in enumerate(self.__col):
importance[col] = np.mean(
filter(lambda x: x != 0, [k[col] if col in k else 0 for k in importance_bag])) // noqa
else:
After Change
importance_bag.append(d.copy())
for i, col in enumerate(self.__col):
list_filtered = filter(lambda x: x != 0,
[k[col] if col in k
else 0 for k in importance_bag])
importance[col] = np.mean(list(list_filtered)) // noqa
else:
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 3
Instances
Project Name: AxeldeRomblay/MLBox
Commit Name: f1b5b349fbffae3ae1ca0a3ca862ba7b81ddbaa1
Time: 2019-06-07
Author: hgerard.pro@gmail.com
File Name: mlbox/model/classification/classifier.py
Class Name: Classifier
Method Name: feature_importances
Project Name: AxeldeRomblay/MLBox
Commit Name: f1b5b349fbffae3ae1ca0a3ca862ba7b81ddbaa1
Time: 2019-06-07
Author: hgerard.pro@gmail.com
File Name: mlbox/model/regression/regressor.py
Class Name: Regressor
Method Name: feature_importances
Project Name: IDSIA/sacred
Commit Name: 6bc64534e43e4404ccdb124645653ce2b6105538
Time: 2015-03-16
Author: qwlouse@gmail.com
File Name: setup.py
Class Name:
Method Name:
Project Name: comic/grand-challenge.org
Commit Name: a4325faecbd2a82e355036fc75869b9ce05afffa
Time: 2019-12-10
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/container_exec/emails.py
Class Name:
Method Name: send_invalid_dockerfile_email
Project Name: senarvi/theanolm
Commit Name: e517c7ed7f8f5c09c9f5718207b06a3bcb3efd44
Time: 2016-08-01
Author: seppo.git@marjaniemi.com
File Name: theanolm/commands/decode.py
Class Name:
Method Name: decode
Project Name: pymanopt/pymanopt
Commit Name: 4426d2619fd18096fbc18725e792b5ceb0ea423c
Time: 2017-08-01
Author: git@sweichwald.de
File Name: pymanopt/core/problem.py
Class Name: Problem
Method Name: __init__
Project Name: daniel-kukiela/nmt-chatbot
Commit Name: c048d218b22f97d4e6e28bbbeab229032b9be3dd
Time: 2017-12-02
Author: daniel@kukiela.pl
File Name: setup/prepare_data.py
Class Name:
Method Name: write_lines
Project Name: YerevaNN/mimic3-benchmarks
Commit Name: e3b3317413e66e0dcfcbf594385446064cad62c4
Time: 2018-03-29
Author: harhro@gmail.com
File Name: mimic3models/common_keras_models/channel_wise_lstms.py
Class Name: Network
Method Name: __init__