-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbarn-api.py
More file actions
43 lines (37 loc) · 1.02 KB
/
barn-api.py
File metadata and controls
43 lines (37 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""
author: Niklaus Parcell
date Thursday 08 February 2024
"""
from run_barnacle import run_barnacle
"""
Config file example
"""
config = { # PGA Tour Success
"uid": "uid123123", # a valid uid
"barnacle_depth": {
"main": 10
}, # main is for every column, specify different depths for different columns
"cols_to_drop" :[
"Player Name",
"Rounds",
"Wins",
"Points",
"Top 10",
"Year"
],
"comments": [
"Testing Psychic Barnacle on new datasets"
],
"data_type": ".csv", # Either .csv or .parquet
"path": "data/pga_engineered.csv", # Path on your file system to .csv
"save_name": "api-runs/pga_tour.html", # Save name for output files
"target": "Money", # Target column to be analyzed
"partition_by": "Year", # A way to partition, and prevent data leakage
"wait_time": 60,
"displays": {
"target": "PGA Tour Season Earnings",
"success_metric": "Higher earnings is good and relative to the average player",
"green_is_top": True, # False == Green is bottom, Red is Top
}
}
run_barnacle(config)