Skip to content

Commit

Permalink
Adding debug messages for tracking the Illegal instruction (core dump…
Browse files Browse the repository at this point in the history
…ed) error
  • Loading branch information
hcadavid committed Jan 15, 2025
1 parent 67bb838 commit 2243150
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion federated_cvdm_training_poc/partial_risk_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ def partial_risk_prediction(
## Split the data into 80%/10%/10% for training/validation/test
train_df, val_df, test_df = ci_split(df_imputed, n_fold = n_fold, fold_index = fold_index)

info("Vertical data split")
## Vertical data split: X (feature), e (FSTAT), y(LENFOL)
y_col = [outcome_cols[0]]
e_col = [outcome_cols[1]]
train_X, train_e, train_y = vertical_split(train_df, predictor_cols, y_col, e_col)
val_X, val_e, val_y = vertical_split(val_df, predictor_cols, y_col, e_col)
test_X, test_e, test_y = vertical_split(test_df, predictor_cols, y_col, e_col)

info("Min-max normalization")
## Min-max normalization independently on each node
train_X, X_min, X_max = normalize_train(train_X) # Normalize X
val_X = normalize_test(val_X, X_min, X_max) # Nomralize val/test X based on min/max of train X
Expand All @@ -104,14 +106,16 @@ def partial_risk_prediction(


batchsize = 4096

train_loader = torch.utils.data.DataLoader(
train_dataset, batch_size=batchsize)
val_loader = torch.utils.data.DataLoader(
val_dataset, batch_size=val_dataset.__len__())
test_loader = torch.utils.data.DataLoader(
test_dataset, batch_size=test_dataset.__len__())


info("Create a neural network based on the configuration specified in the ini file")
## Create a neural network based on the configuration specified in the ini file
model = DeepSurv(dl_config['network']).to(device)

Expand Down

0 comments on commit 2243150

Please sign in to comment.