Open koito19960406 opened 2 years ago
I am using mpglue.classification() to classify an image I obtained from Google Static Maps, and I'm getting an error message like this:
ValueError: X has 1 features, but DecisionTreeClassifier is expecting 41 features as input.
My code is:
import mpglue as gl CL = gl.classification() samples = './data_folder/08N_points_merged.txt' CL.split_samples(samples) CL.construct_model(classifier_info={'classifier': ['rf'], 'n_estimators': 100}) CL.predict('./data_folder/COUNTY13CHIP00000000.tif', './data_folder/COUNTY13CHIP00000000_out.tif')
Below is the image I'm using: COUNTY13CHIP00000000.tif.zip
I am using mpglue.classification() to classify an image I obtained from Google Static Maps, and I'm getting an error message like this:
My code is:
Below is the image I'm using: COUNTY13CHIP00000000.tif.zip