blob: 72c8ae0cdbfdd919b4d26bf45e8ab82bd941d8fb [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://docs.prediction.io/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-3598c7d7.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.incubator.apache.org/"><img alt="PredictionIO" id="logo" src="/images/logos/logo-ee2b9bb3.png"/></a></div><div id="menu-wrapper"><div id="header-nav-options-wrapper"><ul><li><a href="/">Install & Doc</a></li> <li><a href="/support">Support</a></li> </ul></div><div id="pill-wrapper"><a class="pill left" href="//templates.prediction.io/">TEMPLATES</a> <a class="pill right" href="//github.com/apache/incubator-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 dependancies 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 dependancies.</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 recomended movies for movie 296 (Pulp Fiction).</p></li><li><h2>Next Steps</h2><p><a href="http://docs.prediction.io/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 col-xs-6 footer-link-column"><div class="footer-link-column-row"><h4>Community</h4><ul><li><a href="//docs.prediction.io/install/" target="blank">Download</a></li><li><a href="//docs.prediction.io/" target="blank">Docs</a></li><li><a href="//github.com/apache/incubator-predictionio" target="blank">GitHub</a></li><li><a href="mailto:user-subscribe@predictionio.incubator.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 col-xs-6 footer-link-column"><div class="footer-link-column-row"><h4>Contribute</h4><ul><li><a href="//predictionio.incubator.apache.org/community/contribute-code/" target="blank">Contribute</a></li><li><a href="//github.com/apache/incubator-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.incubator.apache.org" target="blank">Subscribe to Development Mailing List</a></li></ul></div></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"/></div><div id="social-icons-wrapper"><a class="github-button" href="https://github.com/apache/incubator-predictionio" data-style="mega" data-count-href="/apache/incubator-predictionio/stargazers" data-count-api="/repos/apache/incubator-predictionio#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star apache/incubator-predictionio on GitHub">Star</a> <a class="github-button" href="https://github.com/apache/incubator-predictionio/fork" data-icon="octicon-git-branch" data-style="mega" data-count-href="/apache/incubator-predictionio/network" data-count-api="/repos/apache/incubator-predictionio#forks_count" data-count-aria-label="# forks on GitHub" aria-label="Fork apache/incubator-predictionio on GitHub">Fork</a> <script id="github-bjs" async="" defer="" src="https://buttons.github.io/buttons.js"></script><a href="//www.facebook.com/predictionio" target="blank"><img alt="PredictionIO on Twitter" src="/images/icons/twitter-ea9dc152.png"/></a> <a href="//twitter.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-5a24945b.js"></script><script src="/javascripts/tryit-b5b64753.js"></script></body></html>