Skip to content

integrated brier score problem with largest observed time point #501

Answered by Montrey
Montrey asked this question in Q&A
Discussion options

You must be logged in to vote

The problem was the standard scaler, without the standard scaler it worked. The solution with StandardScaler was that I artificially reduced the maximum available time from 76 to 75.

rsf.fit(X_train_scaled, y_train)

y_pred_survival = rsf.predict_survival_function(X_test_scaled)

time_min = y_test["zyklus"].min() 
time_max = y_test["zyklus"].max() 

time_grid = np.linspace(time_min, time_max - 1, 100) 

print(f"Zeitbereich für time_grid: {time_min} bis {time_max - 1e-6}")
print(f"time_grid: {time_grid[:5]} ... {time_grid[-5:]}")

y_pred_survival_array = np.array([
    [fn(t) for t in time_grid] for fn in y_pred_survival
])

ibs = integrated_brier_score(y_train, y_test, y_pred_survival_arr…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@sebp
Comment options

sebp Dec 12, 2024
Maintainer

@Montrey
Comment options

Answer selected by Montrey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants