How to print predicted output of a ML model in a specified format?

后端 未结 0 630
天命终不由人
天命终不由人 2021-02-07 00:47
from sklearn.ensemble import RandomForestClassifier
model = RandomForestClassifier(n_estimators = 200)
model.fit(x_train, y_train)
y_pred = model.predict(x_test)

preds=         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题