đŸ•ˇī¸ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 169 (from laksa095)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

â„šī¸ Skipped - page is already crawled

đŸšĢ
NOT INDEXABLE
✅
CRAWLED
8 months ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffFAILdownload_stamp > now() - 6 MONTH8.5 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://stackoverflow.com/questions/61354410/python-catboost-multiclass-f1-score-custom-metric
Last Crawled2025-07-26 04:16:26 (8 months ago)
First Indexed2020-06-19 05:19:27 (5 years ago)
HTTP Status Code200
Meta TitlePython Catboost: Multiclass F1 score custom metric - Stack Overflow
Meta Descriptionnull
Meta Canonicalnull
Boilerpipe Text
How do you find the F1-score for each class of a multiclass Catboost Classifier? I've already read through the documentation and the github repo where someone asks the same question. However, I am unable to figure out the codesmithing to achieve this. I understand that I must use the custom_metric parameter in CatBoostClassifier() but I don't know what arguments are acceptable for custom_metric when I want F1 score for each class of my multiclass dataset. Suppose you have a toy dataset (from the documentation): from catboost import Pool cat_features = [ 0 , 1 , 2 ] data = [[ "a" , "b" , 1 , 4 , 5 , 6 ], [ "a" , "b" , 4 , 5 , 6 , 7 ], [ "c" , "d" , 30 , 40 , 50 , 60 ]] label = [ 0 , 1 , 2 ] from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(data, labels, test_size= 0.2 ) train_pool = Pool(X_train, y_train, cat_features=categorical_features_indices) validate_pool = Pool(X_test, y_test, cat_features=categorical_features_indices) params = { "loss_function" : "MultiClass" , "depth" : symmetric_tree_depth, "num_trees" : 500 , "verbose" : False } model = CatBoostClassifier(**params) model.fit(train_pool, eval_set=validate_pool)
Markdownnull
Readable Markdownnull
Shard169 (laksa)
Root Hash714406497480128969
Unparsed URLcom,stackoverflow!/questions/61354410/python-catboost-multiclass-f1-score-custom-metric s443