Giter VIP home page Giter VIP logo

emulatorization-api's People

Contributors

itszootime avatar lushc avatar

Watchers

 avatar

Forkers

geoviqua

emulatorization-api's Issues

Refactor design/result classes

These classes share a lot of similar code (especially since normalisation is added), and should be refactored. Design and process evaluation results are essentially the same, but one for input, one for output. Emulator evaluation result has mean and covariance values instead of a single one.

Make configuration more flexible

At the moment the config is loaded from et.yml, and a number of locations are searched for this file. It should be possible for a user to set the required parameters for the API themselves, either by supplying their own file (by location), or using setters on the Config object.

Don't send full design to MATLAB for learning

At the moment the complete design is sent to MATLAB, which then takes n random points from the design (where n is specified training size in the original API request). This is inefficient, and should either be done at the site level (remove training size parameter from API), or API level (select randomly before sending to MATLAB).

Switch to ps-framework

Is there a reason we can't use ps-framework for exposing the API functionality? It seems like it would be a good use case.

Request rate limiting

When sending a large amount of requests to a service, it might not be too wise to simply send as fast as possible. This could trigger DDoS protection, or make people unhappy! It could be better to wait for say, 5 seconds between each block of requests.

Usage of getPoints is really unsafe!

It relies on the ordering of the input identifiers to build the matrix. Have added a method which lets you supply a List containing the inputs (and order of inputs) for the matrix, but need to check proper usage.

Better way of creating response objects

If I want to add data to a returned JSON object at the moment (e.g. for validation), I have to add a field to the class doing the calculation, associated getter, add a field to the response class, associated getting and setter, and finally the static from method.

It would be possible to have the calculation class implement a Returnable interface, and have some sort of annotation to specify fields to return? Or use the in-built Gson features for specific field serialization. It will most likely need the interface so Gson can identify when it needs to add a type: 'SomethingResponse' field.

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.