You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Developer: Use the API, with an interface and code generation -- like POSTMan
Data scientist: Optimize the model
Data Consultant: Explainable AI
Data engineer: Connect to data source
When creating an app, use apps/admin2 as a reference:
You can import apps within apps
End all url, schedule, alert keys with -$* to allow multiple imports
You can specify arguments in the import and use them in the app
import:
my-ml-app:
path: $GRAMEXAPPS/mlapp/gramex.yamlYAMLURL: /$YAMLURL/ml-app-page/ # URL to show the admin page atMLAPP_KWARGS:
handler: my-mlhandler# anything-else-related-to-configuring-the-app, not the handler, comes hereurl:
my-mlhandler:
pattern: /ml/handler: MLHandler# ...
Use gramex.conf to read the configuration.
The text was updated successfully, but these errors were encountered:
url:
mlhandler-tutorial:
pattern: /$YAMLURL/mlhandler: MLHandlerkwargs:
data:
url: $YAMLPATH/titanic.csv # Path to the training dataset# Path where the serialized model, training data and configuration is# savedconfig_dir: $YAMLPATHmodel:
# The classification or regression algorithm to useclass: LogisticRegression# The column to predicttarget_col: Survived# Columns to ignore during trainingexclude: [PassengerId, Ticket, Cabin, Name]# Columns to be treated as categorical variablescats: [Embarked, SibSp, Parch, Pclass, Sex]import:
ml:
path: $GRAMEXAPPS/ml/gramex.yamlYAMLURL: $YAMLURL/app/MLAPP_KWARGS:
key: mlhandler-tutorialtitle: My ML App
Display the URL that we'll be taken to on clicking ./ml. This should be copy-able. We're generating the URL and letting users know what the URL should be
Create the API spec as OpenAPI
Evaluate rendering the API spec with a library, perhaps Swagger UI, but ideally more componentized / customizable
Create an interface that displays how to interact with the REST API via curl, python (node, etc later) (like below)
There are 4 use cases (in order of priority)
When creating an app, use
apps/admin2
as a reference:url
,schedule
,alert
keys with-$*
to allow multiple importsUse
gramex.conf
to read the configuration.The text was updated successfully, but these errors were encountered: