Vector.ai assignment

Overview

fabio-tests-nisargatman

Low Level Approach:

###Tables: continents: id*, name, population, area, createdAt, updatedAt

countries: id*, name, population, area, number_of_hospitals,number_national_parks,continent_id**, createdAt, updatedAt

cities: id*, name, population, area, number_of_roads,number_of_trees,country_id**, createdAt, updatedAt

###APIs:

  • [GET] /api/wiki/continents:

    • Fetch the data from Continents table and return to client in json format.
  • [POST] /api/wiki/continents:

    • All the continents data (name, population & area) should be saved in continents table with CreatedTimeStamp.
    • Making all these fields mandatory as this data is required for Country level validation(Area & Population)
  • [PUT] /api/wiki/continents/<int:id>:

    • Update the changes of data corresponding to given continent ID in Continent table.
  • [DELETE] /api/wiki/continents/<int:id>:

    • If ID exists then delete the continent along with corresponding countries and cities[Assumed this way]
    • Else through an exception.
  • [GET] /api/wiki/continents/<int:id>/countries:

    • Fetch the data from Countries table corresponds to specific given continent ID and return to client in json format.
  • [POST] /api/wiki/continents/<int:id>/countries:

    • All the countries data (name, population, area, no.hospitals & no.national parks) should be saved in countries table with CreatedTimeStamp.
    • Making no.hospitals & no.national parks are optional as there is no dependency.
  • [PUT] /api/wiki/continents/<int:id>:

    • Validate the data if data which is related to population and area. This should not exceed continent data.
    • Update the changes of data corresponding to given country ID in countries table.
  • [DELETE] /api/wiki/continents/<int:id>:

    • If ID exists then delete the country along with corresponding cities[Assumed this way]
    • Else through an exception.
  • [GET] /api/wiki/continents/<int:id>/countries/<int:id>/cities:

    • Fetch the data from Cities table corresponds to specific given Country ID and return to client in json format.
  • [POST] /api/wiki/continents/<int:id>/countries/<int:id>/cities:

    • All the Cities data (name, population, area, no.roads & no.trees) should be saved in Cities table with CreatedTimeStamp but area and population should be validated (less or equal) against corresponding country data(area & population).
    • Making no.trees & no.roads are optional as there is no dependency.
  • [PUT] /api/wiki/continents/<int:id>/<int:id>/cities/<int:id>:

    • Validate the data if data which is related to population and area. This should not exceed corresponding country data(area & population).
    • Update the changes of data corresponding to given country ID in countries table.
  • [DELETE] /api/wiki/continents/<int:id>/<int:id>/cities/<int:id>:

    • If ID exists then delete the City
    • Else through an exception.
Owner
Ravi Pullagurla
Software Engineer at Lloyds Banking Group (LBG)
Ravi Pullagurla
A pytorch reproduction of { Co-occurrence Feature Learning from Skeleton Data for Action Recognition and Detection with Hierarchical Aggregation }.

A PyTorch Reproduction of HCN Co-occurrence Feature Learning from Skeleton Data for Action Recognition and Detection with Hierarchical Aggregation. Ch

Guyue Hu 210 Dec 31, 2022
PyTorch Implementation of Vector Quantized Variational AutoEncoders.

Pytorch implementation of VQVAE. This paper combines 2 tricks: Vector Quantization (check out this amazing blog for better understanding.) Straight-Th

Vrushank Changawala 2 Oct 06, 2021
This is an official implementation for "AS-MLP: An Axial Shifted MLP Architecture for Vision".

AS-MLP architecture for Image Classification Model Zoo Image Classification on ImageNet-1K Network Resolution Top-1 (%) Params FLOPs Throughput (image

SVIP Lab 106 Dec 12, 2022
Mortgage-loan-prediction - Show how to perform advanced Analytics and Machine Learning in Python using a full complement of PyData utilities

Mortgage-loan-prediction - Show how to perform advanced Analytics and Machine Learning in Python using a full complement of PyData utilities

Deepak Nandwani 1 Dec 31, 2021
Gif-caption - A straightforward GIF Captioner written in Python

Broksy's GIF Captioner Have you ever wanted to easily caption a GIF without havi

3 Apr 09, 2022
Graph Self-Supervised Learning for Optoelectronic Properties of Organic Semiconductors

SSL_OSC Graph Self-Supervised Learning for Optoelectronic Properties of Organic Semiconductors

zaixizhang 2 May 14, 2022
A library for finding knowledge neurons in pretrained transformer models.

knowledge-neurons An open source repository replicating the 2021 paper Knowledge Neurons in Pretrained Transformers by Dai et al., and extending the t

EleutherAI 96 Dec 21, 2022
HyperaPy: An automatic hyperparameter optimization framework ⚡🚀

hyperpy HyperPy: An automatic hyperparameter optimization framework Description HyperPy: Library for automatic hyperparameter optimization. Build on t

Sergio Mora 7 Sep 06, 2022
PaRT: Parallel Learning for Robust and Transparent AI

PaRT: Parallel Learning for Robust and Transparent AI This repository contains the code for PaRT, an algorithm for training a base network on multiple

Mahsa 0 May 02, 2022
On-device speech-to-index engine powered by deep learning.

On-device speech-to-index engine powered by deep learning.

Picovoice 30 Nov 24, 2022
The official code repo of "HTS-AT: A Hierarchical Token-Semantic Audio Transformer for Sound Classification and Detection"

Hierarchical Token Semantic Audio Transformer Introduction The Code Repository for "HTS-AT: A Hierarchical Token-Semantic Audio Transformer for Sound

Knut(Ke) Chen 134 Jan 01, 2023
[CVPR 2022 Oral] Balanced MSE for Imbalanced Visual Regression https://arxiv.org/abs/2203.16427

Balanced MSE Code for the paper: Balanced MSE for Imbalanced Visual Regression Jiawei Ren, Mingyuan Zhang, Cunjun Yu, Ziwei Liu CVPR 2022 (Oral) News

Jiawei Ren 267 Jan 01, 2023
Conversion between units used in magnetism

convmag Conversion between various units used in magnetism The conversions between base units available are: T - G : 1e4

0 Jul 15, 2021
BankNote-Net: Open dataset and encoder model for assistive currency recognition

BankNote-Net: Open Dataset for Assistive Currency Recognition Millions of people around the world have low or no vision. Assistive software applicatio

Microsoft 13 Oct 28, 2022
PyTorch implementation of Deep HDR Imaging via A Non-Local Network (TIP 2020).

NHDRRNet-PyTorch This is the PyTorch implementation of Deep HDR Imaging via A Non-Local Network (TIP 2020). 0. Differences between Original Paper and

Yutong Zhang 1 Mar 01, 2022
ACAV100M: Automatic Curation of Large-Scale Datasets for Audio-Visual Video Representation Learning. In ICCV, 2021.

ACAV100M: Automatic Curation of Large-Scale Datasets for Audio-Visual Video Representation Learning This repository contains the code for our ICCV 202

sangho.lee 28 Nov 08, 2022
Group-Free 3D Object Detection via Transformers

Group-Free 3D Object Detection via Transformers By Ze Liu, Zheng Zhang, Yue Cao, Han Hu, Xin Tong. This repo is the official implementation of "Group-

Ze Liu 213 Dec 07, 2022
Generative Autoregressive, Normalized Flows, VAEs, Score-based models (GANVAS)

GANVAS-models This is an implementation of various generative models. It contains implementations of the following: Autoregressive Models: PixelCNN, G

MRSAIL (Mini Robotics, Software & AI Lab) 6 Nov 26, 2022
Tutorial in Python targeted at Epidemiologists. Will discuss the basics of analysis in Python 3

Python-for-Epidemiologists This repository is an introduction to epidemiology analyses in Python. Additionally, the tutorials for my library zEpid are

Paul Zivich 120 Nov 17, 2022
This project intends to use SVM supervised learning to determine whether or not an individual is diabetic given certain attributes.

Diabetes Prediction Using SVM I explore a diabetes prediction algorithm using a Diabetes dataset. Using a Support Vector Machine for my prediction alg

Jeff Shen 1 Jan 14, 2022