Hi!
I have written code for a XGBoost model. Everything seems to be working, and everything I logged appears in a nice plot in my Workspace. However, the part that is not logged by WandbCallback is not showing up in my Run overview as a column.
However, when I search trough my columns in the ‘Manage Columns’ window, I cannot find these columns.
Here is my code:
# setup wandb
wandb.init(project=f'subscriptionPrediction', entity='churn-vhc', config=args, tags=args.tags)
# create a folder for the wandb logs
args.logging_folder = f'./wandb_logs/{wandb.run.name}'
os.makedirs(args.logging_folder, exist_ok=True)
# load data
X_train, X_test, y_train, y_test = prep_data(pd.read_csv(r".\src\data\cleaned_data_03-27.csv"), args)
# initializing model
model = xgb.XGBClassifier(**params,
n_estimators=num_rounds,
enable_categorical=True,
early_stopping_rounds=early_stopping_rounds,
callbacks=[WandbCallback(log_feature_importance=True,
define_metric=True)])
# training model
model.fit(X_train, y_train, eval_set=[(X_train, y_train), (X_test, y_test)])
# get train and validation predictions
train_pred = model.predict(X_train)
test_pred = model.predict(X_test)
# get metrics
train_metrics = getMetrics(y_train, train_pred)
test_metrics = getMetrics(y_test, test_pred)
# log to wandb
wandb.log({'train_metrics': train_metrics})
wandb.log({'test_metrics': test_metrics})
# close wandb run
wandb.finish()
Any one know what is up or how I could fix this? Thanks in advance!