codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERROR in loading data


#load the training and testing data, then scale it into the
	# range [0, 1]
	print("[INFO] loading  ADNI data...")
	((trainX, trainY), (testX, testY)) = '/content/gdrive/My Drive/3_Classes/'.loads_data()
	trainX = trainX.astype("float") / 255.0
	testX = testX.astype("float") / 255.0
 
	# initialize the label names for the  ADNI dataset
	labelNames = ["outAD", "outCN", "outMCI"]
When i try to run this code I got the following error.

[INFO] loading  ADNI data...
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-8-fb9724017cc0> in <module>()
      1 print("[INFO] loading  ADNI data...")
----> 2 ((trainX, trainY), (testX, testY)) = '/content/gdrive/My Drive/3_Classes/'.loads_data()
      3 trainX = trainX.astype("float") / 255.0
      4 testX = testX.astype("float") / 255.0
      5