Trend Prediction Service – Sample Application¶
This section provides a sample application, which can call the Trend Prediction endpoints.
Create the following files with the provided content for a simple HTML/js sample application:
- index.html for the page layout
- main.css for page style
- main.js for the methods to call model training and the model reasoning as well as hard-coded test data
Create an empty Staticfile and an empty manifest file so the folder looks like this:
Fill the manifest file with the content below:
applications: - name: trendpredict3 instances: 1 host: trendpredict-t3 memory: 64m
Deploy the sample application to Cloud Foundry as described in Running a Cloud Foundry Application. Make sure to assign it the
Any questions left?
Except where otherwise noted, content on this site is licensed under the Development License Agreement.
Last update: March 17, 2023