-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from niruhan/master
Adding sample for TensorFlow extension
- Loading branch information
Showing
5 changed files
with
3,997 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.