bb4109425da5a8ace9d1e045baf4bc0debb3eec7,libs/phases/model_predictor/model_predictor.py,ModelPredictor,run,#ModelPredictor#,23
Before Change
ret_diffs = PredictWorker.start(self.transaction.model_data, model_name=model_name)
model_stats = self.session.mongo.mindsdb.model_train_stats
model_stat = model_stats.find_one({"model_name": model_name})
// confusion_matrixes = model_stat["reduced_confusion_matrices"]
confusion_matrixes = model_stat["confusion_matrices"]
self.transaction.output_data_array = self.transaction.input_data_array
for diff in ret_diffs:
for col in diff["ret_dict"]:
After Change
actual_row = self.transaction.model_data.predict_set_map[group_pointer][j+offset]
if not self.transaction.output_data.data_array[actual_row][col_index] or self.transaction.output_data.data_array[actual_row][col_index] == "":
if self.transaction.persistent_model_metadata.column_stats[col][KEYS.DATA_TYPE] == DATA_TYPES.NUMERIC:
target_val = np.format_float_positional(cell, precision=2)
else:
target_val = cell
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: mindsdb/mindsdb
Commit Name: bb4109425da5a8ace9d1e045baf4bc0debb3eec7
Time: 2018-09-05
Author: jorge.torres.maldonado@gmail.com
File Name: libs/phases/model_predictor/model_predictor.py
Class Name: ModelPredictor
Method Name: run
Project Name: numerai/submission-criteria
Commit Name: 3bf5f2de89807642dcd1e030e45226ff3944779b
Time: 2017-11-10
Author: xander@numer.ai
File Name: originality.py
Class Name:
Method Name: submission_originality
Project Name: numerai/submission-criteria
Commit Name: 3bf5f2de89807642dcd1e030e45226ff3944779b
Time: 2017-11-10
Author: xander@numer.ai
File Name: database_manager.py
Class Name: DatabaseManager
Method Name: get_date_created