Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
372 B
4
Indexable
Never
state = np.random.RandomState(1234)

profit_subsampling0 = []
for i in range(1000):
    subsample_target0 = val_result0_correct.sample(n=500, replace=True, random_state=state)
    subsample_predict0 = result0_pred[subsample_target0.index]
    subsample_profit0 = profit(subsample_target0, subsample_predict0,200,topm0pred)
    profit_subsampling0.append(subsample_profit0)
Leave a Comment