Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in DSM on Support Dataset notebook #139

Open
kevinlazenby opened this issue Dec 14, 2023 · 1 comment
Open

Error in DSM on Support Dataset notebook #139

kevinlazenby opened this issue Dec 14, 2023 · 1 comment

Comments

@kevinlazenby
Copy link

Hi, thank you for making this great package!

I am trying to run the DSM on Support Dataset notebook, but I get the following error message when I attempt to run the code snippet below the Model Training and Selection heading.

   model.fit(x_train, t_train, e_train, iters = 100, learning_rate = param['learning_rate'])

 File ~\auton-survival\auton_survival\models\dsm\__init__.py:246 in fit
   processed_data = self._preprocess_training_data(x, t, e,

 File ~\auton-survival\auton_survival\models\dsm\__init__.py:324 in _preprocess_training_data
   x_train = torch.from_numpy(x_train).double()

TypeError: can't convert np.ndarray of type numpy.object_. The only supported types are: float64, float32, float16, complex64, complex128, int64, int32, int16, int8, uint8, and bool.

However, I am confused because I can successfully run the RDSM example notebook with the PBC dataset, and in that case, the model.fit() function works even when the arguments x_train, t_train, and e_train are arrays of type numpy.object.

Thanks for your help!

@MaKa19999
Copy link

Im having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants