from flask import Flask,render_template,request
import pickle
import numpy as np
model = pickle.load(open('biker.pkl','rb'))
total = [[r1,r2,r3,o1,o2,o3,o4,o5,m,g,int(yearinc),int(child),int(cars),int(cmtdist),int(age)]]
print(total)
y_pred = model.predict(total)
print(y_pred)
我导入了一个随机森林分类模型及其给出错误。 该错误表明'numpy.ndarray'对象没有属性'predict'。请帮助解决该问题