blob: 6f386c5e20d08ee782db352687dc5d90ea69c33d [file] [log] [blame]
<!DOCTYPE html><html><head><title>Try PredictionIO</title><meta charset="utf-8"/><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta class="swiftype" name="title" data-type="string" content="Try PredictionIO"/><link rel="canonical" href="https://predictionio.apache.org/tryit/"/><link href="/images/favicon/normal-b330020a.png" rel="shortcut icon"/><link href="/images/favicon/apple-c0febcf2.png" rel="apple-touch-icon"/><link href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet"/><link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"/><link href="/stylesheets/application-eccfc6cb.css" rel="stylesheet" type="text/css"/><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><script src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script><script src="//use.typekit.net/pqo0itb.js"></script><script>try{Typekit.load({ async: true });}catch(e){}</script></head><body class="tryit"><div id="global"><header><div class="container" id="header-wrapper"><div class="row"><div class="col-sm-12"><div id="logo-wrapper"><span id="drawer-toggle"></span><a href="#"></a><a href="http://predictionio.apache.org/"><img alt="Apache PredictionIO" id="logo" src="/images/logos/logo-ee2b9bb3.png"/></a><span>®</span></div><div id="menu-wrapper"><div id="pill-wrapper"><a class="pill left" href="/gallery/template-gallery">TEMPLATES</a> <a class="pill right" href="//github.com/apache/predictionio/">OPEN SOURCE</a></div></div><img class="mobile-search-bar-toggler hidden-md hidden-lg" src="/images/icons/search-glass-704bd4ff.png"/></div></div></div></header><div id="page" class="container"><main id="main" role="main" data-swiftype-index="true"><div id="content"><div class="codepicnic"><div class="tutorial"><div class="jcarousel-wrapper"><ul class="jcarousel-pagination"></ul><div class="jcarousel"><ul><li><h2>Introduction</h2><p>To see how PredictionIO works, you can follow this quick tutorial to:</p><p>Start the PredictionIO server</p><p>Build, train, and deploy a predictive model with pre-imported data.</p><p>Query prediction results.</p><p><a class="button-primary" id="tryit-start" href="#">Start</a></p></li><li><h2>Start</h2><p>Start PredictionIO and it's dependencies with:</p><p><code>$ pio-start-all</code></p><h2>Check Status</h2><p>At any time you can run:</p><p><code>$ pio status</code></p><p>Which checks the status of PredictionIO and it's dependencies.</p></li><li><h2>Build</h2><p>All engine commands need to be run from within the engine directory:</p><p><code>$ cd ~/PredictionIO/MyEngine</code></p><p>Build the engine with:</p><p><code>$ pio build</code></p></li><li><h2>Train and Deploy</h2><h3>Train the engine</h3><p><a href="http://grouplens.org/datasets/movielens/">Sample data</a> is already imported, you can train the model the data by running:</p><p><code>$ pio train</code></p><h3>Deploy the trained engine</h3><p>Deploy the trained engine as a background process:</p><p><code>$ pio deploy &</code></p></li><li><h2>Querying Results</h2><p>You can query results using cURL with after you see "Ready to serve":</p><p><code>$ curl -H "Content-Type: application/json" -d '{ "items": ["296"], "num": 5 }' http://localhost:8000/queries.json</code></p><p>This will return 5 recommended movies for movie 296 (Pulp Fiction).</p></li><li><h2>Next Steps</h2><p><a href="http://predictionio.apache.org/install/">Install</a> PredictionIO on your own computer!</p><h3>Support</h3><p>Get support on our <a href="https://groups.google.com/forum/#!forum/predictionio-user">Google Group</a> or on Twitter <a href="https://twitter.com/predictionio/">@PredictionIO</a></p></li></ul><div class="jcarousel-controls"><a href="#" class="jcarousel-control-prev">&lsaquo; Prev</a><a href="#" class="jcarousel-control-next">Next &rsaquo;</a></div></div></div></div><div class="iframe"><iframe src="https://codepicnic.com/bites/predictionio-0-9-1/embed?sidebar=closed&hostname=predictionio&hide=readme"></iframe></div></div></div></main></div><footer><div class="container"><div class="seperator"></div><div class="row"><div class="col-md-6 footer-link-column"><div class="footer-link-column-row"><h4>Community</h4><ul><li><a href="//predictionio.apache.org/install/" target="blank">Download</a></li><li><a href="//predictionio.apache.org/" target="blank">Docs</a></li><li><a href="//github.com/apache/predictionio" target="blank">GitHub</a></li><li><a href="mailto:user-subscribe@predictionio.apache.org" target="blank">Subscribe to User Mailing List</a></li><li><a href="//stackoverflow.com/questions/tagged/predictionio" target="blank">Stackoverflow</a></li></ul></div></div><div class="col-md-6 footer-link-column"><div class="footer-link-column-row"><h4>Contribute</h4><ul><li><a href="//predictionio.apache.org/community/contribute-code/" target="blank">Contribute</a></li><li><a href="//github.com/apache/predictionio" target="blank">Source Code</a></li><li><a href="//issues.apache.org/jira/browse/PIO" target="blank">Bug Tracker</a></li><li><a href="mailto:dev-subscribe@predictionio.apache.org" target="blank">Subscribe to Development Mailing List</a></li></ul></div></div></div><div class="row"><div class="col-md-12 footer-link-column"><p>Apache PredictionIO, PredictionIO, Apache, the Apache feather logo, and the Apache PredictionIO project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.</p><p>All other marks mentioned may be trademarks or registered trademarks of their respective owners.</p></div></div></div><div id="footer-bottom"><div class="container"><div class="row"><div class="col-md-12"><div id="footer-logo-wrapper"><img alt="PredictionIO" src="/images/logos/logo-white-d1e9c6e6.png"/><span>®</span></div><div id="social-icons-wrapper"><a class="github-button" href="https://github.com/apache/predictionio" data-icon="octicon-star" data-show-count="true" aria-label="Star apache/predictionio on GitHub">Star</a> <a class="github-button" href="https://github.com/apache/predictionio/fork" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork apache/predictionio on GitHub">Fork</a> <script id="github-bjs" async="" defer="" src="https://buttons.github.io/buttons.js"></script><a href="https://twitter.com/predictionio" target="blank"><img alt="PredictionIO on Twitter" src="/images/icons/twitter-ea9dc152.png"/></a> <a href="https://www.facebook.com/predictionio" target="blank"><img alt="PredictionIO on Facebook" src="/images/icons/facebook-5c57939c.png"/></a> </div></div></div></div></div></footer></div><script>(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v1/st.js','_st');
_st('install','HaUfpXXV87xoB_zzCQ45');</script><script src="/javascripts/application-d943a254.js"></script><script src="/javascripts/tryit-d34ba011.js"></script></body></html>