deeprank icon indicating copy to clipboard operation
deeprank copied to clipboard

regression scatter plot crashes

Open sonjageorgievska opened this issue 5 years ago • 5 comments

--> Scatter Plot : ./out_001_split_channels_n_8/prediction_0000.png Traceback (most recent call last): File "train_001_split-channels_regression.py", line 208, in main() File "train_001_split-channels_regression.py", line 204, in main hdf5='epoch_data.hdf5' File "/nfs/home4/sgeorgie/deeprank/deeprank/learn/NeuralNet.py", line 362, in train save_model=save_model) File "/nfs/home4/sgeorgie/deeprank/deeprank/learn/NeuralNet.py", line 721, in _train self._plot_scatter(figname) File "/nfs/home4/sgeorgie/deeprank/deeprank/learn/NeuralNet.py", line 972, in _plot_scatter_reg ax.scatter(targ, out, c=color_plot[l], label=l) File "/home/sgeorgie/anaconda3/lib/python3.7/site-packages/matplotlib/init.py", line 1810, in inner return func(ax, *args, **kwargs) File "/home/sgeorgie/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_axes.py", line 4182, in scatter raise ValueError("x and y must be the same size") ValueError: x and y must be the same size

sonjageorgievska avatar Feb 18 '20 16:02 sonjageorgievska

@sonjageorgievska I cannot reproduce the error with simple test examples. So I guess there might be problem with your input data, such as the ground truth data.

CunliangGeng avatar Feb 19 '20 09:02 CunliangGeng

I use /projects/0/deeprank/BM5/hdf5/hdf5_withGridFeature , which test data have u used and was it updated lately? The scatter plots used to work with the old data, a year ago

sonjageorgievska avatar Feb 19 '20 10:02 sonjageorgievska

I used the unittest examples, they work well.

CunliangGeng avatar Feb 19 '20 10:02 CunliangGeng

Were the unittests updated after changing the format of the data?

sonjageorgievska avatar Feb 19 '20 10:02 sonjageorgievska

The unittest generates everything from the raw pdb and pssm data.

CunliangGeng avatar Feb 19 '20 10:02 CunliangGeng