python - 如何连接用Python制作的ML模型来 react native 应用程序

标签 python react-native deployment

我用Python创建了一个ML模型,现在我想在React Native应用程序中使用这个模型,这意味着前端将基于React Native并且模型是在Python上制作的,我如何将两者连接起来

最佳答案

您的帖子中的信息很少。 ML 算法是什么,您使用什么 ML 库,什么框架,如何提供服务?

一般来说,您可以使用 TensorflowJS ,如果您希望模型在客户端进行推理。 (根据您使用的 ML 库,您甚至可以 convert your model 直接到 TensorflowJS)

如果您的模型不必在客户端运行,您可以让您的应用将数据发送到后端(可能通过 GET/POST)进行推理并将预测返回到前端。

同样,这非常广泛,因为您没有提供具体细节。

关于python - 如何连接用Python制作的ML模型来 react native 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58547095/

相关文章:

javascript - Heroku Node.js错误代码H10 “App crashed”

python - 我可以为我的 Python 扩展模块(用 C++ 编写)使用替代构建系统吗?

python - django-oauth2-提供者 : get the token without sending the client_secret

Python 将日期时间转换为时间

reactjs - React Native - Jest : Broken since update to 0. 56. 如何修复它?

react-native - react native map mapPadding 不工作

docker - Kubernetes:管理应用程序运行环境

python - 为使用 plt.fill 制作的绘图创建颜色条

python - 在满足条件的 SeriesGroupBy 对象上使用 Apply

javascript - undefined 不是对象(评估 'Object.keys(inboundState)' )