MCPcopy Create free account
hub / github.com/AIRMEC/HECTOR / print_model

Function print_model

utils.py:180–183  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

178 return param_group["lr"]
179
180def print_model(model):
181 print(model)
182 n_trainable_params = sum(p.numel() for p in model.parameters() if p.requires_grad)
183 print(f"Model has {n_trainable_params} parameters")
184
185def get_survival_data_for_BS(df, time_col_name, censorship_col_name='censorship'):
186 # To compute one survival metric the Brier score (BS), you need a specific format of censorship and times

Callers 1

run_train_eval_loopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected