Known Issues

A list of known problem and how to solve them.

NaN in the Cloud, but none locally

The index might not always be the same in the Cloud and locally as the data that is shared is different.

Depending on your code, this could cause some issues when trying to do operation between pandas objects that do not share the same index.

# will use a range index, from 0 to len(X_test)
final_ensemble = pd.Series(
    [0] * len(X_test),

# pandas objects do not share the same index, it will likely result in only nans
final_ensemble += (X_test.loc[:, 'some_colomn'] * 2)

Use the same index

final_ensemble = pd.Series(
    [0] * len(X_test),

Reset the index


# then do your operations
final_ensemble += (X_test.loc[:, 'some_colomn'] * 2)

CatBoostError: Can't create train working dir: catboost_info error

CatBoost create a directory for persisting his state. But the Run does not allow you to create file anywhere.

Change the train directory to: /tmp

If the state doesn't need to be persisted, the /tmp directory is the way to go.


Change the train directory to: model_directory

If the state does need to be persisted, store everything inside the model_directory as this folder will be reused for the Out-of-Sample phase.

info_path = os.path.join(model_directory, 'catboost_info')

If your problem is not listed, don't hesitate to reach the team!

Last updated