Distributed Analytics Service (DAS)
Distributed Analytics Service Overview
A-Stack Distributed Analytics Service (DAS) allows TQL developers to seamlessly integrate a number of python-based regression and classification algorithms from into their application.
Â
DAS Functional Components
Component Name | Description | Examples |
---|---|---|
Pre-defined set of A-Stack Activities | A set of simple activities which collects commands from DASScript and executes in a python runtime as part of Exec Activity | Â |
DAS Configuraton Model | Configuration parameters for DAS | Â #
scope(fid: dasact):
$vopak_dasconfig =
DASConfig:
DASContextID: "SteamHist-1"
ModelOutputHandler:
facetID: "steamws"
ActionName: "HandleModelOutput_Action"
InputDataSource:
TQLFacetID: steamws
ColumnNames: "steamConsumedValue,deltaTemp,Valve_open_Temp"
IndexNames: "deltaTemp"
FindQuery:
Find(as: "$none:$none:$none", Only: "steamConsumedValue, deltaTemp, Valve_open_Temp"):
SteamConsHistory:
SteamHistId(ne: "")
DASScript:
@: 'resources/SteamPredict/spaces/DASPolyline.das.cdm' |
DAS Python SDK | Offers basic functions that can called from DASConfig’s DAS Script. Functions:
Currently Supports following libraries import numpy as np  |  |
DAS Features
DAS Features description
Feature Category | Feature Description | Example |
---|---|---|
Feeding Training or Testing (To-be-Predicted) Data | InputDataSource - DAS Provides InputDataSource parameter as part of the DASConfig Parameter | Â InputDataSource:
TQLFacetID: steamws
ColumnNames: "steamConsumedValue,deltaTemp,Valve_open_Temp"
IndexNames: "deltaTemp"
FindQuery:
Find(as: "$none:$none:$none", Only: "steamConsumedValue, deltaTemp, Valve_open_Temp"):
SteamConsCurrent:
SteamId(ne: "") |
Training Data Preparation |
| Â |
Providing Algorithm Details | PredictiveModels - DAS Provides PredictiveModels Section as part of the DASConfig’s DASScript where TQL developers can add specific algorithm steps |  |
Handle Model Output | Â | Â |
Saving Trained Model for Prediction re-use | Â | Â |
Reading Saved model | Â | Â |
Real-time viewing of algorithm execution logs | All broadcastmsg statements from DAS Script are published to DASLog websocket endpoint | Â |
Â
Getting Started with DAS
Future Features
Seamless stream ingestion into DAS
Seamless stream egres to Python from DAS
Scalable Data Preprocessing
Analytics Model versioning
Analytics library exposing functional interface to BML (python sdk)
Host and run external models
Â