Giter VIP home page Giter VIP logo

booking_challenge's Introduction

Geral

PYTHONPATH="."  luigi  \
--module train CoOccurrenceTraining  \
--project config.base_rnn \
--local-scheduler  \
--data-frames-preparation-extra-params '{
  "sample_days": 500, 
  "test_days": 30,
  "window_trip": 5,
  "column_stratification": "user_id",
  "filter_last_step": true,
  "balance_sample_step": 200000,
  "filter_trip_size": 0 }' \
--test-size 0 \
--early-stopping-min-delta 0.0001 \
--learning-rate 0.001 \
--metrics='["loss"]' \
--batch-size 128 \
--loss-function ce \
--epochs 100


PYTHONPATH="." luigi --module evaluation EvaluationTask \
--model-task-class "train.CoOccurrenceTraining" \
--model-task-id CoOccurrenceTraining____mars_gym_model_b____563c1ab497 \
--file "/media/workspace/booking_challenge/output/booking/dataset/test_500_30_5.csv"  \
--local-scheduler \
--model-eval "coocorrence"

RNNAttModel

mars-gym run supervised --project config.conf1_rnn \
  --recommender-module-class model.RNNAttModel \
  --recommender-extra-params '{
    "n_factors": 100, 
    "hidden_size": 300, 
    "n_layers": 1, 
    "dropout": 0.3, 
    "window_trip": 10,
    "from_index_mapping": false,
    "path_item_embedding": false, 
    "freeze_embedding": false}' \
  --data-frames-preparation-extra-params '{
    "test_split": 0.1, 
    "window_trip": 10,
    "user_features_file": "all_user_features_10.csv",
    "column_stratification": "user_id",
    "filter_last_step": true,
    "balance_sample_step": 200000,
    "filter_trip_size": 0 }' \
  --test-size 0 \
  --val-size 0.1 \
  --early-stopping-min-delta 0.0001 \
  --early-stopping-patience 5 \
  --learning-rate 0.001 \
  --metrics='["loss", "top_k_acc", "top_k_acc2"]' \
  --batch-size 128 \
  --loss-function ce \
  --loss-function-class loss.FocalLoss \
  --loss-function-params '{
    "alpha":1,
    "gamma":3,
    "c": 0.8,
    "epsilon": 0.1
    }' \
  --epochs 100 \
  --generator-workers 8

PYTHONPATH="." luigi --module evaluation EvaluationTask
--model-task-class "mars_gym.simulation.training.SupervisedModelTraining"
--model-task-id SupervisedModelTraining____mars_gym_model_b____b70cc90aa3
--file "/media/workspace/booking_challenge/output/booking/dataset/test_0.1_10.csv"
--local-scheduler

{ "task_name": "SupervisedModelTraining____mars_gym_model_b____7292c9fc50_3c13437130", "count": 21671, "acc@4": 0.4757510036454248 }

NARMModel

mars-gym run supervised --project config.conf1_rnn \
  --recommender-module-class model.NARMModel \
  --recommender-extra-params '{
    "n_factors": 50, 
    "hidden_size": 300, 
    "n_layers": 1, 
    "dropout": 0.2, 
    "n_user_features": 10,
    "n_dense_features": 5,
    "from_index_mapping": false,
    "path_item_embedding": false, 
    "freeze_embedding": false}' \
  --data-frames-preparation-extra-params '{
    "test_split": 0.1, 
    "window_trip": 10,
    "user_features_file": "all_user_features_10.csv",
    "column_stratification": "user_id",
    "filter_last_step": true,
    "balance_sample_step": 200000,
    "filter_trip_size": 0 }' \
  --test-size 0 \
  --val-size 0.1 \
  --early-stopping-min-delta 0.0001 \
  --early-stopping-patience 5 \
  --learning-rate 0.001 \
  --metrics='["loss", "top_k_acc", "top_k_acc2"]' \
  --batch-size 64 \
  --optimizer "radam" \
  --optimizer-params '{
    "weight_decay": 0.01
    }' \
  --loss-function ce \
  --loss-function-class loss.FocalLoss \
  --loss-function-params '{
    "alpha":1,
    "gamma":3,
    "c": 0.5,
    "epsilon": 0.1
    }' \
  --epochs 100 \
  --monitor-metric val_top_k_acc \
  --monitor-mode max \
  --generator-workers 4

PYTHONPATH="." luigi --module evaluation EvaluationTask
--model-task-class "mars_gym.simulation.training.SupervisedModelTraining"
--model-task-id SupervisedModelTraining____mars_gym_model_b____aea4cd0546
--file "/media/workspace/booking_challenge/output/booking/dataset/test_0.1_10_with_all_user_features_10.csv"
--local-scheduler

{ "task_name": "SupervisedModelTraining____mars_gym_model_b____7e4be3acf9_897aea9091", "count": 21671, "acc@4": 0.5417378062848969 }

Caser

mars-gym run supervised --project config.conf1_rnn \
  --recommender-module-class model.Caser \
  --recommender-extra-params '{
      "n_factors": 100, 
      "p_L": 10, 
      "p_nh": 16,
      "p_nv": 4,  
      "dropout": 0.2, 
      "hist_size": 10, 
      "from_index_mapping": false,
      "path_item_embedding": false, 
      "freeze_embedding": false}' \
  --data-frames-preparation-extra-params '{
    "test_split": 0.1, 
    "window_trip": 10,
    "column_stratification": "user_id",
    "filter_last_step": true,
    "balance_sample_step": 200000,
    "filter_trip_size": 0 }' \
  --test-size 0 \
  --val-size 0.1 \
  --early-stopping-min-delta 0.0001 \
  --learning-rate 0.001 \
  --metrics='["loss", "top_k_acc"]' \
  --loss-function ce \
  --loss-function-class loss.FocalLoss \
  --batch-size 128 \
  --epochs 100

PYTHONPATH="." luigi --module evaluation EvaluationTask
--model-task-class "mars_gym.simulation.training.SupervisedModelTraining"
--model-task-id SupervisedModelTraining____mars_gym_model_b____7e4be3acf9
--file "/media/workspace/booking_challenge/output/booking/dataset/test_0.1_10.csv"
--local-scheduler

{ "task_name": "SupervisedModelTraining____mars_gym_model_b____fe03ed572b_5e3d1807ed", "count": 21671, "acc@4": 0.44778736560380233 }

MLTransformerModel2

mars-gym run supervised --project config.conf1_rnn \
  --recommender-module-class model.MLTransformerModel \
  --recommender-extra-params '{
      "n_factors": 100, 
      "n_hid": 50,
      "n_head": 2,
      "n_layers": 1,
      "num_filters": 100,
      "dropout": 0.2, 
      "hist_size": 5, 
      "from_index_mapping": false,
      "path_item_embedding": false, 
      "freeze_embedding": false}' \
  --data-frames-preparation-extra-params '{
    "sample_days": 500, 
    "test_days": 30,
    "window_trip": 5,
    "column_stratification": "user_id",
    "filter_last_step": true,
    "balance_sample_step": 500000,
    "filter_trip_size": 0 }' \
  --test-size 0 \
  --early-stopping-min-delta 0.0001 \
  --learning-rate 0.001 \
  --metrics='["loss"]' \
  --loss-function ce \
  --batch-size 128 \
  --epochs 100

PYTHONPATH="." luigi --module evaluation EvaluationTask
--model-task-class "mars_gym.simulation.training.SupervisedModelTraining"
--model-task-id SupervisedModelTraining____mars_gym_model_b____48bad5060c
--file "/media/workspace/booking_challenge/output/booking/dataset/test_500_30_5.csv"
--local-scheduler

{ "task_name": "SupervisedModelTraining____mars_gym_model_b____48bad5060c_89fa1a1958", "count": 11860, "acc@4": 0.4301011804384486 }

booking_challenge's People

Contributors

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