Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
580 B
7
Indexable
Never
def profit (target, predictions, count, total_reserve):
    revenue_per_thousand_barrles = 4500
    total_budget = budg
    revenue = total_reserve * revenue_per_thousand_barrles
    profit = revenue - budg
    return profit

reg0profit = profit (target0,val_result0['correct_answers0'],200, topm0pred)
reg1profit = profit (target1,val_result1['correct_answers1'],200, topm1pred)
reg2profit = profit (target2,val_result2['correct_answers2'],200, topm2pred)

print('Profit of Region 0: ',reg0profit)
print('Profit of Region 0: ',reg1profit)
print('Profit of Region 0: ',reg2profit)
Leave a Comment