Skip to content

هدف تحلیل دیتاهای مربوط به قیمت های پرواز تهران مشهد و بالعکس با روش های مبتنی بر یادگیری ماشین می باشد

License

Notifications You must be signed in to change notification settings

nghorbani/alibaba_ai_task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alibaba AI Task

Task Desc

This repository contains my solution to an AI task by Alibaba.ir. The model is called APO: Alibaba Price Oracle.

Given a dataset of flight prices predict future price of 7 days.

Main Idea

The model prediction is conditioned on the price history. The time frame is considered to be a week; i.e. 7 days. We theorise that flight price dynamics have airline and market influencing factors. Airline factors, constitute individual business model, airline assets, demand, etc. Market is made up of a collection of airlines offering a service on the same route, that creates the supply. For simplification, we do not differentiate between in-/out-bound flights.

We bring in these ideas into the network architecture by self-attention mechanism.

Installation

APO is originally developed for Python 3.7, PyTorch 1.8.2 LTS, for Ubuntu 20.04.2 LTS. Below we prepare the python environment using Anaconda, however, we opt for a simple pip package manager for installing dependencies.

conda create -n apo python=3.7 
conda activate apo

pip3 install torch==1.8.2+cu102 torchvision==0.9.2+cu102 torchaudio==0.8.2 -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
pip install -r requirements.txt

Download pretrained models from here.

Tutorials

For scripts on data preprocessing, training and testing APO refer to the tutorials.

Improvement Candidates

  • Differentiate between in-/out-bound flights.
  • Use positional encoding to learn price dynamics.
  • Introduce K-Fold cross validation
  • Use different number of attention layers for price dynamics and market price sub-networks.

About

هدف تحلیل دیتاهای مربوط به قیمت های پرواز تهران مشهد و بالعکس با روش های مبتنی بر یادگیری ماشین می باشد

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published