>>for i in rang(10,200,10):
... DT=RandomForestClassifier(n_estimators=i,random_sta
te=66) File "<stdin>", line 2
DT=RandomForestClassifier(n_estimators=i,random_sta
te=66) ^
IndentationError: expected an indented block
新手宝宝们在写for循环语句的时候,可能会遇到这样的问题。
很疑惑??? 代码看着没有问题!!
解决方法:
输入for下面的语句时需要在语句前加入空格!
就可以完美解决啦。