我正在使用numpy genfromtxt加载csv文件。前4列是特征,最后一列是目标数据。
当我运行代码时,我得到了nan结果。
有谁能解释一下原因吗?
X = dataset[:,0:4]
y = dataset[:,4]
x_train, x_test, y_train, y_test = train_test_split(
X, y, test_size=0.3)
grnnet = algorithms.GRNN(std=0.5, verbose=True)
grnnet.train(x_train, y_train)
error = scorer(grnnet, x_test, y_test)
print("GRNN RMSLE = {:.3f}\n".format(error))https://stackoverflow.com/questions/51340298
复制相似问题