Git Product home page Git Product logo

genericapiframework's Introduction

Generic Api Framework#

A generic API framework designed for quick model development, model retraining to classify and predict real-time data input.

Keycloak configuration

Download keycloak from https://www.keycloak.org/downloads unzip the downloaded file and then run the application following the instruction here.

Create a new client called "api", then set client Authenticator to "Client Id and Secret".

Create a new user for the Client.

Then use the client use along side of the secret to get token from keycloak using postman.

then use the token in the header of the call to the API

finally set the body of the post with the data needed to be classified.

Config

you can adjust the config file via the config.py file . The default config is as below:

DATASET = {
'days': 15,
'path': './',
'dataset_file_name': 'data/*.csv',
'label':'label',
'label_map':{
  'norm': 0,
  'mirai':1,
  'udp': 2, 
  'dns':3,
  'ack':4,
  'ack2':5
}
}

MODEL = {
'model_name': 'model.json',
'model_weight': 'model.h5',
'model_name_tfjs': 'model.js',
'validation_split': 0.3,
'epochs': 1,
'loss': 'mse',
'optimizer': 'Adam',
'activation': 'elu',
'batch_size':1
}

genericapiframework's People

Contributors

zardaloop avatar

Watchers

 avatar  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.