EmmaRocheteau / TPC-LoS-prediction

This repository contains the code used for Temporal Pointwise Convolutional Networks for Length of Stay Prediction in the Intensive Care Unit (https://dl.acm.org/doi/10.1145/3450439.3451860).
https://dl.acm.org/doi/10.1145/3450439.3451860
MIT License
76 stars 25 forks source link

AttributeError: 'Config' object has no attribute 'model_type' #14

Closed SewoongLee closed 1 year ago

SewoongLee commented 1 year ago

There was an error in \models\run_tpc.py, line 14.

But I cannot see any 'model_type' attribute in run_tpc.py or initialise_arguments.py.

Should I set the argument 'model_type' in config=c?

image

image

image

SewoongLee commented 1 year ago

My code seems not recognizing model_type.. image

SewoongLee commented 1 year ago

If I add 'model_type' in config, image image

There is RuntimeError("view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.",) image

SewoongLee commented 1 year ago

It seems --model_type tpc arg is not working in my environment.. image

SewoongLee commented 1 year ago

Changed .view() to .reshape() and now it works.