GithubHelp home page GithubHelp logo

isabella232 / project-estrella-services Goto Github PK

View Code? Open in Web Editor NEW

This project forked from catalystcode/project-estrella-services

0.0 0.0 0.0 23 KB

Backend services for project-estrella

License: MIT License

JavaScript 100.00%

project-estrella-services's Introduction

project-estrella-services

Backend services for project-estrella

Configure

Ensure the following AppSettings are provided (either as env settings or within the localConfig.json):

{
    "AZURE_STORAGE_ACCOUNT" : "YOUR_ACCOUNT_NAME",
    "AZURE_STORAGE_ACCESS_KEY" : "YOUR_ACCOUNT_KEY",
    "PORT" : 8080
}

api/prediction

The prediction api returns a stored value of a prediction (which has been initiated through a previous call to a api/model PUT)

GET api/prediction/model?model_name=City&model_group=Mexico&interval=11

Returns a prediction for the specified model and interval

POST api/prediction

Runs a prediction using the specified model

{
  "model_group" : "Mexico",
  "model_name" : "City",
	"model_interval" : 2,
	"model_arguments" :  {
      "meantemp": 4,
      "rainsum": 3.5
		}
}

This posts the following message to the queue:

{
   "model_query": {
    "model_group": "Mexico",
    "model_name": "City",
    "model_interval": 2,
    "model_arguments": {
      "meantemp": 4,
      "rainsum": 3.5
    }
  }
}

api/model

The model api is used to interact with the model definition: POST uploads the model GET returns the model definition

POST api/model

{
	"model_group" : "Mexico",
	"model_name" : "City",
	"model_intervals" : 52,
	"model_frequency" : "weekly",
	"model_parameters" : 	{
		"interval" : {"type" :"integer"},
		"arguments" :  {
			"meantemp" : {"type" :"integer"}, 
			"rainsum" : {"type" :"float"}
		}
	}
}

GET api/model?model_name=City&model_group=Mexico

{
  "model_group": "Mexico",
  "model_name": "City",
  "model_url": "demoUrl",
  "model_intervals": 52,
  "model_frequency": "weekly",
  "model_parameters": {
    "interval": {
      "type": "integer"
    },
    "arguments": {
      "meantemp": {
        "type": "integer"
      },
      "rainsum": {
        "type": "float"
      }
    }
  }
}

project-estrella-services's People

Contributors

cloudbeatsch avatar phongcao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.