SahilGoel commited on
Commit
5207433
·
verified ·
1 Parent(s): f501431

Upload code/training_schema.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. code/training_schema.py +22 -0
code/training_schema.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Shared output schema for classifier training and inference."""
2
+
3
+ CATEGORIES = (
4
+ "salary", "dividend", "interest", "rental", "capital_gains", "other_income",
5
+ "food", "grocery", "shopping", "bills", "medical", "insurance", "tax_payment",
6
+ "credit_card", "personal_transfer", "investment", "trading_deposit",
7
+ "trading_credit", "education", "travel", "entertainment", "donation",
8
+ "loan_emi", "loan_repayment", "cash_withdrawal", "unclassified",
9
+ "friends", "family", "flat_deposit", "trading_fees", "vehicle_purchase",
10
+ "staff_salary", "unclassified_credit", "health_fitness", "transfer",
11
+ )
12
+
13
+ SUPPORTED_CATEGORIES = frozenset(CATEGORIES)
14
+
15
+ INCOME_CATEGORIES = frozenset({
16
+ "capital_gains", "dividend", "interest", "other_income", "rental", "salary",
17
+ })
18
+
19
+ NON_INCOME_CATEGORIES = frozenset({
20
+ "cash_withdrawal", "family", "friends", "loan_repayment", "personal_transfer",
21
+ "staff_salary", "transfer",
22
+ })