AD_Prediction
AD_Prediction copied to clipboard
Subscriptable Error
F:\VAIO\Latest\AD_Prediction-master\AD_Prediction-master\2D>python main_alextnet.py
2018-05-05 16:00:35 INFO: At 0-th epoch.
Traceback (most recent call last):
File "main_alextnet.py", line 236, in
Hello @czainab, can you kindly mail me the dataset too?
if you are running it in python3, then filter doesnt return list but an iterable filter object.
So use list before filter and it should work
first_p = list(mean_array).index(list(filter(lambda x: x>0, mean_array)[0]))
Well I downloaded the images in test, train text file from ADNI website. You can just simply apply for the access. Thank you for your help but I tried the above solution and it didn't work for me now I am getting another error in the same file on slice_p = int(round(first_p + (last_p - first_p)*fraction)) and the error is TypeError: unsupported operand type(s) for -: 'tuple' and 'tuple' Kindly help me out
Can you please guide me how you were able to run this file because I am like getting errors on every line. I just fix one error and got another on the very next line.
look at #1, where he explained how to run the code. Kindly tell me if it runs
Still getting the same error TypeError: 'filter' object is not subscriptable.
I noticed you are running this using anaconda3 which as python 3+.
kindly try running this using python2.
Hey, so i took the access of the ADNI data, can you kindly guide me what to do after that? i cant seem to find the data.
After login go to Projects, than ADNI, than click on Download, Image Collection and under Data Collection tab you will find the images.
On Thursday, May 10, 2018 3:05 PM, Mrinal18 <[email protected]> wrote:
Hey, so i took the access of the ADNI data, can you kindly guide me what to do after that? i cant seem to find the data.— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
@czainab , replace it with this
first_p = list(mean_array).index(list(filter(lambda x: x>0, mean_array))[0])
@czainab , replace it with this
first_p = list(mean_array).index(list(filter(lambda x: x>0, mean_array))[0])
Did this code worked . Please let me know thank yoy
Still getting the same error TypeError: 'filter' object is not subscriptable.
please tell me how to solve this issue, if you have resolved it