Đã Đóng

Need custom XGBOOST Objective function and evaluation metric


Custom Objective and Metrics for XGBOOST

I have built an XGBOOST model, and currently use softmax and softprob. The data predicts 1 of 3 outcomes - “0,1,2”.

The model is getting 55% accuracy, which is great for my purpose.

However, I want the model to not optimize for accuracy.


I have a data set of sports betting data. The data contains features, with the result of each match (Home win, Away win, Draw). There is also, in the table, odds for each bet. There are odds for Home Win, Away Win, and Draw.

The model I have built uses softmax, and returns an accuracy of 55%. However, win % is not what I am looking for. As some bets are worth more than others, in order to maximize profit, the model needs to taken into account the odds for each bet.

I have taken the odds for all the bets and stored them in a (X,3) numpy array. Looks like this: ([2.5,],[2.6,1.9,2.7],…..) The format is Home Odds, Away Odds, Draw Odds

Custom Objective

For each incorrect choice made by the model, the custom loss should penalize the model by a factor of one (1 unit bet).

For each correct choice made by the model, the custom loss should reward the model by the odds factor, which is store in the numpy array.

Since the objective is maximize profit, you may need to multiply x -1 or invert it 1/x so that you can minimize the model, but maximize the profit.

Custom Metric

The custom metric would need to be total profit. This is equal to:

Correct Answer choices (sum of all their coefficients in the numpy array)


Incorrect answers (simply the number of incorrect answers)

Note, for this I can provide you with the XGBOOST code, but not the entire model code or data.

Kĩ năng: Python, Machine Learning (ML), Boost

Xem nhiều hơn: need custom world press theme, need custom myspace layout ill pay, need custom myspace page, xgboost custom objective example, xgboost predict_proba, xgboost eval_metric f1, xgboost python, xgbclassifier, xgboost loss function, xgboost cv, xgboost classifier, need custom icon sets, need custom layout band page, need custom design gen2 script, need custom program, need custom software, countries need custom forms usps, need custom excel work done, need custom logo, need custom music player website

Về Bên Thuê:
( 17 nhận xét ) Jersey City, United States

ID dự án: #26463688

4 freelancer đang chào giá trung bình $73 cho công việc này


Hello, Greetings of the day.!! I am Konstiantyn who is professional in Machine learning and software architecture using python. I have successfully delivered more than 80 AI/ML projects(R and Python) in last 6 Months w Thêm

$55 USD trong 7 ngày
(6 Nhận xét)

Good day! "This is my area of specialization, i can get it done perfectly well. So drop me a line over chat, so that we can discuss about your budget and project generally. hope we can discuss more over chat for more Thêm

$100 USD trong 7 ngày
(0 Nhận xét)

Hey, I have already worked on your problem statement. Xgboost, a custom one won't take a lot of time. I'll code the entire system in one day. The day after, we can test whether you are satisfied with my work. I am ne Thêm

$100 USD trong 2 ngày
(0 Nhận xét)

[login to view URL] this is my profile. Worked on a similar kind of problem to predict weather using a large dataset. Will ensure the work gets completed as per your satisfaction.

$35 USD trong 2 ngày
(0 Nhận xét)