Skip to content

Commit

Permalink
Merge pull request #203 from niruhan/master
Browse files Browse the repository at this point in the history
Adding sample for TensorFlow extension
  • Loading branch information
suhothayan authored Nov 28, 2017
2 parents 4198478 + 67898d7 commit 0ce3518
Show file tree
Hide file tree
Showing 5 changed files with 3,997 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/samples/artifacts/1009/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
1. Copy {WSO2SPHome}/samples/artifacts/1009/TensorFlowTestApp.siddhi file to {WSO2_SP_Home}/wso2/editor/deployment/workspace

2. Open the copied file TensorFlowTestApp.siddhi in WSO2_SP_Home}/wso2/editor/deployment/workspace and observe the query. You can find the first parameter as '/home/niruhan/siddhi-execution-tensorflow/component/src/test/resources/TensorFlowModels/Regression' which gives the absolute path to the regression TensorFlow model. Change it to the absolute path of the folder {WSO2SPHome}/samples/artifacts/1009/Regression on your machine

3. Start the editor using ./{WSO2SPHome}/bin/editor.sh

4. Go to the event simulator in the editor (Stream Processor Studio) and find the TensorFlowTestApp under Siddhi App Name drop down

5. Select 'InputStream' in the Stream Name drop down.

6. Leave the Timestamp empty and paste "double:[1,-2]" in the text box under x (String)

7. Now start the Siddhi App by clicking start and send the event. You can observe the output in the console.
Loading

0 comments on commit 0ce3518

Please sign in to comment.