61ded5a18d28f8053d7547172fb2851b645c3dc4,alphapy/model.py,,save_predictions,#Any#Any#Any#,1184
Before Change
// Save ranked predictions
logger.info("Saving Ranked Predictions")
pf["prediction"] = pd.Series(preds, index=pf.index)
if model_type == ModelType.classification:
pf["probability"] = pd.Series(probas, index=pf.index)
pf.sort_values("probability", ascending=False, inplace=True)
else:
After Change
if found_pdate:
probas = np.take(probas, pd_indices)
prob_series = pd.Series(probas, index=pd_indices)
df_prob = pd.DataFrame(prob_series, columns=["probability"])
write_frame(df_prob, output_dir, output_file, extension, separator)
// Save ranked predictions
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances
Project Name: ScottfreeLLC/AlphaPy
Commit Name: 61ded5a18d28f8053d7547172fb2851b645c3dc4
Time: 2018-01-25
Author: Mark.R.Conway@gmail.com
File Name: alphapy/model.py
Class Name:
Method Name: save_predictions
Project Name: okfn-brasil/serenata-de-amor
Commit Name: cecf397e2bc8a22e0fe20fcad26151e9666e2bb3
Time: 2016-11-25
Author: filipelinhares@outlook.com
File Name: src/fetch_yelp_info.py
Class Name:
Method Name:
Project Name: pandas-dev/pandas
Commit Name: 3391a348f3f7cd07a96c8e6a4b05e3e9f60c8567
Time: 2020-11-26
Author: fangchen.li@outlook.com
File Name: pandas/tests/frame/apply/test_frame_apply.py
Class Name: TestDataFrameApply
Method Name: test_apply_dict
Project Name: janfreyberg/superintendent
Commit Name: 1401e8bd2bdbccbedb696bd742e4934d5ba96fcb
Time: 2018-10-31
Author: janfreyberg@users.noreply.github.com
File Name: tests/test_clustersupervisor.py
Class Name:
Method Name:
Project Name: J535D165/recordlinkage
Commit Name: 229bb52ad2111d0038a87dd65bf8fbf227a8f48b
Time: 2016-08-20
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/indexing.py
Class Name:
Method Name: _sortedneighbourhood