updates on the gitignore.

correct mistake on the cache directory.
This commit is contained in:
Oscar Plaisant 2024-06-27 17:19:26 +02:00
parent 292510f409
commit cb3feb6a4d
2 changed files with 113 additions and 0 deletions

10
.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
bin/*
include/*
lib/*
share/*
pyenv.cfg
src/__pycache__/*
.DS_Store
modal_losses N=1000 nb_orders=10000 granularity=1.png
possible_queries.sql

103
src/config.yaml Normal file
View File

@ -0,0 +1,103 @@
# database_name: flight_delay
database_name: SSB
dataset_config:
SSB: # {{{
orders_length: 2
# hypothesis_ordering: ['bisque', 'aquamarine']
hypothesis_ordering: ['bisque', 'blue']
# hypothesis_ordering: [30, 18]
# hypothesis_ordering: [2, 32]
# hypothesis_ordering: [37, 49, 10]
# parameter: p_size
# authorized_parameter_values: !!python/object/apply:builtins.range [0, 50]
parameter: p_color
authorized_parameter_values: !!python/tuple ['aliceblue', 'antiquewhite', 'aqua', 'aquamarine', 'azure', 'beige', 'bisque', 'black', 'blanchedalmond', 'blue', 'blueviolet', 'brown', 'burlywood', 'cadetblue', 'chartreuse', 'chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson', 'cyan', 'darkblue', 'darkcyan', 'darkgoldenrod', 'darkgray', 'darkgreen', 'darkgrey', 'darkkhaki', 'darkmagenta', 'darkolivegreen', 'darkorange', 'darkorchid', 'darkred', 'darksalmon', 'darkseagreen', 'darkslateblue', 'darkslategray', 'darkslategrey', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue', 'dimgray', 'dimgrey', 'dodgerblue', 'firebrick', 'floralwhite', 'forestgreen', 'fuchsia', 'gainsboro', 'ghostwhite', 'gold', 'goldenrod', 'gray', 'green', 'greenyellow', 'grey', 'honeydew', 'hotpink', 'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush', 'lawngreen', 'lemonchiffon', 'lightblue', 'lightcoral', 'lightcyan', 'lightgoldenrodyellow', 'lightgray', 'lightgreen', 'lightgrey', 'lightpink', 'lightsalmon', 'lightseagreen', 'lightskyblue', 'lightslategray', 'lightslategrey', 'lightsteelblue', 'lightyellow', 'lime', 'limegreen', 'linen', 'magenta', 'maroon', 'mediumaquamarine', 'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen', 'mediumslateblue', 'mediumspringgreen', 'mediumturquoise', 'mediumvioletred', 'midnightblue', 'mintcream', 'mistyrose', 'moccasin', 'navajowhite', 'navy', 'oldlace', 'olive', 'olivedrab', 'orange', 'orangered', 'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred', 'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'purple', 'rebeccapurple', 'red', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'sandybrown', 'seagreen', 'seashell', 'sienna', 'silver', 'skyblue', 'slateblue', 'slategray', 'slategrey', 'snow', 'springgreen', 'steelblue', 'tan', 'teal', 'thistle', 'tomato', 'turquoise', 'violet', 'wheat', 'white', 'whitesmoke', 'yellow', 'yellowgreen']
summed_attribute: lo_quantity
# summed_attribute: lo_revenue
# summed_attribute: lo_extendedprice
criterion:
##### customer table
# - "c_region"
- "c_city"
# "c_nation"
##### part table
- "p_category"
- "p_brand"
# - "p_mfgr"
# - "p_color"
# - "p_type"
# - "p_container"
##### supplier table
- "s_city"
# "s_nation"
# "s_region"
##### order date
# - "D_DATE"
# - "D_DATEKEY"
# - "D_DATE"
# - "D_DAYOFWEEK"
# - "D_MONTH"
# - "D_YEAR"
# - "D_YEARMONTHNUM"
# - "D_YEARMONTH"
# - "D_DAYNUMINWEEK"
# - "D_DAYNUMINMONTH"
# - "D_DAYNUMINYEAR"
# - "D_MONTHNUMINYEAR"
# - "D_WEEKNUMINYEAR"
# - "D_SELLINGSEASON"
# - "D_LASTDAYINWEEKFL"
# - "D_LASTDAYINMONTHFL"
# - "D_HOLIDAYFL"
# - "D_WEEKDAYFL"
# NOTE: do not change this (unless you also change the code in src/querying.py)
query_generator: !!python/name:query_generator.QuerySSBWithParameterGroupedByCriteria
# }}}
flight_delay: # {{{
orders_length: 3
# hypothesis_ordering: ['ATL', 'DEN']
hypothesis_ordering: ['ATL', 'DFW', 'ORD']
# hypothesis_ordering: ['ATL', 'DEN', 'DFW', 'ORD']
# hypothesis_ordering: ['ATL', 'ORD', 'DFW', 'DEN', 'LAX']
parameter: departure_airport
authorized_parameter_values: !!python/tuple ['ATL', 'ORD', 'DFW', 'DEN',
'LAX', 'IAH', 'LAS', 'SFO', 'PHX', 'MCO', 'SEA', 'CLT', 'MSP', 'LGA',
'DTW', 'EWR', 'BOS', 'BWI', 'SLC', 'JFK']
summed_attribute: nb_flights
criterion:
# NOTE: do not change this (unless you also change the code in src/querying.py)
query_generator: !!python/name:query_generator.QueryFlightWithParameterGroupedByCriteria
# }}}
# set which parts of the program should ouput logs
verbose:
# queries to the database (src/querying.py)
querying: false
concentration_test: false