predict.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:golden_touch 作者: at553 项目源码 文件源码
def predict_new(self, input):
        model = self.train_model()
        assert len(input) == 5 and type(input) == list
        scaler = MinMaxScaler(feature_range=(0, 1))
        scaler.fit(self.data)
        inp = scaler.transform([input])
        print(scaler.inverse_transform(model.predict(numpy.array(inp).reshape(1, 1, 5))))


# x = Predict()
# x.predict_new([1243.068, 1298.713, 1336.560, 1299.175, 1288.913])
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号