Hi everyone!
Can you help me? I am new in using DeepSurv. I am following the steps given in the examples, but I encounter this issue in the dataset on which I wish to use this package:
Before running the net, I ensured that all the variables I am using were float. I converted categories into numeric values using .cat.codes and then converted into float. I did so since otherwise model_.lr_finder(x_train, y_train, batch_size, tolerance=10) and model_.fit(x_train, y_train, batch_size, epochs, callbacks, verbose, val_data=val, val_batch_size=batch_size) wouldn't have worked due to different "data" type.
This are the setting I am using for the tt.practical.MLPVanilla(in_features, num_nodes, out_features, batch_norm, dropout, output_bias=output_bias):
Hi everyone! Can you help me? I am new in using![image](https://user-images.githubusercontent.com/39563722/192793011-2c2ccbc8-35e1-4cb7-9f1f-e368c56056df.png)
DeepSurv
. I am following the steps given in the examples, but I encounter this issue in the dataset on which I wish to use this package:Before running the net, I ensured that all the variables I am using were float. I converted categories into numeric values using
.cat.codes
and then converted into float. I did so since otherwisemodel_.lr_finder(x_train, y_train, batch_size, tolerance=10)
andmodel_.fit(x_train, y_train, batch_size, epochs, callbacks, verbose, val_data=val, val_batch_size=batch_size)
wouldn't have worked due to different "data" type.This are the setting I am using for the
tt.practical.MLPVanilla(in_features, num_nodes, out_features, batch_norm, dropout, output_bias=output_bias)
:This is the model:
model_ = CoxPH(net_ds, tt.optim.Adam)
This are fit settings for
log = model_.fit(x_train, y_train, batch_size, epochs, callbacks, verbose,val_data=val, val_batch_size=batch_size)
:Thank you in advance! Cheers