Hello everyone. I am trying to create a flood prediction map by using the Naive Bayes algorithm. The types of data which exported raster data is ASCII. I used this data for Random forest algorithm but I don't know how can I implement this data in Naive Bayes algorithm.
Note: When ı used the same technique, I get an error : AttributeError: 'numpy.ndarray' object has no attribute 'predict'
This is an example which belongs to RF algorithm:
slopedata = numpy.genfromtxt('data_name.txt')
slope = numpy.reshape(slopedata,250*433)