Coder Social home page Coder Social logo

ml_server's Introduction

ml_server

本地测试基本环境 scala:2.10.4 >> 下载官网安装并配置环境变量 spark:1.6.0 >> 下载官网编译好的包,解压,配置环境变量

打包 maven clean -e package

测试接口 als

train: url:http://localhost:8899/als/train method:POSR request_body:{"mode":"local[3]","path":"/D:/work/other/ml.gui/target/classes/data/mllib/als/ml-100k/u.data","itera":10,"name":"test","rank":10}

response: { "code": 200, "message": "训练成功", "result": null }

forcast: url:http://localhost:8899/als/forcast method:POSR request_body:{"userId":10,"name":"test","productId":30}

response: { "code": 200, "message": "ok", "result": 4.567373999851733 }

kmeans

train: url:http://localhost:8899/kmeans/train method:POSR request_body:{"mode":"local[3]","path":"D:/work/ml_client/target/classes/data/mllib/kmeans_data.txt","itera":100,"name":"test","k":5}

response: { "code": 200, "message": "训练成功", "result": null }

forcast: url:http://localhost:8899/als/predict method:POSR request_body:{"name":"test", "vector":[2.0, 2.0, 2.0]}

response: { "code": 200, "message": "ok", "result": 2 }

ml_server's People

Contributors

cloudyun avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.