HOW TO USE THE ARYA-xAI API?
-
Navigate to http://xai.arya.ai/
-
Sign up as a new user and login
-
Click on the My Models option on the top right
-
Upload the the model on the Add Model option
-
Choose Model Type (saved model or h5 format)
-
Add the downloadable URL of the model and submit
-
Once added successfully, the model will be listed as follows:
token number - 1634#######88 (alphanumeric string) Model URL - the-downloable-link Model Type - saved model or h5 format Launch Time - dd/mm/yyyy hh:mm:ss View API - link to view details DELETE - link to delete the added model
API DETAILS
Request Field Parameters:
-
mode - either default or contrast
-
token - alphanumeric string referring to the model ID
-
is_multi_input - whether or not the model accepts multiple inputs(True or False)
-
model_input - model input as a list or numpy array
-
scaler - to scale the initial model weights (>0)
-
predictions - the model predicted value (True or False flag, if True send network output in response)
Response
(either as a numpy array or a json compatible list)
- data field - weights of all input layers specified by layer-name as key-value pairs ( layer_name : list of weights )
- if default mode - data field has just one entry per layer
- if contrast mode - for each layer there will be entries corresponding to the positive and negative contast
- network_output field - output corresponding to each output layer (empty if prediction flag is False)