Primary competition visual

RMB Monthly Mini Challenge #1: Nowcast April

Helping South Africa
$600 USD
Completed (almost 3 years ago)
Forecast
592 joined
132 active
Starti
Mar 21, 23
Closei
May 01, 23
Reveali
May 24, 23
User avatar
cephars
Free Lance
HELP!
Help · 26 Apr 2023, 11:46 · 3

I really need assistance,I have used catboost and this my last code from catboost import CatBoostRegressor

from sklearn.model_selection import RandomizedSearchCV

import numpy as np

# Define the parameter grid to search

params = {

'iterations': np.arange(500, 2000, 100),

'learning_rate': np.arange(0.01, 0.3, 0.01),

'depth': np.arange(3, 16),

'l2_leaf_reg': np.arange(1, 10),

'random_strength': np.arange(0, 5),

'border_count': np.arange(5, 100, 5),

}

# Define the model to use

model = CatBoostRegressor()

# Define the random search object

rs = RandomizedSearchCV(model, param_distributions=params, cv=5, n_iter=50, n_jobs=-1, random_state=42, verbose=3)

# Fit the random search object to the data

rs.fit(X_train, y_train) however i have calculated mse and rmse but when it comes to predicting weighted_cpi iam getting errors...Can i share my code to someone?he/she can help me figure ou where iam going wrong..hit my inbox kindly!

# Print the best hyperparameters

print(rs.best_params_)

Discussion 3 answers
User avatar
Koleshjr
Multimedia university of kenya

Okay in the first place , I think choosing catboost is wrong , given that the data is too little, start with a simple model like linear regression.

26 Apr 2023, 12:24
Upvotes 1
User avatar
cephars
Free Lance

so you used linear regression?and it worked fine?

User avatar
Koleshjr
Multimedia university of kenya

yess